help-octave
[Top][All Lists]
Advanced

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

Re: problems with debugging script in if -else command


From: Bob Lounsbury
Subject: Re: problems with debugging script in if -else command
Date: Wed, 29 Sep 2010 07:34:12 -0600

The same intent, but using MATLAB syntax which is the same for Octave.

if M(n+1,2) > M(n,2)
   pr=1;
elseif M(n+1,2) < M(n,2)
   nr=1;
else
  ties=1;
end



On Tue, Sep 28, 2010 at 10:27 AM, address@hidden <address@hidden> wrote:
Thanks, Jordi,

That was it.

Brian


From: Jordi Gutiérrez Hermoso <address@hidden>
To: "address@hidden" <address@hidden>
Sent: Tue, September 28, 2010 11:58:21 AM

Subject: Re: problems with debugging script in if -else command

On 28 September 2010 10:37, address@hidden

<address@hidden> wrote:
> I am trying to get an if - else command to work, but am told of a syntax
> error at the else statement. (script attached.)

You have a capital If instead of if


_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave



reply via email to

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