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

2 visualizaciones (últimos 30 días)
Mary
Mary el 16 de Nov. de 2017
Comentada: Mary el 16 de Nov. de 2017
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?

Respuesta aceptada

Birdman
Birdman el 16 de Nov. de 2017
  1 comentario
Mary
Mary el 16 de Nov. de 2017
Thank you, I have tried this but it returns a 2*1 matrix instead of 1*1.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by