[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "find" equivalent for strings?
From: |
Mike Miller |
Subject: |
Re: "find" equivalent for strings? |
Date: |
Tue, 13 Sep 2005 17:48:20 -0500 (CDT) |
On Tue, 13 Sep 2005, Tom Holroyd wrote:
In Octave 2.9.3 you can just do
octave:2> strcmp(m, 'bob')
Thanks, Tom. That works great. It isn't documented that way, but it
works in 2.1.71 on Cygwin also. (The "help" and "help -i" documentation
only shows that strcmp(S1,S2) compares string S1 with string S2.)
Mike
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------