MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
Problem 760. Duplicate each element of a vector.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
x = [2,3,5];
y_correct = [2,2,3,3,5,5];