Functions istext iscelltext

버전 1.0.0 (2.74 KB) 작성자: Bill Whiten
Test for char or string variables; Test for cell array of char or string variables.
다운로드 수: 20
업데이트 날짜: 2018/9/26

라이선스 보기

Most function now allow either char of string variables.
However missing are functions to test for either string or char,
and to test for a cell array containing only string or char values.

Two functions v=istext(x) and v=iscelltext(x) are included or
can be used inline as:

istext=@(x)isstring(x)|ischar(x);
iscelltext=@(x)all(cellfun(@(y)isstring(y)|ischar(y),x,'UniformOutput',1));

인용 양식

Bill Whiten (2024). Functions istext iscelltext (https://www.mathworks.com/matlabcentral/fileexchange/68918-functions-istext-iscelltext), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
R2016b 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Test Scripts에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!

istext_iscelltext

버전 게시됨 릴리스 정보
1.0.0