Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

Change axes of mesh plot

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kartik - 18 Jul 2008 04:26 GMT
Hi,

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?

Thanks
Matt Fig - 18 Jul 2008 04:52 GMT
[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..
Walter Roberson - 21 Jul 2008 18:15 GMT
>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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.