Exporting array
Ältere Kommentare anzeigen
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
Antworten (2)
Fangjun Jiang
am 28 Jun. 2011
0 Stimmen
save FileName VariableName
1 Kommentar
Sean de Wolski
am 28 Jun. 2011
Faster fingers buddy!
Sean de Wolski
am 28 Jun. 2011
save('FileName.mat','yourmatrix')
3 Kommentare
Mohamed mohamed
am 28 Jun. 2011
Sean de Wolski
am 28 Jun. 2011
save(OutputFile,'A')
Note the single quotation. Yes, I hate that subtle fact too.
Fangjun Jiang
am 28 Jun. 2011
Or, use command format
save OutputFile A
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!