how to get the value from particular index will be given in array
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Star Strider
2015-4-17
If I understand correctly, I believe this is what youwant:
A3 = A1(A2)
produces:
A3 =
23
50
74
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!