Finding the first, second and third maxima in a plot
7 ビュー (過去 30 日間)
古いコメントを表示
Hello Everyone,
I want to extract the first the maximas in my graph and save the sequence in a seperate variable. I know the maximum function gives me the maximum value in a data set. But I am not able to use this information for finding the next peaks. I have uploaded the graph on the following link and I will mark the peaks which I want to extract from this.
Thanks
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 5 月 28 日
Try using findpeaks() in the Signal Processing Toolbox or imregionalmax() in the Image Processing Toolbox.
2 件のコメント
Image Analyst
2013 年 5 月 28 日
You can use a cell array to store variable-sized information, so row 1 could have 9 peaks, row 2 could have 5 peaks, and row 3 can have 11 peaks, etc. See the FAQ for a discussion of cell arrays: http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!