strrel

버전 1.0.0.0 (1.89 KB) 작성자: Ben Barrowes
Applied relational operators to such as == or < to character arrays or cell arrays of strings accord
다운로드 수: 3.9K
업데이트 날짜: 2007/10/18

라이선스 보기

% function out=strrel(in1,in2,relop)
%
% Compares strings according to strcmp and issorted according to relop
% in1 and in2 can be character arrays or cell arrays
% relop can be <, <=, >, >=, ==, and ~=, or their string equivalents
% such as 'ne' or 'gt', etc.
%
% Examples:
% c = {'How','much','wood','would','a','woodchuck','chuck?'};
% s = 'wood';
% r = strrel(s,c,'<')
% r = strrel(s,c,'gt')

인용 양식

Ben Barrowes (2024). strrel (https://www.mathworks.com/matlabcentral/fileexchange/16894-strrel), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
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

Faster due to issortedcellchar as suggested by Urs (us) Schwarz.