Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Shifting data
Replies: 2   Last Post: Feb 18, 2010 9:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ben

Posts: 6
From: Netherlands
Registered: 2/18/10
Shifting data
Posted: Feb 18, 2010 9:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I want to start two graph's at the same y-value (trig) independent of there corresponding x-value so I can compare those graph's.

So I've made a function which calculates the x-value of this y-value by interpolation.
This gives me the exact x-value of the point of intersection.

In a next step I want to plot both graphs with the intersection point in both graphs at the same x-value.
For this step I would like to shift the data from this (non-existing) interpolated intersect x-point.


The problem is that this intersect x-value is between to measurement points and the question is whether and how it is possible to shift the data over the x-axis to a certain point.


For example:
Working with array G.
The intersect point is between data point A(0.2, 1) and data point B(0.8, 2)
The intersect point has coordinates (1.333,0.4)

I want to shift array G in such a way that intersect point (y=0.4) will have a x=0.


Date Subject Author
2/18/10
Read Shifting data
Ben
2/18/10
Read Re: Shifting data
Jan Simon
2/18/10
Read Re: Shifting data
Ben

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.