×
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

Plot two vectors in the same graph

Plot two vectors in the same graph

Plot two vectors in the same graph

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

RE: Plot two vectors in the same graph

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: Eng-Tips.com Forum Policies for tips on how to make the best use of Eng-Tips.

RE: Plot two vectors in the same graph

(OP)
Hehe, I haven't used MathCad very much at all, but I'm discovering it has some potential thanks to you!

Thanks!

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