+ Reply to Thread
Results 1 to 4 of 4

Finding max and min values for a sinusoidal wave

  1. #1
    Registered User
    Join Date
    11-29-2017
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    2016
    Posts
    2

    Finding max and min values for a sinusoidal wave

    For an assignment, I have to research the extinction of a pendulum.
    Now I have a lot of data and it's easy to find the period of the pendulum. To know the rate of extinction, I have to know the log-function of the maximum and minimum.
    In a thread from april 2009 Andy Pope was able to produce a solution. Problem is, I can't open the file (is gives me an error).
    Can someone please help me?

    tim2011110 was so nice to make an attechment of the file (see post below)
    Last edited by tostyijzer; 11-29-2017 at 04:08 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Finding max and min values for a sinusoidal wave

    here it is
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-29-2017
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    2016
    Posts
    2

    Re: Finding max and min values for a sinusoidal wave

    Thank you for attaching the file tim2011110!
    Now I hope someone is able to get a solution.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: Finding max and min values for a sinusoidal wave

    Assuming you are getting the same error I get opening Andy Pope's file (file extension not valid or similar), it is because, for some reason, whenever I download 2003 and earlier .xls files, the forum/my browser/Excel gremlins erroneously adds the .xlsx extension to the file, which does not match the file type. I find that I can open the file if I browse to the download folder, locate the file, rename file, and delete the .xlsx extension (you may need to change a windows explorer option to display extensions of known file types). Once the erroneous .xlsx extension is removed from the filename, then I can open the file in Excel just fine (in compatibility mode, naturally).

    If you get to a point of opening Andy's file, you should see that he uses a fairly simple AND(this point>previous point,this point>next point) to test for the maxima (similar for the minima). The data he was working with appear to be essentially noise free, so this simple test seems to work fine. Your data seem a little bit noisier. I am not sure a simple test like this will work for your data. You can try it and see if you are satisfied with the results.

    Any time I approach this kind of "signal analysis", I recall from calculus that maxima/minima occur where the slope of the function is 0, so the first thing I usually do is add a helper column to compute a slope for the data at each point. The details of this calculation will depend on how much, if any, smoothing I need to do on the data, or any other considerations around computing the slope. Once I have a column of slopes, then I will add additional helper columns to locate where the slope is 0 and changes sign and any other calculations I need. The final result is a lookup column that tells me where each of the maxima/minima are in the data and allows me to lookup or filter the data for those points.

    If you are going to use this kind of signal processing approach, I would probably start with something like Andy Pope's solution. If I am satisfied with that simple test, then go from there. If I feel I need a better algorithm, refine the test as needed.

    A possible different approach -- since you expect this to be damped oscillation (https://en.wikipedia.org/wiki/Damped_sine_wave ), I could see an approach that uses non-linear regression techniques (Solver) to "best fit" the parameters for the damped sine wave function. Your instructor may not expect you to know how to use this approach, or may prefer that you not use this approach. If you are allowed to, this would be a way of "fitting" both frequency/period and damped amplitude portions of the function simultaneously rather than finding them separately.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Equation of trendline for sinusoidal function.
    By Chinmayee in forum Excel General
    Replies: 1
    Last Post: 02-04-2016, 06:33 PM
  2. Finding max and min values for a sinusoidal wave
    By throstur78 in forum Excel General
    Replies: 7
    Last Post: 11-21-2014, 07:06 AM
  3. Array transformation and sinusoidal distribution of data macro
    By Vilim4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-23-2013, 12:29 PM
  4. Big Wave Hello!
    By Beanmuncher in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 03-29-2013, 11:10 PM
  5. [SOLVED] Finding zero crossings of sine wave and its maximas
    By Semusal in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 07-04-2012, 08:01 PM
  6. Replies: 5
    Last Post: 09-12-2011, 04:14 PM
  7. Help With Advance Excel Macro (Fluctuating Sine Wave Values)
    By FLsurf7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2011, 12:23 PM

Tags for this Thread

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