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 CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by