File Exchange

image thumbnail

strrel

version 1.0.0.0 (1.89 KB) by Ben Barrowes
Applied relational operators to such as == or < to character arrays or cell arrays of strings accord

3.9K Downloads

Updated 18 Oct 2007

View License

% 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')

Cite As

Ben Barrowes (2021). strrel (https://www.mathworks.com/matlabcentral/fileexchange/16894-strrel), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!