Count

Counts the number elements in a specified vector that match a specified criteria.
7K descargas
Actualizado 28 abr 2003

Sin licencia

Count(A,B)

COUNT (A,B)

Counts the number of elements in A that match the criteria specified in B.

Example:

Data = [1 2 3 4 3 2 7 6 9 1 1 2 5 9 9];

Count(Data,'==9')

ans =

3

Citar como

Richard Medlock (2024). Count (https://www.mathworks.com/matlabcentral/fileexchange/3327-count), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R13
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Test Scripts en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0