No BSD License
Highlights from
Modal
|
|
| File Information |
| Description |
Calculates the statistical mode (the most frequently occurring element) in a vector (or matrix), and returns the mode, the number of occurrences and the indices of the mode in the vector. Like the build in mode, only also includes indices.
Reasonable fast :-)
If more than one mode exist (2+ elements with equal maximum occurances) first one found is returned.
Plz comment or leave feedback |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (6) |
| 31 Jul 2007 |
Felix Hebeler
|
|
|
| 31 Jul 2007 |
Scott Miller
|
|
|
| 01 Aug 2007 |
Felix Hebeler
|
|
|
| 25 Nov 2009 |
Jan Churan
|
|
|
| 25 Nov 2009 |
Jan Churan
|
|
|
| 25 Nov 2009 |
Jan Churan
|
|
|
| Updates |
| 01 Aug 2007 |
Get rid of reshaping as suggested, speeds up modal 30% (thanks Scott) |
| 01 Aug 2007 |
Get rid of the reshaping, speeds up modal 30% (thanks Scott) |
| 06 Aug 2007 |
- Correct a bug where output was NaN if first cell in input grid are NaN and most cells in grid are NaN |
|
Contact us at files@mathworks.com