saving a dynamic file

2 ビュー (過去 30 日間)
ulas im
ulas im 2012 年 10 月 9 日
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
Walter Roberson 2012 年 10 月 9 日
var = 'matrixname';
save(filename, var);

Julien
Julien 2012 年 10 月 9 日
Hi, how is defined your matrixname ? Do you want to store all matrix inside one .mat file ?

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by