how to save a matrix that contains NaN, strings and numbers

1 回表示 (過去 30 日間)
antonet
antonet 2013 年 9 月 7 日
Dear all,
I want to save a matrix 'out' that contains NaN, strings and numbers
I tried
save out
but did not work. Any ideas?
Thanks in advance

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 7 日
編集済み: Azzi Abdelmalek 2013 年 9 月 7 日
out={10 20 nan 'str' [1 2] [1 0;2 4]}
You can save your data in a mat file:
save filename out
  3 件のコメント
antonet
antonet 2013 年 9 月 7 日
so you mean
save 'output.mat' out;
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 9 月 7 日
編集済み: Azzi Abdelmalek 2013 年 9 月 7 日
save output out
%or
save('output','out')
Look at
doc save
doc load

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by