Extracting specific values from a Matrix
3 views (last 30 days)
Show older comments
Antonio Sarusic
on 21 Feb 2020
Commented: Antonio Sarusic
on 21 Feb 2020
Hello,
I have a vector (1x1280; contains indices) and a matrix (1024x1280).
Now I want to extract for each column of the matrix, the value that is at the index contained in my index vector.
This may not be entirely understandable so here is an example:
In the first column of my vector I have the value 450. So I want to know what the value of my matrix in the first column in the row 450 is.
In the second column of my vector I have the value 837. So I want to know what the value of my matrix in the second column in the row 837 is.
And so on.
Thanks a lot
Antonio
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays 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!