Exporting array
이전 댓글 표시
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
답변 (2개)
Fangjun Jiang
2011년 6월 28일
0 개 추천
save FileName VariableName
댓글 수: 1
Sean de Wolski
2011년 6월 28일
Faster fingers buddy!
Sean de Wolski
2011년 6월 28일
save('FileName.mat','yourmatrix')
댓글 수: 3
Mohamed mohamed
2011년 6월 28일
Sean de Wolski
2011년 6월 28일
save(OutputFile,'A')
Note the single quotation. Yes, I hate that subtle fact too.
Fangjun Jiang
2011년 6월 28일
Or, use command format
save OutputFile A
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!