Simulation in Matlab using the single command
Consider a system with a transfer function:
G(s) num(s) = 6.3s^2 + 18s + 12.8
den(s) = s^4 + 6s^3 + 11.3s^2 + 18s + 12.8
1) Open the Matlab command window by double-clicking the Matlab
icon on the desktop. To enter the above system transfer function, type
the following in the command window:
>> num=[0 0 6.3 18 12.8];
>> den=[1 6 11.3 18 12.8];
2) To get the system output for a unit step input, enter:
>> step(num,den);
The unit step response will be