Effacer les filtres
Effacer les filtres

Exporting array

24 vues (au cours des 30 derniers jours)
Mohamed mohamed
Mohamed mohamed le 28 Juin 2011
Hello guys, I have rather simple question: how can I save a matrix into file i.e. (.mat)?? I have matrix of 16*16 in my code and I want to save it into c:/'FileName'.mat
Cheers

Réponses (2)

Fangjun Jiang
Fangjun Jiang le 28 Juin 2011
save FileName VariableName
  1 commentaire
Sean de Wolski
Sean de Wolski le 28 Juin 2011
Faster fingers buddy!

Connectez-vous pour commenter.


Sean de Wolski
Sean de Wolski le 28 Juin 2011
save('FileName.mat','yourmatrix')
  3 commentaires
Sean de Wolski
Sean de Wolski le 28 Juin 2011
save(OutputFile,'A')
Note the single quotation. Yes, I hate that subtle fact too.
Fangjun Jiang
Fangjun Jiang le 28 Juin 2011
Or, use command format
save OutputFile A

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Identification dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by