'ismember' for cell arrays with various data types

버전 1.1 (2.11 KB) 작성자: Wei-Rong Chen
'cellismember' is a function that performs 'ismember' on cell arrays with various data types
다운로드 수: 205
업데이트 날짜: 2015/4/16

라이선스 보기

The built-in "ismember" function in MATLAB fails to perform when the input variables are cells containing different types of variables.
% This function 'cellismember' is a function that performs 'ismember' on
% cells with various data types.
% The input A and B must be cell arrays.
% Example:
% Input: A = {'ab','cd', NaN, [], 5, 1}; B = {[], 'cd', NaN, 1};
% output: Lia = [0 1 1 1 0 1];
%
% Acknowledgement:
% This function greatly benefits from Jan Simon's comments. The previous version was errorful.
% See 'ismember' for more information
% Weirong Chen Apr-16-2015

인용 양식

Wei-Rong Chen (2024). 'ismember' for cell arrays with various data types (https://www.mathworks.com/matlabcentral/fileexchange/50474-ismember-for-cell-arrays-with-various-data-types), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Types에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

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

Bug fixed.

1.0.0.0