Clear Filters
Clear Filters

Simulink can not work with islocalmax

1 view (last 30 days)
Silvio Risse
Silvio Risse on 30 Jan 2019
Answered: Shivam Gupta on 8 Feb 2019
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)

Shivam Gupta
Shivam Gupta on 8 Feb 2019
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.

Community Treasure Hunt

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

Start Hunting!