Discrete Derivative only in certain time steps

2 ビュー (過去 30 日間)
Nicolas Alles
Nicolas Alles 2020 年 2 月 26 日
回答済み: Keerthana Chiruvolu 2020 年 3 月 3 日
Im simulating a system with a discrete derivative block. Since its a very large system it takes very long to run. Is there ay possibility to change the time step of the derivative block, so that the derivation is only done like every 5 time steps or maybe every second. Or maybe there is a block to suspend the branch with the derivative block for a certain amount of time steps, so the simulation doesnt last so long.
P.S.: Im sure that the discrete derivation is the cause for the long running time. The system doesnt work with the casual derivative block btw.

回答 (1 件)

Keerthana Chiruvolu
Keerthana Chiruvolu 2020 年 3 月 3 日
Hi,
Step size and number of iterations affect the accuracy of the simulation. Choose a step size for the Simulink solver which suits your model.
Refer to the following link for more information:

カテゴリ

Help Center および File ExchangeChassis Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by