[Top][All Lists]

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

ranges (was Numerical issues with sin()/cos() )

From: Ian McCallion
Subject: ranges (was Numerical issues with sin()/cos() )
Date: Wed, 28 Mar 2018 10:11:39 +0100

On Wed, 28 Mar 2018, 08:34 Mike Miller, <address@hidden> wrote:
> <skip>
> Actually it's that Octave stores ranges as a (start, step, stop)
> triplet. Let's say the value n is the range -16.5:1:16.5 as in your
> example. Octave stores that as (start=-16.5, step=1, stop=16.5).

On this point, knowing ranges were stored this way I thought recently
that the best way to code my problem was:

   for ct =1:inf
       if condition; break

 and was disappointed it did not work. Is there a good reason it does not?

Cheers... Ian

reply via email to

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