Save a matrix in MATLAB
234 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a 100x100 matrix in MATLAB and I want to save it in matlab format. Is there a way to do so in MATLAB?
0 commentaires
Réponse acceptée
Adam
le 4 Nov 2015
Modifié(e) : Adam
le 25 Juin 2018
save( filename, 'matrixName' )
e.g.
myMatrix = rand( 100, 100 );
filename = 'C:\Stuff\Somefile.mat';
save( filename, 'myMatrix' );
Be sure to use the .mat extension for your file.
6 commentaires
Luthando Maqondo
le 24 Juin 2018
This does not save the Matrix as it is, it stored a struct version of if and now I can't index the elements in side the matrices. Even the size(Matrix) function gives a 1x1 for a matrix expected to be 4 dimentional;
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Import from MATLAB 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!