Path: news.mathworks.com!not-for-mail
From: Loren Shure <loren@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Compare strings of different lengths without using strcmp?
Date: Fri, 25 Sep 2009 13:41:06 -0400
Organization: The MathWorks
Lines: 13
Message-ID: <MPG.2526cabcc0a470b6989a2f@news.mathworks.com>
References: <h9gjvo$tmg$1@news.eternal-september.org> <1257816834.5891.1253856562126.JavaMail.root@gallium.mathforum.org>
NNTP-Posting-Host: shurel.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1253900466 24753 172.31.57.214 (25 Sep 2009 17:41:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 25 Sep 2009 17:41:06 +0000 (UTC)
User-Agent: MicroPlanet-Gravity/2.70.2067
Xref: news.mathworks.com comp.soft-sys.matlab:572955


In article 
<1257816834.5891.1253856562126.JavaMail.root@gallium.mathforum.org>, 
visualxd@gmail.com says...
> Oh I'm sorry. They need to be equal disregarding case. So 'banana' and 'BaNana' would be equal, as would 'purple' and 'purple'. Result is true if the strings are equal, false if not. I need to be able to enter strings of lengths that aren't equal, though, even if the result will be false.
> 


Have you looked at strcmpi - which allows you to compare strings in a 
case-insensitive manner.

-- 
Loren
http://blogs.mathworks.com/loren