Wrong "step" function answer

5 views (last 30 days)
Simon Duque T.
Simon Duque T. on 14 Dec 2014
Answered: Simon Duque T. on 19 Dec 2014
Hello everybody
I'm using Matlab to study basic control theory and I'm simulating the time-response of different order systems. For this I was told to use the "step" function to see the time-response of the system to a Heaviside input but the plot I get using it doesn't match the theorical graph. Here is the simple code used:
H=tf([0 1],[1 2 3]);
figure(2)
step(H)
The answer presented by Matlab is:
I tried re-installiing Matlab, but the problem is still there. I appreciate the help you could bring me Greeting SimD
  2 Comments
Rick Rosson
Rick Rosson on 14 Dec 2014
Please type:
which step -all
and post the results.
Simon Duque T.
Simon Duque T. on 14 Dec 2014
Mr. Rick Rosson Here is the result you asked me to do, Im sorry I didnt see your comment sooner. Thanks for your answer
>> which step -all
C:\Program Files\MATLAB\R2013b\toolbox\control\ctrlobsolete\step.m
C:\Program Files\MATLAB\R2013b\toolbox\shared\controllib\engine\@DynamicSystem\step.m % DynamicSystem method
C:\Program Files\MATLAB\R2013b\toolbox\ident\ident\@iddata\step.m % iddata method
C:\Program Files\MATLAB\R2013b\toolbox\matlab\system\@system\step.m % system method

Sign in to comment.

Accepted Answer

Simon Duque T.
Simon Duque T. on 19 Dec 2014
Hello to the community I wasn't able to solve the problem of the wrong step answer that Matlab gave me. The only solution was to uninstall de program and delete every trace of the program in the computer, such as registry and preferences, and re-intall it. It took a while but it's finally working, thanks for the ones who tried to solve the problem. Greetings Simon

More Answers (2)

Youssef  Khmou
Youssef Khmou on 14 Dec 2014
According to the system you described, here the result i obtained :
  1 Comment
Simon Duque T.
Simon Duque T. on 14 Dec 2014
Exactly, that is the correct answer we all should get with matlab, but the problem is that my matlab gets the answer presented above. This could be the result of a wrong-functioning distribution of Matlab by the university, or maybe I messed uo the setting of some toolbox... I dont know Thanks for your answer

Sign in to comment.


Simon Duque T.
Simon Duque T. on 14 Dec 2014
Mr. Rick Rosson Here is the result you asked me to do, Im sorry I didnt see your comment sooner. Thanks for your answer
>> which step -all
C:\Program Files\MATLAB\R2013b\toolbox\control\ctrlobsolete\step.m
C:\Program Files\MATLAB\R2013b\toolbox\shared\controllib\engine\@DynamicSystem\step.m % DynamicSystem method
C:\Program Files\MATLAB\R2013b\toolbox\ident\ident\@iddata\step.m % iddata method
C:\Program Files\MATLAB\R2013b\toolbox\matlab\system\@system\step.m % system method

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!