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

조회 수: 2 (최근 30일)
Mary
Mary 2017년 11월 16일
댓글: Mary 2017년 11월 16일
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?

채택된 답변

Birdman
Birdman 2017년 11월 16일
  댓글 수: 1
Mary
Mary 2017년 11월 16일
Thank you, I have tried this but it returns a 2*1 matrix instead of 1*1.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by