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

Antworten (2)

Walter Roberson
Walter Roberson am 9 Okt. 2012

1 Stimme

var = 'matrixname';
save(filename, var);
Julien
Julien am 9 Okt. 2012

0 Stimmen

Hi, how is defined your matrixname ? Do you want to store all matrix inside one .mat file ?

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 9 Okt. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by