フィルターのクリア

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 Center および File ExchangeData Type Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by