s-function to perform integration & differentiation

i wanted to know how to write an s-function to make a custom block that performs integration or differentiation or solve a differential equation of a polynomial given as input. i needed some help with the code of such a function as it does not seem to accept the c++ syntax in script file mode. thank you

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 14 日

1 投票

Are you writing MATLAB-file S-functions? If so, I would recommend looking at examples by opening up:
>> sfundemos
And browse into Level-2 MATLAB-file S-functions. Of particular interest may be:
>> msfcndemo_vsfunc
>> msfcndemo_limintm

カテゴリ

ヘルプ センター および File ExchangeBlock and Blockset Authoring についてさらに検索

質問済み:

2012 年 2 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by