필터 지우기
필터 지우기

if else statement in simulink function

조회 수: 2 (최근 30일)
Arnur Karbozov
Arnur Karbozov 2020년 8월 8일
답변: Gouri Chennuru 2020년 8월 14일
Hi everyone. I am trying to make a switch using function. V states for voltage and when it exceeds 50V on voltmeter, the d value must be switched to V. But in all my simulations it keeps to stay at d=Iold instead of d=Vold even though the voltage already exceeded 50V. Would appreciate your suggestions

답변 (1개)

Gouri Chennuru
Gouri Chennuru 2020년 8월 14일
Hi Arnur,
I recommend you to check the inputs to the function & configure the inports to the model & the output to the function call and use the MATLAB function block enable you to define custom functionality in Simulink where that function is implemented using MATLAB.
Thanks & Regards,
Gouri Chennuru.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by