フィルターのクリア

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

3 ビュー (過去 30 日間)
Muhammad Umer
Muhammad Umer 2015 年 9 月 22 日
編集済み: Adam 2015 年 9 月 22 日
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 Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by