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!