How do i get the slope of a running simulink file?

3 views (last 30 days)
I need to find the varying slope of the given graph at a time gap of 0.25 second. This slope is required for further calculation and hence needs to be obtained whilst the simulink is running. Kindly find the input file attached below.

Accepted Answer

Andy Bartlett
Andy Bartlett on 7 Jul 2022
Look at the Discrete Derivative block.
  1 Comment
Anjali Mohan
Anjali Mohan on 8 Jul 2022
Thank you. It seems to work with a little adjustment in the gain value.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Tags

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!