Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first should be singleton.)
>> middleAsColumn(eye(3)) ans = 0 0 0 1 0 0 0
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