how to save array values in .mat file in 1 column and multiple rows instead of multiple columns in 1 row.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad Umer
le 22 Sep 2015
Réponse apportée : James Tursa
le 22 Sep 2015
for i=1:10
j(i)=i*5:
end
j = sort( j );
save('j.mat', 'j');
values are storing in .mat file
5 | 10 | 15 | 20 | ...... | 45 | 50 |
how can i store these values like this
5 |
10|
15|
.
.
. |
50|
0 commentaires
Réponse acceptée
James Tursa
le 22 Sep 2015
Transpose j before saving it. E.g.,
j = j.'; % <-- transpose j
save('j.mat', 'j');
0 commentaires
Plus de réponses (0)
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!