Ältere Kommentare anzeigen
str_var = 'var1';
eval( [str_var, '= 10']);
这样得到的结果是var1=10。如何让var1等于一个指定的矩阵,而不是一个数。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB 快速入门 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!