Remove the middle element of a vector?
[1,2,3] should return 2
[1,2,3,4] should return 2
 should return empty vector
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