Challenge HW
Challenge HW
%Challenge HW
clc; clear all; close all;
syms s K p k n i
%simply the sum of all the departure angles is the unit circle, offset by
%pi, 180%
%as n iterates higher
%use equation 4 and rule 7 from RLP lecture
% poles expressed as p*e^i*phi, and rlp equation is 1*e^(pi+2*pi*l)
% therefor sum of angles is SUM(phi_i)=pi+2*pi*(n-1)
%Given eqn
Cn=[1 0 0 ];
Cd= [1 10 56 170 272 160]
ExF=tf(Cn,Cd,10)
%find n-topple
n=length(Cd)-length(Cn)
%defined departure angles
p=phiF(n)
% sum of departure angles is pi+2*n*pi
sumP=sum(p)/pi
[r v]=rlocus(ExF)
rlocusplot(ExF)
n==sumP
%%
function phi=phiF(n)
k=n-1
i=[0:1:k]
phi=(2*i+1)*pi/n
end
Cd = 1×6
1 10 56 170 272 160
ExF =
Kevin Collins
z^2
-------------------------------
ans = logical
1