Simulink can not work with islocalmax

Hello,
i have vibrationsdata in my workspace which getting in a matlab function in simulink. This function includes the function islocalmax.
Simulink can not work with this. Is there any way to find maxima and minima from vibrationsdata in Simulink?
Thank you for help!

Answers (1)

Use PeakFinder Block to find maxima.
Screenshot (22).png
  • Input is constant block which contain vibration data
  • Find Maxima Output the number of extrema (maxima and minima) in an input signal. This can also be customized to output maxima or minima indices.
  • Display block captures the count and index.

Asked:

on 30 Jan 2019

Answered:

on 8 Feb 2019

Community Treasure Hunt

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

Start Hunting!