gistlib
main.mnumerator = [100 0 -100]; denominator = conv(conv([1 0], [1 -1]), [1 3 2]); poles = roots(denominator); zeros = roots(numerator); disp('Poles:'); disp(poles); disp('Zeros:'); disp(zeros); 191 chars12 lines
numerator = [100 0 -100]; denominator = conv(conv([1 0], [1 -1]), [1 3 2]); poles = roots(denominator); zeros = roots(numerator); disp('Poles:'); disp(poles); disp('Zeros:'); disp(zeros);
gistlibby LogSnag