SyntaxFix
Write A Post
Hire A Developer
Questions
The function is max. To obtain the first maximum value you should do
max
[val, idx] = max(a);
val is the maximum value and idx is its index.
val
idx