Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x.
L = 5
The resulting answer is:
[1:10; 1:10; 1:10; 1:10; 1:10]
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more