how to find value in the matrix using index?
Show older comments
Hello,
I am wondering if I can find value using index.
For example, given matrix A, I would like to get third value of the first row and the second value from the second row.
I want to get 30 from the first row and 50 from the second row.
A = [10 20 30 ; 40 50 60];
B = [3;2]
Is there any way I could do this?
Thank you
Accepted Answer
More Answers (1)
Cris LaPierre
on 16 Nov 2021
0 votes
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!