Why cant't I save an array?

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.

 Respuesta aceptada

José-Luis
José-Luis el 23 de Jun. de 2014

0 votos

save('ewa.mat', ewa);

4 comentarios

Paul
Paul el 23 de Jun. de 2014
Thanks for your help!
There's now a different error. It says "Argument must contain a string."
José-Luis
José-Luis el 23 de Jun. de 2014
save('ewa.mat','ewa');
Sorry about that, I need some coffee. Please look at the documentation.
doc save
Joseph Cheng
Joseph Cheng el 23 de Jun. de 2014
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 el 23 de Jun. de 2014
Thanks Joseph! It works yay oh boy

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 23 de Jun. de 2014

Comentada:

el 23 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by