How to find maxima and minima of a column matrix without using findpeaks ?

조회 수: 2 (최근 30일)
I dont have signal processing toolbox in my matlab package so I cant use findpekas.

채택된 답변

Matt J
Matt J 2019년 7월 1일
편집: Matt J 2019년 7월 1일
d=conv( [A(1); A(:); A(end)], [1 ;-2 ;1], 'valid');
saddles=find(d==0)
maxs=find(d>0)
mins=find(d<0)
  댓글 수: 5
Vishnu Dhakad
Vishnu Dhakad 2019년 7월 1일
Thanks its working
I want location also.
Matt J
Matt J 2019년 7월 1일
The code I gave you does give the location.

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

추가 답변 (0개)

카테고리

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