11.03.2015 Views

www.FreeLibros.org

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Capítulo 10. Diseño de sistemas de control en el espacio de estados 805<br />

MATLAB Programa 10-23<br />

% ---------- Respuesta a un escalón unitario del sistema diseñado ----------<br />

A = [0 1 0;0 0 1;0 –2 –3];<br />

B = [0;0;1]<br />

C = [1 0 0];<br />

D = [0];<br />

K = [100.0000 53.1200 11.6711];<br />

k1 = K(1); k2 = K(2); k3 = K(3);<br />

% ***** Definir la matriz de estado, la matriz de control, la matriz de salida,<br />

% y la matriz de transmisión directa del sistema diseñado como AA,<br />

% BB,CC, and DD *****<br />

AA = A–B*K;<br />

BB = B*k1;<br />

CC = C;<br />

DD = D;<br />

t = 0:0.01:8;<br />

[y,x,t] = step (AA,BB,CC,DD,1,t);<br />

plot(t,x)<br />

grid<br />

title('Curvas de respuesta x1, x2, x3, respecto de t')<br />

xlabel('t Seg')<br />

ylabel('x1,x2,x3')<br />

text(2.6,1.35,'x1')<br />

text(1.2,1.5,'x2')<br />

text(0.6,3.5,'x3')<br />

<strong>www</strong>.<strong>FreeLibros</strong>.<strong>org</strong><br />

Figura 10-40. Curvas de respuesta x 1 respecto de t, x 2 respecto de t y x 3 respecto de t.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!