Exporting array

19 visualizaciones (últimos 30 días)
Mohamed mohamed
Mohamed mohamed el 28 de Jun. de 2011
Hello guys, I have rather simple question: how can I save a matrix into file i.e. (.mat)?? I have matrix of 16*16 in my code and I want to save it into c:/'FileName'.mat
Cheers

Respuestas (2)

Fangjun Jiang
Fangjun Jiang el 28 de Jun. de 2011
save FileName VariableName
  1 comentario
Sean de Wolski
Sean de Wolski el 28 de Jun. de 2011
Faster fingers buddy!

Iniciar sesión para comentar.


Sean de Wolski
Sean de Wolski el 28 de Jun. de 2011
save('FileName.mat','yourmatrix')
  3 comentarios
Sean de Wolski
Sean de Wolski el 28 de Jun. de 2011
save(OutputFile,'A')
Note the single quotation. Yes, I hate that subtle fact too.
Fangjun Jiang
Fangjun Jiang el 28 de Jun. de 2011
Or, use command format
save OutputFile A

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by