The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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


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
Read Shifting data
Read Re: Shifting data
Jan Simon
Read Re: Shifting data

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.