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

조회 수: 23 (최근 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 CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by