Count

Counts the number elements in a specified vector that match a specified criteria.
7K Downloads
Aktualisiert 28. Apr 2003

Keine Lizenz

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

Zitieren als

Richard Medlock (2026). Count (https://de.mathworks.com/matlabcentral/fileexchange/3327-count), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R13
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Test Scripts finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0