Create a function named Local_Max.m that calculates the local maximum values of the signal by comparing the value of a sample with its immediate neighbour samples value. Give the time when the local maximums occur.

3 ビュー (過去 30 日間)
hello

回答 (1 件)

Image Analyst
Image Analyst 2017 年 12 月 14 日
Assuming you can't just put a wrapper around imregionalmax(), then I'd just put a wrapper around movmax() or imdilate(), which computes the local max (requires Image Processing Toolbox), then compare with ==.
Hint:
localMax = movmax(...... % or imdilate(...........
maxIndexes = localMax == originalSignal

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by