If you have two matrices, which together give xc and yc coordinates into another matrix, eg : xc = [1 1 1; 2 2 1];
yc = [1 2 1; 3 2 4];
A = [6 7 8 9; 10 11 12 13];
Produce the matrix B which contains the values of A at the locations given in xc and yc. Thus:
B = [6 7 6; 12 11 9];
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers239
Suggested Problems
-
2243 Solvers
-
Return a list sorted by number of occurrences
2890 Solvers
-
Project Euler: Problem 10, Sum of Primes
2089 Solvers
-
Create matrix of replicated elements
397 Solvers
-
Matlab Basics II - Count rows in a matrix
405 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
It needs more than one test
agree! it is easy to cheat!