Sei sulla pagina 1di 5

Parte 2.

Representación en variables de estado

Resolución del problema 1

>> num = [1 0 0.4]


num =
1.0000 0 0.4000

>> dem = [10000 0.0001 0.01004 0.000004]


dem =
1.0e+04 *
1.0000 0.0000 0.0000 0.0000

>> printsys (num,dem,'s')

num/den =

s^2 + 0.4
------------------------------------------
10000 s^3 + 0.0001 s^2 + 0.01004 s + 4e-06

>> [a, b, c, d] = tf2ss (num,dem)

a=
-0.0000 -0.0000 -0.0000
1.0000 0 0
0 1.0000 0

b=
1
0
0

c=
1.0e-04 *

1.0000 0 0.4000

d=
0
Resolución del problema 2
>> num = [4]

num =
4

>> dem = [1 6 9 0 4]

dem =
1 6 9 0 4

>> printsys (num, dem,'s')

num/den =
4
-----------------------
s^4 + 6 s^3 + 9 s^2 + 4

>> [z,p,k]= ss2zp (a,b,c,d)

z=
0.0000 + 0.6325i
0.0000 - 0.6325i

p=
0.0002 + 0.0010i
0.0002 - 0.0010i
-0.0004 + 0.0000i

k=
1.0000e-04

>> [a,b,c,d] = tf2ss (num,dem)


a=
-6 -9 0 -4
1 0 0 0
0 1 0 0
0 0 1 0

b=
1
0
0
0
c=
0 0 0 4
d=
0
Parte 3. Reducción de diagrama de bloques

Resolución del problema 1

disp('Reducción de diagramas de bloque: Asignación


1')
G1N= 1;
G1D=[1 4 1];
H1N= 1;
H1D= [1 0];
G2N= [1 3];
G2D=[1 3 12];
H2N=1;
H2D= [1 0];
[NRETRO1,DRETRO1]=
feedback(G2N,G2D,H2N,H2D,-1);
[NSERIE1,DSERIE1]=
series(G1N,G1D,NRETRO1,DRETRO1);
[CS1,R1]= feedback(H1N,H1D,NSERIE1,DSERIE1,-1);
[NSERIE2,DSERIE2]= series(H1N,H1D,G1N,G1D);
[CS2,R2]=
feedback(NRETRO1,DRETRO1,NSERIE2,DSERIE2,-1);
printsys (CS1,R1)
printsys (CS2,R2)
Resolución del problema 2
disp('Reducción de diagramas de bloque: Asignación 1')
G1N= 1;
G1D=[1 4 1];
H1N= 1;
H1D= [1 0];
G2N= [1 3];
G2D=[1 3 12];
H2N=1;
H2D= [1 0];
[NRETRO1,DRETRO1]= feedback(G2N,G2D,H2N,H2D,-1);
[NSERIE1,DSERIE1]= series(G1N,G1D,NRETRO1,DRETRO1);
[CS1,R1]= feedback(H1N,H1D,NSERIE1,DSERIE1,-1);
[NSERIE2,DSERIE2]= series(H1N,H1D,G1N,G1D);
[CS2,R2]= feedback(NRETRO1,DRETRO1,NSERIE2,DSERIE2,-1);
printsys (CS1,R1)
printsys (CS2,R2)

disp('Reducción de diagramas de bloque: Asignación 2')


GN1= 5.5;
GD1= 1;
G2N= 100;
G3D= [1 1 0];
G3N= 4;
G2D= [1 50];
HN1= [1 0];
HD1= [0 1];
[NSERIE1,DSERIE1]= series(G2N,G2D,G3N,G3D);
[NRETRO1,DRETRO1]= feedback(NSERIE1,DSERIE1,HN1,HD1,-1);
[NSERIE2,DSERIE2]= series(GN1,GD1,NRETRO1,DRETRO1);
[CS,R1]= cloop(NSERIE2,DSERIE2,-1);
printsys (CS,R1)
HN1= [0 1];
a=0;
HD1= [1 a];
[NRETRO1,DRETRO1]= feedback(NSERIE1,DSERIE1,HN1,HD1,-1);
[NSERIE2,DSERIE2]= series(GN1,GD1,NRETRO1,DRETRO1);
[CS,R1]= cloop(NSERIE2,DSERIE2,-1);
printsys (CS,R1)
a=0.5;
HD1= [1 a];
[NRETRO1,DRETRO1]= feedback(NSERIE1,DSERIE1,HN1,HD1,-1);
[NSERIE2,DSERIE2]= series(GN1,GD1,NRETRO1,DRETRO1);
[CS,R1]= cloop(NSERIE2,DSERIE2,-1);
printsys (CS,R1)
a=5;
HD1= [1 a];
[NRETRO1,DRETRO1]= feedback(NSERIE1,DSERIE1,HN1,HD1,-1);
[NSERIE2,DSERIE2]= series(GN1,GD1,NRETRO1,DRETRO1);
[CS,R1]= cloop(NSERIE2,DSERIE2,-1);
printsys (CS,R1)
a=50;
HD1= [1 a];
[NRETRO1,DRETRO1]= feedback(NSERIE1,DSERIE1,HN1,HD1,-1);
[NSERIE2,DSERIE2]= series(GN1,GD1,NRETRO1,DRETRO1);
[CS,R1]= cloop(NSERIE2,DSERIE2,-1);
printsys (CS,R1)
a=500;
HD1= [1 a];
[NRETRO1,DRETRO1]= feedback(NSERIE1,DSERIE1,HN1,HD1,-1);
[NSERIE2,DSERIE2]= series(GN1,GD1,NRETRO1,DRETRO1);
[CS,R1]= cloop(NSERIE2,DSERIE2,-1);
printsys (CS,R1)

Resolución del problema 3


disp('Reducción de diagramas de bloque: Asignación 3')
G1N= [0 1];
G1D= [0.8 0];
H1N= [0 1];
H1D= [1 0];
G2N= [0 0 10];
G2D= [1 0 0];
[NRETRO1,DRETRO1]= feedback(G1N,G1D,H1N,H1D,-1);
[NSERIE1,DSERIE1]= series(G1N,G1D,H1N,H1D);
[NSERIE2,DSERIE2]= series(NRETRO1,DRETRO1,2,1);
[NRETRO2,DRETRO2]= feedback(NSERIE1,DSERIE1,2,1,-1);
[NPAR1,DPAR1]= parallel(NSERIE2,DSERIE2,NRETRO2,DRETRO2);
[NSERIE3,DSERIE3]= series(NPAR1,DPAR1,G2N,G2D);
[NRETRO3,DRETRO3]= cloop(NSERIE3,DSERIE3,-1);
[CS,RS]= feedback(NRETRO3,DRETRO3,10,1,-1);
printsys(CS,RS)

Potrebbero piacerti anche