Why do the Control System Designer and "step" function give different outputs for a step response?
Show older comments
I am creating a transfer function model using the "tf" function in the Control Systems Toolbox in MATLAB R2022b. If I obtain a step response for the transfer function using 1) the "step" function and 2) the Control System Designer App, the two step responses do not match.
My workflow looks like this:
%Define numerator and denominator coefficients of the transfer function
numerator = [0 1.05 1.68 0.1575 0];
denominator = [1 1.96 1.1004 0.1372 0.0985];
transfer_fn = tf(numerator,denominator);
step(transfer_fn) %This gives the step response plot
controlSystemDesigner(transfer_fn) %One of the resulting plots is a step response, which is different from the "step" function output
The "step" function and the Control System Designer outputs look like this respectively:


Is this a bug in either the "step" function or Control System Designer? Is there a workaround for this issue?
Accepted Answer
More Answers (0)
Categories
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

