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 Center および MATLAB AnswersCharacters 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.