Mo phong Video youtube
Adaptive Sliding-Mode Control for Boost DC–DC Converters: MATLAB Implementation
function [u,s,dx1,dx2,dv1,dtheta] = SMC(x1,x2,Vref,x1_e,x2_e,V1_e,theta_e)
%%Total sliding mode control
L=180e-6;
C=150e-6;
R=40;
iref=Vref^2/(R*60);
K1=883*5;
K2=883*5;
K=[K1 K2];
Lemda1=200;
Lemda2=250;
eps = 1e-6; % <-- Thêm hằng số epsilon
s=x1_e-Vref^2/(V1_e + eps)*theta_e; % <-- Đã sửa V1_e
u=1-(V1_e+K1*L*(x1-x1_e)+Lemda2*L*Vref^2/(V1_e + eps)*x2*(x2-x2_e)+Lemda2*L*Vref^2/((V1_e + eps)^2)*theta_e*(x1-x1_e))/(x2_e + eps); % <-- Đã sửa V1_e và x2_e
if u<0
u=0;
end
if u>0.95
u=0.95;
end
dx1=-(1-u)*x2_e/L+V1_e/L+K1*(x1-x1_e);
dx2=(1-u)*x1_e/C-theta_e/C*x2_e+K2*(x2-x2_e);
dtheta=-Lemda1*x2*(x2-x2_e);
dv1=Lemda2*(x1-x1_e);
%D=1-u;
end
인용 양식
Jaclyn (2025). Adaptive Sliding Mode Control (https://kr.mathworks.com/matlabcentral/fileexchange/182394-adaptive-sliding-mode-control), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2024b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!