Wrong "step" function answer

조회 수: 5 (최근 30일)
Simon Duque T.
Simon Duque T. 2014년 12월 14일
답변: Simon Duque T. 2014년 12월 19일
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
Rick Rosson
Rick Rosson 2014년 12월 14일
Please type:
which step -all
and post the results.
Simon Duque T.
Simon Duque T. 2014년 12월 14일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Simon Duque T.
Simon Duque T. 2014년 12월 19일
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

추가 답변 (2개)

Youssef  Khmou
Youssef Khmou 2014년 12월 14일
According to the system you described, here the result i obtained :
  댓글 수: 1
Simon Duque T.
Simon Duque T. 2014년 12월 14일
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

댓글을 달려면 로그인하십시오.


Simon Duque T.
Simon Duque T. 2014년 12월 14일
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

카테고리

Help CenterFile Exchange에서 Transfer Function Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by