Why cant't I save an array?

9 ビュー (過去 30 日間)
Paul
Paul 2014 年 6 月 23 日
コメント済み: Paul 2014 年 6 月 23 日
I'm trying to save a 1063x1 double called ewa to a file with this line of code:
save(ewa.mat, ewa);
I get this error: Attempt to reference field of non-structure array.

採用された回答

José-Luis
José-Luis 2014 年 6 月 23 日
save('ewa.mat', ewa);
  4 件のコメント
Joseph Cheng
Joseph Cheng 2014 年 6 月 23 日
have you looked at the documentation for save? they have examples on its use.
The documentation shows that both inputs should be a string.
save('ewa.mat', 'ewa');
Paul
Paul 2014 年 6 月 23 日
Thanks Joseph! It works yay oh boy

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by