mcount (mex)
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.
引用
Stefano Gianoli (2024). mcount (mex) (https://www.mathworks.com/matlabcentral/fileexchange/5194-mcount-mex), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxカテゴリ
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
2.1.2.0 | small bug fix |
||
2.1.1.0 | Name changed to mcount as another function named count exist in MTREE/count. |
||
2.1.0.0 | added a test script |
||
2.0.0.0 | Can handle NaNs.
|
||
1.0.0.0 |