MEMBERSHIP

버전 1.0.0.0 (595 Bytes) 작성자: Mukhtar Ullah
Membership of elements of one array in another.
다운로드 수: 1.8K
업데이트 날짜: 2005/6/7

라이선스 없음

MEMBERSHIP counts membership of elements of one array in another.

C = MEMBERSHIP(A,B) for the array A returns an array of the same size as A containing the number of instances of the elements of A in the array B. A and B can be character arrays or cell arrays of strings.

Examples:
membership(1:6,pascal(3)) returns [5 1 2 0 0 1]
membership('MASK','MISSISSIPI') retruns [1 0 4 0]
membership({'john','gul';'sim','ku'},{'sim','gul','kid','gul'}) returns
[0 2;1 0]

See also FREQTABLE, ISMEMBER

인용 양식

Mukhtar Ullah (2024). MEMBERSHIP (https://www.mathworks.com/matlabcentral/fileexchange/7796-membership), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

a check included