How to calculate the difference between Max and Min value of a signal at every x seconds?

2 views (last 30 days)
Hello everyone,
I am looking for a way to determine the difference between the maximum and minimum value of the a signal over a period of time and this should be repeated periodically.
PS: I cannot use the 'MinMax Running Resettable' block

Answers (1)

Image Analyst
Image Analyst on 9 Sep 2015
If you have the Image Processing Toolbox, you can use rangefilt().



Community Treasure Hunt

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

Start Hunting!