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

2 ビュー (過去 30 日間)
Vishnu Dhakad
Vishnu Dhakad 2019 年 7 月 1 日
編集済み: Matt J 2019 年 7 月 1 日
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 Center および File ExchangeDescriptive Statistics についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by