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

1 回表示 (過去 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 Center および File ExchangeBlock and Blockset Authoring についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by