[X,Y] = meshgrid(-3:.125:3);
Z = peaks(X,Y);
meshc(X,Y,Z);
axis([-3 3 -3 3 -10 5])
rotate3d on % <--- here's the key
Now click and drag on the plot.
kartik - 21 Jul 2008 03:06 GMT
> [X,Y] = meshgrid(-3:.125:3);
> Z = peaks(X,Y);
[quoted text clipped - 3 lines]
>
> Now click and drag on the plot.
Hi, thanks for your reply..
but this is not what I wanted... I'll make myself clear..
I have a mesh plot. This mesh plot shows the surface in the xy
direction. But, how do I generate a different mesh plot showing the
surface in the yz direction instead of in the xy direction. I'm not
talking of just rotating the plot. I want a different mesh with the
surface in the yz direction to be in the xy direction..
Hope I made myself clear.. Thanks for the help..
>I have a mesh plot. I want to see it from a different axis point of
>view. How do I change the orientation of this mesh plot?
mesh(X,zeros(size(X)),Y)

Signature
"Prevention is the daughter of intelligence."
-- Sir Walter Raleigh