フィルターのクリア

How to generate time dependent exponential terms in Simulink?

108 ビュー (過去 30 日間)
John Doe
John Doe 2020 年 8 月 1 日
回答済み: Glenn 2023 年 11 月 8 日
Hello!
I would like to deploy a exp(-2*t) function in Simulink where t is the simulation run time.
How can I make this block? thanks in advance!

採用された回答

Roger J
Roger J 2020 年 8 月 1 日
I did it with a "Matlab function" which you can add to the simulink diagram like any other element.
When you double click the "Matlab function" the matlab editor opens, and you can use the following:
function y = fcn(u)
y = exp(-2*u);
Next I tied a "Ramp source" to the "Matlab function" input, and it works nicely.
If this is what you want please mark this as the answer.

その他の回答 (1 件)

Glenn
Glenn 2023 年 11 月 8 日
how to put e^t in simulink

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by