Cody

Problem 762. Matrix which contains the values of an other matrix A at the given locations.

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

65.16% Correct | 34.84% Incorrect
Last solution submitted on Nov 30, 2016

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more