Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple data sets in 3D using Matlab?

Status
Not open for further replies.

bhoff

Mechanical
Mar 20, 2006
2
I want to use Matlab version 6.5 to plot several 2D data sets offset from eachother (into a third dimension). Note: this is not a 3D multivariable plot. Specifically, I've measured a signal (x) versus time (t); I've repeated this, say 5 times; now I want to plot x versus t for all 5 trials, but not overlapping in a 2D plot! I want to offset the 2D plots, extending them into a third axis (y) in which case the y-axis is the trial number. Is this possible?

Thanks for your interest.
 
Replies continue below

Recommended for you

Yes

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Thanks for your reply Greg. Now, I've recently discovered I can do this with the mesh function, but it will require scaling the x-axis (so it's time in my case) instead of # of data points. Now, can you suggest any craftier way to do generate such a plot?

Thanks,
Brian
 
Sure, add a different offset to the y and x values for each run, this will give you a staggered 3d layout, plotted on a 2d figure.




Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor