×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Multiple data sets in 3D using Matlab?

Multiple data sets in 3D using Matlab?

Multiple data sets in 3D using Matlab?

(OP)
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.  

RE: Multiple data sets in 3D using Matlab?

Yes

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Multiple data sets in 3D using Matlab?

(OP)
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

RE: Multiple data sets in 3D using Matlab?

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources