[Top][All Lists]

[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 22:00:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

Am 22.10.2016 um 19:37 schrieb Julien563:
> When i did :  <> 

There is no need to make screenshots, just copy and paste the code/and
or output from the command window and insert it verbatim.

> Why -Inf? for my 2nde value?.

We can't say without having the values for nc and pixel_y_metres. I
guess one of them is already Inf:

octave:1> floor (Inf./2)*5
ans = Inf
octave:2> floor (1000./2)*Inf
ans = Inf

-- Andy

PS: your code with 2 nested for loops will be very slow. Try to
vectorize it.

reply via email to

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