필터 지우기
필터 지우기

Setting default initial temperature as variable in simulink

조회 수: 6 (최근 30일)
Ender Wiggin
Ender Wiggin 2017년 4월 6일
답변: Ankitha Kollegal Arjun 2017년 4월 17일
How to define a default initial temperature as a value like "T_start" in simulink (not Matlab)? so I can change all my initial temperatures in different block parameters at once by just changing the value of T-start in Simulink.

답변 (1개)

Ankitha Kollegal Arjun
Ankitha Kollegal Arjun 2017년 4월 17일
The PostLoadFcn callback in the Model Explorer can be used to initialize a parameter when the model is opened.
In Simulink, go to View->Model Explorer.
In the Callbacks tab of Model Properties, select PostLoadFcn and define the variable there.

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by