Matlab用字符串命名结构体变量。
9 views (last 30 days)
Show older comments
想请教一下大家,如果a里面存放了一个字符串(这个字符串会随循环改变),比如某一次循环的a = 'CNY_Treasury',然后我想得到一个结构体名称是CNY_Treasury(得到了结构体名以后,再去往这个结构体中添加变量),如何实现呢?试了下不能直接用eval(a),谢谢啦
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!