Why cant't I save an array?

9 visualizzazioni (ultimi 30 giorni)
Paul
Paul il 23 Giu 2014
Commentato: Paul il 23 Giu 2014
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.

Risposta accettata

José-Luis
José-Luis il 23 Giu 2014
save('ewa.mat', ewa);
  4 Commenti
Joseph Cheng
Joseph Cheng il 23 Giu 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 il 23 Giu 2014
Thanks Joseph! It works yay oh boy

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by