Is it possible to dereference a string variable inside evalin()?
古いコメントを表示
For example inside a function I have:
VAR_A = 'somevar_in_base';
% I want to test if 'somevar_in_base' by name exist in 'base' workspace
evalin('base', 'exist(''VAR_A'', ''var'')')
local = evalin('base', 'VAR_A');
Above lines do not extend "VAR_A". Is it possible to get what I want with minor changes or should I avoid coding this way?
Thanks,
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Event Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!