Matlab用字符串命名结构体变量。
Mostrar comentarios más antiguos
想请教一下大家,如果a里面存放了一个字符串(这个字符串会随循环改变),比如某一次循环的a = 'CNY_Treasury',然后我想得到一个结构体名称是CNY_Treasury(得到了结构体名以后,再去往这个结构体中添加变量),如何实现呢?试了下不能直接用eval(a),谢谢啦
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 结构体 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!