help-octave
[Top][All Lists]
Advanced

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

Re: Problem loop for and image size


From: Andreas Weber
Subject: Re: Problem loop for and image size
Date: Sat, 22 Oct 2016 18:31:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

Am 22.10.2016 um 17:58 schrieb Julien563:
> Ok thx, a lot, it's working! But for the first loop for why my variable
> doesn't change?

Why do you expect it should change as long as the inner loop is running?
As you can see from the increasing pixel_y_metres the inner for loop is
still running. This is the same as:

for a = 1:3
  for b= 10:12
    printf ("a = %i, b = %i\n", a, b);
  endfor
endfor

a = 1, b = 10 #your screenshot
a = 1, b = 11 #your screenshot
a = 1, b = 12 #your screenshot
a = 2, b = 10
a = 2, b = 11
a = 2, b = 12
a = 3, b = 10
a = 3, b = 11
a = 3, b = 12

-- Andy



reply via email to

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