From: mat001 on 24 Mar 2010 10:08 "Piya " <priya.biomath(a)gmail.com> wrote in message <hjmdmn$rab$1(a)fred.mathworks.com>... > Anyone have idea how to do this in Matlab? I need implementation like that on a bottom close cylinder http://portal.acm.org/citation.cfm?id=1461512 Regards
From: mat001 on 24 Mar 2010 10:19 n=20; x=linspace(-1,1,n); [X,Y,Z]=meshgrid(x,x,x); r0=1.01; ix=find(X.^2+Y.^2+Z.^2<r0^2); X=X(ix);Y=2*Y(ix);Z=Z(ix); plot3(X(:),Y(:),Z(:),'.');axis equal; >> n=20; x=linspace(-1,1,n); [X,Y,Z]=meshgrid(x,x,x); r0=1.01; ix=find(X.^2+Y.^2+Z.^2<r0^2); X=X(ix);Y=Y(ix);Z=2*Z(ix); plot3(X(:),Y(:),Z(:),'.');axis equal; not working !!
From: mat001 on 24 Mar 2010 10:27 n=40; x=linspace(-1,1,n); [X,Y,Z]=meshgrid(x,x,x); r0=1.0; ix=find(X.^2+Y.^2<r0^2); X=X(ix);Y=Y(ix);Z=2*Z(ix); plot3(X(:),Y(:),Z(:),'.');axis equal; I do not know this is really what i want.
|
Pages: 1 Prev: Changing highlight color in listbox Next: robot path planning using genetic algorithm |