No BSD License  

Highlights from
mode calculator

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 741 Bytes File ID: #13374

mode calculator

by Ipek

 

13 Dec 2006 (Updated 13 Dec 2006)

this function calculated column-wise mode values.

| Watch this File

File Information
Description

This function calculates column-wise mode values of a matrix. If there are no modes in a column, it returns NaN. Column mode values are stored in a cell array. This is a modified version of "fastmode.m" by Harold Bien.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
fastmode

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
14 Dec 2006 ipek deveci kocakoc

This is for versions before R14SP3. I still don't have it, and there are more people who don't.

15 Dec 2006 Harold Bien

MATLAB's own "mode" command is also rather slow - especially if you put it into a loop (see my tests on 'fastmode.m' versus MATLAB's built-in mode). If you are running mode in a loop, like in this file, it can save you a substantial amount of time (less than half the time it takes using built-in MATLAB mode on a 10,000 element long vector 1,000 times).

05 Mar 2009 Jaime Ramos

thanks a lot fella, I'm still chugging along with the old version of matlab myself !

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Ipek 22 Oct 2008 08:52:22
probability Ipek 22 Oct 2008 08:52:22
mode descriptive statistics Ipek 22 Oct 2008 08:52:22

Contact us at files@mathworks.com