Count

Version 1.0.0.0 (359 octets) par Richard Medlock
Counts the number elements in a specified vector that match a specified criteria.
7K téléchargements
Mise à jour 28 avr. 2003

Aucune licence

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

Citation pour cette source

Richard Medlock (2026). Count (https://fr.mathworks.com/matlabcentral/fileexchange/3327-count), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Test Scripts dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0