035188 2011 2

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: . : - 035188 2011 - - . - . - . - . -MATLAB, : : close all clear all clc A = [0 1;0 0]; B = [0 1]'; C = [1 0]; x0 = [5 5]; %%%%%%%%%%%%%%%%%%%%%%%%% % Design Parameters % %%%%%%%%%%%%%%%%%%%%%%%%% rho = 1e-6; kz = 10; sigma = 1; - kw = 10; %%%%%%%%%%%%%%%%%%%%%%%%% Cz = [1 0] * kz; Bw = eye(2) * kw; P = care(A,B,Cz'*Cz,rho); Q = care(A',C',Bw*Bw',sigma); F = 1/rho*B'*P; L = 1/sigma * Q * C'; Af = A - B*F; fr = -1/(C*Af^-1*B); dt = 0.001; t = 0:dt:3; r = 5*sin(pi*t); Input.time = t'; Input.signals(1).values = r'; Input.signals(1).dimenti...
View Full Document

Ask a homework question - tutors are online