saving a dynamic file
显示 更早的评论
Dear users
I am trying to save a matrix that has a chancing name at each loop. i normally use following command: save(filename,'matrixname'); However, this time "matrixname" is dynamic and changes at every loop step. How can i use the save function in this context?
thank you
回答(2 个)
Walter Roberson
2012-10-9
var = 'matrixname';
save(filename, var);
Julien
2012-10-9
0 个投票
Hi, how is defined your matrixname ? Do you want to store all matrix inside one .mat file ?
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!