MATLAB Obtaining max1, min1, and max2 via Matlab

  • Thread starter Thread starter tareqkh
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
To obtain max1, min1, and max2 in MATLAB, a peak finding algorithm is necessary, such as peakfinder.m available on the MATLAB File Exchange. After identifying the peaks, the 'sort' function can be utilized to arrange them from highest to lowest. The nth entry in the sorted array corresponds to the nth highest peak. Contextual information about the data and the purpose of finding these points is also essential for accurate guidance. Understanding the user's background with MATLAB and their ability to use other programming languages may further clarify the approach.
tareqkh
Messages
3
Reaction score
0
Could anybody kindly tell me how to obtain max1, min1, and max2 via Matlab?

Thanks alot
 

Attachments

  • Abdu.jpg
    Abdu.jpg
    30.3 KB · Views: 528
Physics news on Phys.org


Is this homework?
 


Absolutely No
 


tareqkh said:
Could anybody kindly tell me how to obtain max1, min1, and max2 via Matlab?

Thanks alot

MisterX said:
Is this homework?

tareqkh said:
Absolutely No

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 "please" 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.
 
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 23 ·
Replies
23
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K