x = [2 6 4 9 10 3 1 5 1]
the the output should be 7, because the first minimum value (1) lies at the 7th position.
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