Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Laborator 6 SCPI
- num = [1.11 , 1];
- den = [1.9, 0.9, 1.7];
- s = tf('s')
- Hs = tf(num, den)
- Hs.InputDelay = 1.5;
- T = 0.5;
- Hs_discretized = c2d(Hs, T, 'zoh');
- Hs_shifted = Hs_discretized * tf(1, [1 0 0 0], T);
- [num, den] = tfdata(Hs_shifted, 'v');
- Hs_z_minus3 = tf(num, den, T, 'Variable', 'z^-1');
- Hs_z_minus3
- A = [-1.594, 0.7891]
- B = [0.3103, -0.1953]
- omega = 0.5026;
- theta = 0.75;
- num = omega^2;
- den = [1, 2 * theta * omega, omega^2];
- Hi = tf(num, den);
- Hi
- Hi_discretized = c2d(Hi, T, 'zoh');
- Hi_discretized
- P = [-1.634, 0.686]
- Matrice = [1 0 0 0 0 0 0 ; -1.594 1 0 0 0 0 0 ; 0.7891 -1.594 1 0 0 0 0 ; 0 0.7891 -1.594 1 0 0 0 ; 0 0 0.7891 -1.594 1 0.303 0 ; 0 0 0 0.7891 -1.594 -0.1953 0.303 ; 0 0 0 0 0.7 0 -0.1953]
- P = [1 ; -1.634 ; 0.686 ; 0 ; 0; 0; 0]
- syms s1 s2 s3 s4 r0 r1
- coloana = [1; s1; s2; s3; s4; r0; r1]
- solutii = linsolve(Matrice, P);
- solutii
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement