Problem 52055. Matrix Indexing
Given a matrix A and scalars r,c,i, find the product of two elements, with the first element located at row r and column c (double indexing scheme) and the second element located at i (single indexing scheme).
For example, let A = [ ] and r = 2, c = 3, i = 8. Then the first element is 7 and the second element is 6, making their product 42.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers42
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15529 Solvers
-
420 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1072 Solvers
-
807 Solvers
-
1630 Solvers
More from this Author52
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!