필터 지우기
필터 지우기

how can use hysteresis 4 level in simulink

조회 수: 7 (최근 30일)
laiche zeghdi
laiche zeghdi 2023년 8월 21일
hi. i need some information on how to use comparateur hysteresis , is there any block or any thing related in matlab simulink?
I have 2 input (Error,Hysteresis) for write this function . so how can applic this in simulinc?
because i not find bloc hystersis 4 leve
function dP=active(x)
err=(1);hys1=(2);hys2=(3);
if err>=hys2
dP=2;
elseif (hys1<err && err<hys2)
dP=1;
elseif (-hys1<err && err<hys1)
dP=0;
elseif err<-hys1
dP=-1;
end;
end

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by