help-octave
[Top][All Lists]
Advanced

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

Re: a question about coding OCTAVE


From: Dmitri A. Sergatskov
Subject: Re: a question about coding OCTAVE
Date: Wed, 2 Oct 2019 15:37:03 -0500

On Wed, Oct 2, 2019 at 3:34 PM mohammad aminpanah
<address@hidden> wrote:
>
> Hello
> When I define a for LOOP starting with a negative point or ending a negative 
> point, an error will appear reciting that I cannot start or end the loop with 
> negative numbers. What should I do?
>
> In advance, thank you for your consideration and help.
> With Gratitude
> Mohammad Aminpanah
> M.Sc of geophysics
>

Works for me:

octave:1> for ii=-10:-1 disp(ii) endfor
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1

Regards,

Dmitri.
--



reply via email to

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