[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.
- Strcmp not behaving as expected, Mumble07, 2012/10/21
- Re: Strcmp not behaving as expected, Ben Abbott, 2012/10/21
- Re: Strcmp not behaving as expected, Mumble07, 2012/10/22
- Re: Strcmp not behaving as expected, c., 2012/10/22
- Re: Strcmp not behaving as expected, Martin Helm, 2012/10/22
- Re: Strcmp not behaving as expected, Mumble07, 2012/10/22
- Re: Strcmp not behaving as expected, Martin Helm, 2012/10/22
- Re: Strcmp not behaving as expected, Mumble07, 2012/10/22
- Re: Strcmp not behaving as expected, Mumble07, 2012/10/22
- Re: Strcmp not behaving as expected, Jordi Gutiérrez Hermoso, 2012/10/22
- Re: Strcmp not behaving as expected,
Martin Helm <=
- Re: Strcmp not behaving as expected, Jordi Gutiérrez Hermoso, 2012/10/22
- Re: Strcmp not behaving as expected, c., 2012/10/22
- Re: Strcmp not behaving as expected, Ben Abbott, 2012/10/22
- Re: Strcmp not behaving as expected, Mumble07, 2012/10/22
- Re: Strcmp not behaving as expected, Sergei Steshenko, 2012/10/22