フィルターのクリア

How do I set an initial value for an input in a MATLAB Function Block in Simulink?

15 ビュー (過去 30 日間)
This is the function description.
function Y = fcn(U)
Y=U*2;
I want to set intial value for U at the start of simulation. I am unable to set initial value in the function block data editor.
Below is the simulink model:

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 2 月 21 日
The initial value of "U" is determined by the 1/z block. Set the initial value there.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by