フィルターのクリア

Finding the value according to row number

1 回表示 (過去 30 日間)
King To Leung
King To Leung 2022 年 7 月 30 日
回答済み: Matt J 2022 年 7 月 30 日
I have an array which has 3 columns and a lot of rows(dr). In the first column, it has the row number (column 2)that of the data that I want to extract from another data set (data_crsp).
For example, dr(1:3,1), is [1 3 5], which means I want to draw the value of the second column and the first, third and fifth row of data. And put it in to the second column of the array.
Thanks guys!

採用された回答

Matt J
Matt J 2022 年 7 月 30 日
data_crsp(dr(:,1),2)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by