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!
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
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
Thanks!