Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Muhammad Umer
Muhammad Umer el 22 de Sept. de 2015
Editada: Adam el 22 de Sept. de 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?

Respuesta aceptada

Adam
Adam el 22 de Sept. de 2015
Editada: Adam el 22 de Sept. de 2015
j = sort( j );
save( 'j.mat', j );
In your example they would already be in ascending order though.

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by