MATLAB: Find index of maximum number

max

Hi,
May I know how to write in MATLAB to find the index of maximum number.
M = 13;
[gh_w, ph_w, d_l, pl_d] = getWindData(M, weekday);
maxIndex = max (gh_w(:,M));
H = maxIndex;
I only got the output of maximum value which is 611.5077. Thank.

Best Answer

Read the help for max (always a good thing to read the help!)
What does it say?