필터 지우기
필터 지우기

sort data

조회 수: 1 (최근 30일)
Kugen Raj
Kugen Raj 2012년 3월 18일
i have an array of data with size of (1,361). I need to select and store all the data from (1,121) to (1,241) into anther array. How can i do this?

채택된 답변

Walter Roberson
Walter Roberson 2012년 3월 18일
newarray = oldarray(121:241);
I note that your title asks about "sort data", but I do not see any reference to sorting in your question?
  댓글 수: 1
Kugen Raj
Kugen Raj 2012년 3월 18일
sorry about that, i forget to change the title...actually i wanted to ask how to sort data in an ascending manner..i found the answer..anyway thanks for this answer..

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

the cyclist
the cyclist 2012년 3월 18일
% Input
A = rand(1,361);
% Select and store
B = A(121:241);

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by