How can I apply a command [select a section of data] to all the variables and structures in my workspace?
1 回表示 (過去 30 日間)
古いコメントを表示
I thought of using logical operators but don't really know how to do it. Cheers!
1 件のコメント
回答 (1 件)
Massimo Zanetti
2016 年 10 月 7 日
Generally you can list them by command who and then evaluating a functional expression by eval.
For example assume you have x=[3,6] in workspace, then to get the mean:
C=who;
h=eval(['mean(',C{1},');']);
m=4.5
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!