Indexing (extracting value from rows)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
dan berkowitz
am 5 Jun. 2019
Kommentiert: dan berkowitz
am 8 Jun. 2019
Hi,
I have a 5 x 5 array, A, and a 5 x 1 array, B = [2 3 1 4 3]'. How can I extract the element from each row of A as they occur in B. i.e., I want the 2nd value of row one of A, they 3rd value of row two of A, ..., and the 3rd value of row five of A.
Any help would be appreciated.
db
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!