How do u check for the existence of a variable in base workspace from main GUI file?
7 ビュー (過去 30 日間)
古いコメントを表示
How do u check for the existence of a variable in base workspace from main GUI file?
0 件のコメント
回答 (1 件)
the cyclist
2013 年 4 月 25 日
編集済み: the cyclist
2013 年 4 月 25 日
I am not very knowledgeable about GUIs, so there is almost certainly a better way, but one way to do this would be with the evalin() function. Specifically, I think you could check for the existence of the variable x with
>> tf = evalin('base','exist(''x'')')
Type
>> doc evalin
for details.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!