countStrings

버전 1.0.1 (1.26 KB) 작성자: Eva-Maria Weiss
This is a very simple function, that counts (repeating) strings within a cell array and returns unique strings with corresponding number.
다운로드 수: 2
업데이트 날짜: 2020/7/27

라이선스 보기

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

인용 양식

Eva-Maria Weiss (2026). countStrings (https://kr.mathworks.com/matlabcentral/fileexchange/78640-countstrings), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가
버전 게시됨 릴리스 정보
1.0.1

fix assigning bug

1.0.0