Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Problem 1041. Find Index of maximum Value and maximum Value of a vector

Created by Richard Zapor

Find the Index of the first occurrence of the maximum value in a vector and also the maximum value in the vector.

Example: [1 2 5 7 5 7 4 3] Returns 7 and 4

[1 4;2 3] Returns 4 and 2


Problem Group

Solution Statistics

81 correct solutions 129 incorrect solutions
Last solution submitted on Sep 23, 2015

Problem Comments