how to save values in matfile as array
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i wanted to create a matfile...
stats=[ statmat1 statmat2 statmat3 ......... statmat24 statmat25 statmat26];
i did like this... each statmat1 to statmat26 contains 8 values... now when i save in the above manner the values are getting saved in one single row of matfile having 208 columns....
how can i save each statmat values in one matfile having 26 rows each having 8 column values... please reply...
0 commentaires
Réponse acceptée
Andrei Bobrov
le 3 Déc 2012
Modifié(e) : Andrei Bobrov
le 3 Déc 2012
Elysi wrote: " ...stats = [ statmat1 statmat2 statmat3 ......... statmat24 statmat25 statmat26];..."
out = reshape(stats,8,[]).';
Plus de réponses (1)
Ilham Hardy
le 3 Déc 2012
stats=[ statmat1;statmat2;statmat3;......... statmat24;statmat25;statmat26];
0 commentaires
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT Files 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!