Click here to load reader
Upload
elvism94
View
217
Download
2
Embed Size (px)
DESCRIPTION
Small sample of a matlab script starter for electrical engineering applications, featuring some common commands and structures
Citation preview
1) Consider the system with an open loop which has a transfer function as !! !!! 1) Input the transfer function in MATLAB
Num = [1];
Den = conv ([1 0]; [1 1]);
G= tf (Num, Den)
2) Perform the transfer function using partial fraction and then convert back to polynomial coefficients. Num = [1]; Den = conv ([1 0]; [1 1]); [r, p, k]= residue (Num, Den) [Num, Den]= residue (r, p, k)
3) Compute the Step response of the given transfer function Num = [1]; Den = conv ([1 0]; [1 1]); G= tf (Num, Den) step (G)
2) Compute closed loop transfer function and step response for the unitary feedback loop in the figure below
G1(S) = !!!! G2(S) =1 First define G1 and G2 using matlab then
Gc = feedback (G1, G2)
step (Gc)
Y(s)