Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab Help please

  1. Feb 4, 2012 #1
    Could any body kindly tell me how to obtain max1, min1, and max2 via Matlab?

    Thanks alot

    Attached Files:

    • Abdu.jpg
      File size:
      30.6 KB
  2. jcsd
  3. Feb 4, 2012 #2
    Re: Matlab Help plz

    Is this homework?
  4. Feb 4, 2012 #3
    Re: Matlab Help plz

    Absolutely No
  5. Feb 4, 2012 #4


    User Avatar

    Staff: Mentor

    Re: Matlab Help plz

    Then can you please tell us the context of the question? What is the data plot from? Why do you need to find those points? What is your background with MATLAB? Can you use a different programming language to do this problem?

    BTW, txt speak like "plz" is not allowed on the PF (see the Rules link at the top of the page). I have edited your thread title to get rid of the txt speak.
  6. Feb 4, 2012 #5


    User Avatar
    Gold Member

    you'd need a peak finder algorithm first, there's peakfinder.m on the open file exchange. Then you can use matlabs 'sort' to order them from highest to lowest, then your nth entry in that array is nth highest peak.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook