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

2 次查看(过去 30 天)
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?

采纳的回答

Adam
Adam 2015-9-22
编辑:Adam 2015-9-22
j = sort( j );
save( 'j.mat', j );
In your example they would already be in ascending order though.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by