All pastes #2046544 Raw Edit

Miscellany

public text v1 · immutable
#2046544 ·published 2011-04-14 21:05 UTC
rendered paste body
%ECE 416
%Homework #10
%Kirk Guotana
%A37602559

%Problem 1.1
T=0.05;
a=tf([1],[1 2 0]);
b=c2d(a,T,'zoh');
 
%Problem 1.2
c=tf([1 2],[1 5 4]);
d=c2d(c,T,'zoh');

%Problem 2
T2=0.2;
g=tf([2],[1 1 0]);
gt=c2d(g,T2,'zoh');
dt=tf([2*(T2+1) -2],[1 -1],T2);

h=feedback(gt*dt,1);
abs(pole(h));

%Problem 3
T3=0.05
a3=[1 (1/50)*(1-exp(-50*T3));0 exp(-50*T3)]
b3=[20*(T3+(1/50)*exp(-50*T3))-(20/50);-20*exp(-50*T3)+20]
c3=[1 0]
d3=[0]

ss(a3,b3,c3,d3)