フィルターのクリア

how to get the value from particular index will be given in array

1 回表示 (過去 30 日間)
singh
singh 2015 年 4 月 17 日
回答済み: Star Strider 2015 年 4 月 17 日
how to get the multiple value from in the array through index value
I have array which contain multiple values A1=
12
23
50
61
74
92
but i have another array which contain the index value of Array A1 is called Array A2=
2
3
5
now i wish to take the A3 array which contain only that A1 values which index will be present in A2.

採用された回答

Star Strider
Star Strider 2015 年 4 月 17 日
If I understand correctly, I believe this is what youwant:
A3 = A1(A2)
produces:
A3 =
23
50
74

その他の回答 (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