필터 지우기
필터 지우기

Exporting array

조회 수: 24 (최근 30일)
Mohamed mohamed
Mohamed mohamed 2011년 6월 28일
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
Fangjun Jiang 2011년 6월 28일
save FileName VariableName
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2011년 6월 28일
Faster fingers buddy!

댓글을 달려면 로그인하십시오.


Sean de Wolski
Sean de Wolski 2011년 6월 28일
save('FileName.mat','yourmatrix')
  댓글 수: 3
Sean de Wolski
Sean de Wolski 2011년 6월 28일
save(OutputFile,'A')
Note the single quotation. Yes, I hate that subtle fact too.
Fangjun Jiang
Fangjun Jiang 2011년 6월 28일
Or, use command format
save OutputFile A

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by