how can I have a differentiate of length n in S-function Simulink

1 view (last 30 days)
I am new to Simulink and I used an S-function in order to write my code. I need to numerically differntiate a vector of length n. The problem is that it diff return a vector of length n-1 and I get keep error of having an empty differentiate matrix. I do not know how to take of this in Simulink. Is there any function that returns differentiate with length n?

Accepted Answer

Birdman
Birdman on 16 Nov 2017

More Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!