필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 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