Problem 589. Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers709
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
2871 Solvers
-
Program an exclusive OR operation with logical operators
704 Solvers
-
291 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
10014 Solvers
-
448 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!