필터 지우기
필터 지우기

Finding the first, second and third maxima in a plot

조회 수: 7 (최근 30일)
Ricky
Ricky 2013년 5월 28일
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

답변 (1개)

Image Analyst
Image Analyst 2013년 5월 28일
Try using findpeaks() in the Signal Processing Toolbox or imregionalmax() in the Image Processing Toolbox.
  댓글 수: 2
Ricky
Ricky 2013년 5월 28일
편집: Ricky 2013년 5월 28일
I would like to thank you with this findpeaks() command.
While searching in the help I found this findpeaks command also. But now I am having another problem. My data is having 179 rows and 4010 columns. So I use a for loop and evaluate the peaks using findpeaks() function. My problem now is to store this new variable of size 179 rowsand unknown columns.
Image Analyst
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by