The function is max
. To obtain the first maximum value you should do
[val, idx] = max(a);
val
is the maximum value and idx
is its index.
More Related Contents:
- How to select a submatrix (not in any particular pattern) in Matlab
- Indexing of unknown dimensional matrix
- Matlab how to save a modified image from axes [closed]
- how to get a single feature vector from SIFT descriptor [closed]
- How to get all files under a specific directory in MATLAB?
- Generate random number with given probability matlab
- Matlab: Running an m-file from command-line
- Loop through files in a folder in matlab
- Hash tables in MATLAB
- Find given row in a matrix
- Use a vector as an index to a matrix
- How to concatenate a number to a variable name in MATLAB?
- Align already captured rgb and depth images
- Deleting matrix elements by = [] vs reassigning matrix
- Retraining after Cross Validation with libsvm
- Proper way to add noise to signal
- How can I sort a 2-D array in MATLAB with respect to one column?
- Attempt to execute script as a function
- What are some efficient ways to combine two structures in MATLAB?
- Difference of handle and values classes
- MATLAB: Differences between .mat versions
- In Matlab, is it possible to terminate a script, but save all its internal variables to workspace?
- How to change an image from Cartesian to Polar coordinates in Matlab?
- Solving an ODE when the function is given as discrete values -matlab-
- How to obtain static member variables in MATLAB classes?
- How to nest multiple parfor loops
- Extract arbitrarily rotated plane of data from 3D array as 2D array
- Efficiently compute a 3D matrix of outer products – MATLAB
- MATLAB Compiler vs MATLAB Coder
- Skipping outputs with anonymous function in MATLAB