Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Changing axis numbers on 3D surface plots
Replies: 3   Last Post: Jul 1, 2013 10:13 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
asif khan

Posts: 16
Registered: 6/24/13
Re: Changing axis numbers on 3D surface plots
Posted: Jul 1, 2013 5:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Monday, July 1, 2013 3:15:10 PM UTC+5:30, Ulrik Nash wrote:
> I have a matrix, which I would like to make a 3D surface plot of.
>
>
>
> My problem is that when I use the simple surface command, the axis values contain the row and column indexes, and that is not what I want. I wish to change the axis values to something else, for example, to values contained in a vector.
>
>
>
> How do I do that?


take the mesh plot... like this

let x be a vector and y be another vector..

first take

>>[X Y] = meshgrid(x,y);

And take Z be the matrix that you want to plot, then next take

>>mesh(X,Y,Z)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.