Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Compare strings of different lengths without using strcmp?
Date: Thu, 24 Sep 2009 15:16:19 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <h9gkba$605$1@news.eternal-september.org>
References: <1060919098.4446.1253822970612.JavaMail.root@gallium.mathforum.org> <h9gjvo$tmg$1@news.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX187Gu7R8JeOMM0Mvs4TOkCfB+AriK2jzgKgE/bit5l1nsW9/s0p3dWSLGyXYl0LEpYGGrOfRb5FaofSLG3kG5xZW0yNVcSpbvJnWFEVuWi3TNp7BOJd6YzYWCGAaqxAIkU=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Thu, 24 Sep 2009 20:20:58 +0000 (UTC)
In-Reply-To: <h9gjvo$tmg$1@news.eternal-september.org>
X-Auth-Sender: U2FsdGVkX1+2rodCUCwbP27YIm4Zx/su
Cancel-Lock: sha1:hPzQ3ddzdiz4lBf3ipXfq3kMjgY=
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Xref: news.mathworks.com comp.soft-sys.matlab:572736


dpb wrote:
...
> Well, one has to start w/ a clear definition of what the criterion for 
> equality would be.  If the two aren't the same length, then they 
> obviously can't be identical so what would "true" be indicating, anyway?

OBTW, if they are the same length,

flg = all(s2==s1);

If they're not, again, "Houston, we have a dimensions problem"...

--