how can i plot a 3d graph using 3 different sets of data?

2 views (last 30 days)
Hi all, I have 3 different sets of data (from xls file). I would like to use 2 of them to assign the respective x and y axis value to the corresponding z Value. To be more precise, i have x and y values varying from -24 to 24 not evenly spaced (eg : -24,-21,-19,-17....). Let Xn be the number of x points and Yn be the number of y points. So i have Xn*Yn , z points i need to assign to the (x,y) pair accordingly. how can i do this? using mesh function? How?? thanls for ur time guys!

Answers (1)

Star Strider
Star Strider on 10 May 2015
To use a mesh plot, you would have to use scatteredinterpolant.
I would use scatter3 or stem3 (my preference) to begin with to display your data and then decide if you want to do gridded interpolation.
  2 Comments
jorge sousa
jorge sousa on 10 May 2015
Thanks for ur time. Do you have any ideas on how i should define the matrixs?
Joseph Cheng
Joseph Cheng on 10 May 2015
the documentation on scatter3 and stem3 will tell you how you should define the inputs.

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!