Chp12xx1.m
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:0k
源码类别:
其他行业
开发平台:
Matlab
- PL=0.2;
- A = [-5 0 -100; 2 -2 0; 0 0.1 -0.08];
- B = [0; 0; -0.1]; BPL=PL*B;
- C = [0 0 1];
- D = 0;
- Q = [20 0 0; 0 10 0; 0 0 5];
- R = .15;
- [K, P] = lqr2(A, B, Q, R)
- Af = A - B*K
- t=0:0.02:1;
- [y, x] = step(Af, BPL, C, D, 1, t);
- plot(t, y), grid
- xlabel('t, sec'), ylabel('pu')
- disp('(b) Open sim12xx1.mdl in SIMULINK WINDOW and click on simulation')