I want to plot the step response of a transfer function. The equation is 1/as^2 + bs + c (sorry, I don't know how to write fractions here). I was given two sets of values, and corresponding equations for the transfer function parameters:
a1 = [-2, -1 + 2i] (i is the imaginary unit)
a2 = [-3, -1 - 2i]
a = 1
b = (a1 + a2)
c = (a1 * a2)
The first set of values (-2, -3) works perfectly both in Matlab and Simulink. The problem starts when I want to type in the imaginary numbers in the Simulink's denominator like so :
In Matlab I can do this with:
a1 = -1 + 2i;
a2 = -1 - 2i;
a = 1;
b = (a1 + a2);
c = (a1 * a2);
num = 1;
den = [a b c];
s = tf(num, den);
step(s);
Yet in Simulink, it always gives me that error. I know there is the 'simout' and 'simin' methods, but I was wondering if it can be done manually?