清华:滑模变结构控制.zip

  • 永远有多远1
    了解作者
  • matlab
    开发工具
  • 970KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 7
    下载次数
  • 2020-09-23 14:15
    上传日期
滑膜变结构控制及应用源程序代码,清华大学出版社
清华:滑模变结构控制.zip
  • 清华:滑模变结构控制MATLAB仿真第4版上部-仿真程序下载
  • 第11章仿真程序
  • chap11_7plant.m
    1KB
  • chap11_3input.m
    667B
  • Pfile.mat
    405B
  • chap11_10ctrl.m
    1.4KB
  • chap11_2LMI.m
    380B
  • chap11_8.m
    1.4KB
  • chap11_5plant.m
    908B
  • chap11_6plant.m
    949B
  • chap11_5plot.m
    536B
  • chap11_7plot.m
    608B
  • chap11_6sim.mdl
    24.1KB
  • chap11_6LMI.m
    408B
  • chap11_2ctrl.m
    726B
  • chap11_6plot.m
    590B
  • chap11_7lmi.m
    472B
  • chap11_7ctrl.m
    1.4KB
  • chap11_10dylmi.m
    384B
  • chap11_10plot.m
    565B
  • chap11_4LMI.m
    405B
  • chap11_6ctrl.m
    1.4KB
  • chap11_4input.m
    667B
  • chap11_7sim.mdl
    23.5KB
  • chap11_3plot.m
    590B
  • chap11_2plot.m
    536B
  • chap11_9input.m
    588B
  • chap11_4ctrl.m
    1.3KB
  • chap11_10lmi.m
    341B
  • chap11_10input.m
    588B
  • chap11_6input.m
    667B
  • chap11_2plant.m
    850B
  • chap11_2input.m
    0B
  • chap11_9plot.m
    111B
  • chap11_4sim.mdl
    24.1KB
  • chap11_10sim.mdl
    24.9KB
  • chap11_5sim.mdl
    22.6KB
  • chap11_4plant.m
    889B
  • chap11_9plant.m
    804B
  • chap11_4plot.m
    590B
  • chap11_5LMI.m
    408B
  • chap11_8t.m
    0B
  • chap11_8plant.m
    175B
  • chap11_3ctrl.m
    981B
  • chap11_9sim.mdl
    22.5KB
  • chap11_1.m
    268B
  • chap11_2sim.mdl
    22.6KB
  • chap11_3sim.mdl
    23.8KB
  • chap11_5ctrl.m
    795B
  • chap11_10plant.m
    804B
  • 第14章 仿真程序
  • chap14_2ctrl.m
    945B
  • chap14_1sim.mdl
    27.1KB
  • chap14_1plant.m
    1.3KB
  • chap14_2plot.m
    702B
  • chap14_2plant.m
    1.4KB
  • chap14_1plot.m
    1.4KB
  • chap14_1sim.mdl.r2012a
    22.8KB
  • chap14_1ctrl.m
    1.5KB
  • chap14_2sim.mdl
    27.1KB
  • 第8章仿真程序
  • chap8_8plot.m
    440B
  • chap8_9ctrl.m
    1.8KB
  • chap8_9plant.m
    877B
  • chap8_4sim.mdl
    24.5KB
  • chap8_3plot.m
    621B
  • chap8_3fuzz.m
    1KB
  • chap8_2rule.m
    651B
  • chap8_3sim.mdl
    25.2KB
  • chap8_8plant.m
    720B
  • chap8_7ctrl.m
    2.7KB
  • chap8_9plot.m
    519B
  • chap8_5mf.m
    246B
  • chap8_1func.m
    213B
  • chap8_5ctrl.m
    2.4KB
  • chap8_2func.m
    199B
  • chap8_3ctrl.m
    1.1KB
  • chap8_7sim.mdl
    26.9KB
  • chap8_3plant.m
    1013B
  • chap8_4plant.m
    750B
  • chap8_2sim.mdl
    30.7KB
  • chap8_8ctrl.m
    1.7KB
  • chap8_6plot.m
    597B
  • chap8_2plot.m
    595B
  • chap8_7plot.m
    741B
  • chap8_9sim.mdl
    29.9KB
  • chap8_4plot.m
    480B
  • chap8_4ctrl.m
    1.7KB
  • chap8_2plant.m
    889B
  • chap8_5plant.m
    1KB
  • chap8_8sim.mdl
    29KB
  • chap8_6plant.m
    872B
  • chap8_5plot.m
    741B
  • chap8_2ctrl.m
    921B
  • chap8_2fuzz.m
    1KB
  • chap8_6ctrl.m
    1.8KB
  • chap8_4mf.m
    259B
  • chap8_6sim.mdl
    27.2KB
  • fsmc.fis
    486B
  • chap8_7plant.m
    1KB
