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