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

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Birdman
Birdman il 16 Nov 2017

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by