Matlab用字符串命名结构体变量。
Afficher commentaires plus anciens
想请教一下大家,如果a里面存放了一个字符串(这个字符串会随循环改变),比如某一次循环的a = 'CNY_Treasury',然后我想得到一个结构体名称是CNY_Treasury(得到了结构体名以后,再去往这个结构体中添加变量),如何实现呢?试了下不能直接用eval(a),谢谢啦
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 结构体 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!