strrel
                    版本 1.0.0.0 (1.9 KB) 作者:  
                  Ben Barrowes
                
                
                  Applied relational operators to such as == or < to character arrays or cell arrays of strings accord
                
                  
              % 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 (2025). strrel (https://ww2.mathworks.cn/matlabcentral/fileexchange/16894-strrel), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
              创建方式
              R2006a
            
            
              兼容任何版本
            
          平台兼容性
Windows macOS Linux类别
      在 Help Center 和 MATLAB 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. | 
