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일

0 개 추천

save('ewa.mat', ewa);

댓글 수: 4

Paul
Paul 2014년 6월 23일
Thanks for your help!
There's now a different error. It says "Argument must contain a string."
save('ewa.mat','ewa');
Sorry about that, I need some coffee. Please look at the documentation.
doc save
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개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2014년 6월 23일

댓글:

2014년 6월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by