No BSD License
Highlights from
maxmax
maxmax
by Simon
14 Apr 2008
(Updated 14 Apr 2008)
find the max value and position from a multi-dimensional matrix
|
Watch this File
|
| File Information |
| Description |
The maxmax function can find the max value and return the positions from a multi-dimensional matrix.
[max_value max_id]=maxmax(x)
The max_value is the biggest value in matrix x, and max_id is structured in [dim1 dim2 dim3...], the length of max_id is equal to the number of the dimensions of matrix x.
This method can be also applied to min and other functions.
e.g.
x=rand(2,8,4);
[max_value max_id]=maxmax(x) |
| MATLAB release |
MATLAB 5.2 (R10)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 14 Apr 2008 |
Jos x@y.z
|
|
|
| 14 Apr 2008 |
Urs (us) Schwarz
|
|
|
| 14 Apr 2008 |
fex observer
|
|
|
| 31 Jan 2009 |
Steeve AMBROISE
|
|
|
| 01 Feb 2009 |
Jos (10584)
|
|
|
|
Contact us at files@mathworks.com