PPControlDesign2ndOrder - C c1 = ClosedLoopPoly(2); c2 =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function Out = PPControlDesign2ndOrder(In) f a1 = In(1); a2 = In(2); b0 = In(3); b1 = In(4); b %A = conv([1 -0.98],[1 -0.5]); a1 = A(2); a2 = A(3); b0 = 0.4; b1 = 0.4; % T = 0.01; SPoles = [-2 -10 -200 -300]; ZPoles = exp(SPoles*T); ClosedLoopPoly = poly(ZPoles);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C c1 = ClosedLoopPoly(2); c2 = ClosedLoopPoly(3); c3 = ClosedLoopPoly(4); c4 = ClosedLoopPoly(5); c M = [1 b0 0 0; a1-1 b1 b0 0; a2-a1 0 b1 b0;-a2 0 0 b1]; N = [c1-(a1-1); c2-(a2-a1); c3-(-a2); c4 ]; RS = M\N; Out = RS;...
View Full Document

Ask a homework question - tutors are online