From: mat001 on
"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
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


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.