Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Plot two vectors in the same graph

Status
Not open for further replies.

erk00

Structural
Jan 29, 2009
7
I have a little problem. I would like to plot two vectors in the same graph but the problem is that they are correlated to two different x-vectors. And I can't convert them to match.

Is this possible or do I ahve to make two different graphs and manually put them over eachother? (the x-vectors have the same range but not same individual values.)

Thanks!
 
Replies continue below

Recommended for you

Not having much luck are you?

let's say you've got x1 and y1 with index range i1, and x2 and y2 with index range i2

<sp>=space to jump back up from subscript

y1[i1<sp>,y2[i2@x1[i1<sp>,x2[i2

I think from what you say that i1 and i2 may be identical.

This method is enormously flexible, you can easily rescale stuff on the fly, and you can decimate the data on the fly by using i1*2 and so on, with care.




Cheers

Greg Locock

SIG:please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Hehe, I haven't used MathCad very much at all, but I'm discovering it has some potential thanks to you!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor