Why cant't I save an array?
조회 수: 9 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
José-Luis
2014년 6월 23일
save('ewa.mat', ewa);
댓글 수: 4
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');
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!