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!