Effacer les filtres
Effacer les filtres

control hystérésis 4 level

4 vues (au cours des 30 derniers jours)
laiche zeghdi
laiche zeghdi le 23 Juil 2023
Commenté : laiche zeghdi le 23 Juil 2023
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 commentaires
Dyuman Joshi
Dyuman Joshi le 23 Juil 2023
Modifié(e) : Dyuman Joshi le 23 Juil 2023
Are you working with a Simulink model?
Or are you just running the code you posted?
laiche zeghdi
laiche zeghdi le 23 Juil 2023
I use simulink model. I use simulink DPC with NPC 3level (control error power direct with hystirsis 4 level )

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by