How do I make a simscape integral in a custom component?

If I have an equation x = integral(y,dt) how would I implement this in a simscape custom component?
The code that I have actually comes from verilog AMS:
Mirr = idt(dMirr, Manh);
Would this be simmilar in simscape?
Mirr.der == dMirr;

回答 (1 件)

Michelle Wu
Michelle Wu 2017 年 4 月 27 日

0 投票

For component customization in Simscape, the 'integ' operator lets you perform time integration of an expression in the equations section of a Simscape file without declaring and initializing extra variables. Please refer to the doc page below for syntax and examples:

カテゴリ

ヘルプ センター および File ExchangeEquations についてさらに検索

製品

質問済み:

2017 年 4 月 19 日

回答済み:

2017 年 4 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by