control hystérésis 4 level

조회 수: 3 (최근 30일)
laiche zeghdi
laiche zeghdi 2023년 7월 23일
댓글: laiche zeghdi 2023년 7월 23일
function dP=active(x)
err=x(1);hys=x(2);
if err>=hys
dP=2;
elseif (0<err && err<hys)
dP=1;
elseif (-hys<err && err<0)
dP=-1;
elseif err<-hys
dP=-2;
end;
end
i got problem:Not enough input arguments line (2).
  댓글 수: 4
Dyuman Joshi
Dyuman Joshi 2023년 7월 23일
편집: Dyuman Joshi 2023년 7월 23일
Are you working with a Simulink model?
Or are you just running the code you posted?
laiche zeghdi
laiche zeghdi 2023년 7월 23일
I use simulink model. I use simulink DPC with NPC 3level (control error power direct with hystirsis 4 level )

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by