Problem 42648. Place numbers
Given two input first input is a matrix which consist of the index numbers of the second input vector. You place the second input to the first input matrix with respect to the index number.
example is
first input is [1 2 ; 3 4];
second input is [0 3 5 7];
output will be [0 3; 5 7];
second example is
first input is [1 2 ; 3 4;5 6; 1 2];
second input is [0 3 5 7 3 2];
output will be [0 3; 5 7;3 2; 0 3];
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers46
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15731 Solvers
-
278 Solvers
-
420 Solvers
-
Create an index-powered vector
881 Solvers
-
166 Solvers
More from this Author21
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!