help-octave
[Top][All Lists]
Advanced

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

Re: get / set points corresponding to a surface within a 3D volume


From: Tasos Papastylianou
Subject: Re: get / set points corresponding to a surface within a 3D volume
Date: Tue, 12 Feb 2013 14:53:26 -0800 (PST)

Posting back a nice reply by JordiGH (via IRC) for future travellers :)

given:
x = 1:5
[x,y] = meshgrid(x,x)
z = x+y
V = rand(10,10,10);

do:
V(sub2ind(size(V),x,y,z))



--
View this message in context: 
http://octave.1599824.n4.nabble.com/get-set-points-corresponding-to-a-surface-within-a-3D-volume-tp4649699p4649806.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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