Effacer les filtres
Effacer les filtres

how to save values in array or in .mat file by ascending order?

1 vue (au cours des 30 derniers jours)
Muhammad Umer
Muhammad Umer le 22 Sep 2015
Modifié(e) : Adam le 22 Sep 2015
for i=1:10
j(i)=i*0.5:
end
save('j.mat', 'j')
how can i save values in array or in .mat file by ascending order?

Réponse acceptée

Adam
Adam le 22 Sep 2015
Modifié(e) : Adam le 22 Sep 2015
j = sort( j );
save( 'j.mat', j );
In your example they would already be in ascending order though.

Plus de réponses (0)

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!

Translated by