The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.