[Top][All Lists]

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

Re: duplicate values in 3D space

From: Iago Mosqueira
Subject: Re: duplicate values in 3D space
Date: Fri, 14 Feb 2003 16:10:33 -0000

From: "PAUL KIENZLE" <address@hidden>
Sent: 13 February 2003 19:11
Subject: Re: duplicate values in 3D space

> shouldn't that be
>    sparse(x-min(x)+1,y-min(y)+1,..., 'sum') ./
> sparse(x-min(x)+1,y-min(y)+1,...,'sum')

Umm, the other version works too.

> Won't it break if your coordinates are negative, zero or non-integer?

Yes, nut I am working on nautical miles, aways positive from a 0,0 point.

> You could do something like:
>    coords = (x-min(x))*(max(y)-min(y))*(max(z)-min(z)) \
> + (y-min(y))*(max(z)-min(z)) + z-min(z) + 1;

Yes, I thought about it, but when doing the sparse I run out of memory,
since coords goes to 2.8412e+04, quite a big matrix. My cube has 1.381e+08

> Unavailable.  Talk to John before starting work on it
> though since he may have some opinions about how to
> do it.

I am afraid I wouldn't be qualified to do it, just qurious, since my work
involves a lot of 3D matrices.



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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