saving a dynamic file

4 visualizaciones (últimos 30 días)
ulas im
ulas im el 9 de Oct. de 2012
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

Respuestas (2)

Walter Roberson
Walter Roberson el 9 de Oct. de 2012
var = 'matrixname';
save(filename, var);

Julien
Julien el 9 de Oct. de 2012
Hi, how is defined your matrixname ? Do you want to store all matrix inside one .mat file ?

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by