"Eyal Fleminger" <efleminge@gmail.com> wrote in message <hr3dad$17g$1@fred.mathworks.com>...
> > 
> > Just make spherical coordinate meshes of each of the surfaces involved and combine them into one big mesh. Then convert it from spherical to cartesian coordinates. Piece of cake!
> >
> > Roger Stafford
>
> How would I generate the meshes? Could you maybe give a simple example?
>
> Thanks

I had something along these lines in mind. If you adjust the 'view' function, you can see this "wedge" from other directions.
r = 5;
[theta,phi] = meshgrid(linspace(0,.4*pi,32),linspace(pi/2,pi/2,32));
x1 = r.*cos(theta).*cos(phi);
y1 = r.*sin(theta).*cos(phi);
z1 = r.*sin(phi);
theta = 0;
[r,phi] = meshgrid(linspace(0,5,32),linspace(pi/2,pi/2,32));
x2 = r.*cos(theta).*cos(phi);
y2 = r.*sin(theta).*cos(phi);
z2 = r.*sin(phi);
theta = .4*pi;
[r,phi] = meshgrid(linspace(0,5,32),linspace(pi/2,pi/2,32));
x3 = r.*cos(theta).*cos(phi);
y3 = r.*sin(theta).*cos(phi);
z3 = r.*sin(phi);
x = [x1;x2;x3];
y = [y1;y2;y3];
z = [z1;z2;z3];
surf(x,y,z)
axis square
Roger Stafford
