フィルターのクリア

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 Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by