countStrings

This is a very simple function, that counts (repeating) strings within a cell array and returns unique strings with corresponding number.

Ahora está siguiendo esta publicación

numberOfStrings = countStrings(string_ori,varargin)

The function selects the unique string entries (n) from a cell array with m string entries and counts their number/replicates.
It returns a cell array with the name of the unique string entries in the first column and the number of corresponding replicates in the second column.

numberOfStrings = countStrings(string_ori,sort)
Optionally the output can be sorted according to number. sort = 1: returns sorted output variable

Citar como

Eva-Maria Weiss (2026). countStrings (https://es.mathworks.com/matlabcentral/fileexchange/78640-countstrings), MATLAB Central File Exchange. Recuperado .

Etiquetas

Añadir etiquetas

Add the first tag.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.1

fix assigning bug

1.0.0