内容介绍
function [sys,x0,str,ts] = spacemodel(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes; case 1, sys=mdlDerivatives(t,x,u); case 3, sys=mdlOutputs(t,x,u); case {2,4,9} sys=[]; otherwise error(['Unhandled flag = ',num2str(flag)]); end function [sys,x0,str,ts]=mdlInitializeSizes sizes = simsizes; sizes.NumContStates = 53; sizes.NumDiscStates = 0; sizes.NumOutputs = 3; sizes.NumInputs = 5; sizes.DirFeedthrough = 1; sizes.NumSampleTimes = 0; sys = simsizes(sizes); x0 = [0.1*ones(53,1)]; str = []; ts = []; function sys=mdlDerivatives(t,x,u) r1=50;r2=1;r3=10; xd=0.1*sin(t); dxd=0.1*cos(t); ddxd=-0.1*sin(t); x1=u(2); x2=u(3); e=x1-xd; de=x2-dxd; k1=3; s=k1*e+de; for i=1:1:25 thtaf(i,1)=x(i); end for i=1:1:25 thtag(i,1)=x(i+25); end for i=1:1:3 thtah(i,1)=x(i+50); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fsd1=0; fsd2=0; for l1=1:1:5 gs1=-[(x1+pi/6-(l1-1)*pi/12)/(pi/24)]^2; u1(l1)=exp(gs1); end for l2=1:1:5 gs2=-[(x2+pi/6-(l2-1)*pi/12)/(pi/24)]^2; u2(l2)=exp(gs2); end for l1=1:1:5 for l2=1:1:5 fsu1(5*(l1-1)+l2)=u1(l1)*u2(l2); fsd1=fsd1+u1(l1)*u2(l2); end end fs1=fsu1/(fsd1+0.001); fx1=thtaf'*fs1'; gx1=thtag'*fs1'+0.001; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% gs3=5*(s+3); u3(1)=1/(1+exp(gs3)); u3(2)=exp(-s^2); gs3=5*(s-3); u3(3)=1/(1+exp(gs3)); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fsu2=u3; for i=1:1:3 fsd2=fsd2+u3(i); end fs2=fsu2/(fsd2+0.001); h1=thtah'*fs2'; ut=1/gx1*(-fx1-k1*de+ddxd-h1); S1=r1*s*fs1; S2=r2*s*fs1*ut; S3=r3*s*fs2; for i=1:1:25 sys(i)=S1(i); end for j=26:1:50 sys(j)=S2(j-25); end for j=51:1:53 sys(j)=S3(j-50); end function sys=mdlOutputs(t,x,u) xd=0.1*sin(t); dxd=0.1*cos(t); ddxd=-0.1*sin(t); x1=u(2); x2=u(3); e=x1-xd; de=x2-dxd; k1=3; s=k1*e+de; for i=1:1:25 thtaf(i,1)=x(i); end for i=1:1:25 thtag(i,1)=x(i+25); end for i=1:1:3 thtah(i,1)=x(i+50); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fsd1=0; fsd2=0; for l1=1:1:5 gs1=-[(x1+pi/6-(l1-1)*pi/12)/(pi/24)]^2; u1(l1)=exp(gs1); end for l2=1:1:5 gs2=-[(x2+pi/6-(l2-1)*pi/12)/(pi/24)]^2; u2(l2)=exp(gs2); end for l1=1:1:5 for l2=1:1:5 fsu1(5*(l1-1)+l2)=u1(l1)*u2(l2); fsd1=fsd1+u1(l1)*u2(l2); end end fs1=fsu1/(fsd1+0.001); fx1=thtaf'*fs1'; gx1=thtag'*fs1'+0.001; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% gs3=5*(s+3); u3(1)=1/(1+exp(gs3)); u3(2)=exp(-s^2); gs3=5*(s-3); u3(3)=1/(1+exp(gs3)); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fsu2=u3; for i=1:1:3 fsd2=fsd2+u3(i); end fs2=fsu2/(fsd2+0.001); h1=thtah'*fs2'; ut=1/gx1*(-fx1-k1*de+ddxd-h1); sys(1)=ut; sys(2)=fx1; sys(3)=gx1;
评论
    相关推荐