+ Reply to Thread
Results 1 to 8 of 8

How to find amplitude on diagonal curve?

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    st. louis, mo
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    4

    How to find amplitude on diagonal curve?

    Hello all,

    I have a data set that consists of a roughly sinusoidal curve in a coordinate plane. I am trying to find the amplitude, wavelength and frequency of the data, which would be easy but for one thing: the linear trendline through the curve is sloped upward. Ideally, I would like to "rotate" the curve so that the trendline is parallel to the x-axis, because this would make it easy to calculate my desired variables. Any ideas? I can post a sample if it would help my explanation. Thanks in advance.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to find amplitude on diagonal curve?

    An example always helps, as well as describing the genesis of the problem.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    st. louis, mo
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    4

    Re: How to find amplitude on diagonal curve?

    Example.xlsx

    Column A is a time point, B is x coordinates, and C is y coordinates. I plotted a scatterplot of x vs. y to show what the data looks like currently.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to find amplitude on diagonal curve?

    See attached. I used Solver to get the rotation angle. It could be done in closed form, but I didn't want to think that hard.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-03-2013
    Location
    st. louis, mo
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    4

    Re: How to find amplitude on diagonal curve?

    Quote Originally Posted by shg View Post
    See attached. I used Solver to get the rotation angle. It could be done in closed form, but I didn't want to think that hard.
    That is exactly what I need. I have never used Solver though; how do I get the rotation angle using it? Thanks a lot! You are a life (and thesis) saver.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to find amplitude on diagonal curve?

    Data > Solver. Look at the model.

  7. #7
    Registered User
    Join Date
    04-03-2013
    Location
    st. louis, mo
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    4

    Re: How to find amplitude on diagonal curve?

    Sorry, I still don't follow that step. The model shows a angle of -.837, but there is no formula shown in that cell and I can't figure out how you got there. I can open Solver, but I'm not sure what values to input and where to get that angle number. I tried copying what was shown when I open solver in your model but it gives me an error message.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to find amplitude on diagonal curve?

    The Solver model says set D1 (which is the slope of the trendline after the rotation) to zero by changing D2. There's no formula because Solver is changing it via code.
    Last edited by shg; 04-04-2013 at 01:51 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1