count (mex)
by Stefano Gianoli
10 Jun 2004
(Updated 11 Jun 2004)
Counts the number elements in a specified vector or matrix that match a specified criteria.
|
Watch this File
|
| File Information |
| Description |
Given a vector or matix MATRIX, counts the number of times that the scalar X satisfy the (string) condition COND. The result is returned in the variable RES. the COND operators allowed are: ==, >=, <=, <, >, !=. The function is faster than SUM(MATRIX'COND'X) or LENGTH(FIND(MATRIX'COND'X)). A test script is provided to show the performances. |
| MATLAB release |
MATLAB 6.5 (R13)
|
| Other requirements |
Tested on XP,R13 |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 18 Feb 2006 |
Jos van der Geest
|
|
|
|
Contact us at files@mathworks.com