help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strcmp not behaving as expected


From: Martin Helm
Subject: Re: Strcmp not behaving as expected
Date: Mon, 22 Oct 2012 23:59:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1

Am 22.10.2012 23:46, schrieb Jordi Gutiérrez Hermoso:
> On 22 October 2012 17:44, Mumble07 <address@hidden> wrote:
>> Huh.  I just went back and tried strcmp in the command line again, and the
>> problem appears to have dissapeared.  Since then, I've restarted octave, as
>> well as the terminal instance.  Could it have been something wonky in the
>> terminal? I could have sworn I restarted octave several times.
> You probably defined strcmp to be something else. Did you mess up your
> load path? Was strcmp a variable name?
>
> - Jordi G. H
>
Good catch: Sounds like a possible reason, if I do that then I get such
an error

octave:1> strcmp=1
strcmp =  1
octave:2> strcmp ('g_90', 'vent') error: A(I,J): row index out of
bounds; value 103 out of bound 1
octave:2>

which is a logical consequence.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]