필터 지우기
필터 지우기

Transfer function in Simulink different from Matlab

조회 수: 2 (최근 30일)
Daniel P
Daniel P 2012년 11월 20일
Hey everybody,
I am plotting the step response of a transfer function with matlab and the result is fine.
Gs = (1/s^2) * (1 - 2*exp(-s*0.5) + exp(-s))
Now I am trying to build this function in Simulink with standard blocks, but the step response is different from matlab:
and
I have tried many different solver settings but the result is always the same. I anyone has Ideas what might be the problem, please let me know.
Thanks in advance,
Daniel.
  댓글 수: 4
Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 21일
What version of matlab are you using? this did'nt work for me
Daniel P
Daniel P 2012년 11월 21일
Version R2012a

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

채택된 답변

Pedro Villena
Pedro Villena 2012년 11월 21일
편집: Pedro Villena 2012년 11월 21일
Gs = (1/s^2) * (1 - 2*exp(-s*0.5) + exp(-s))
Gs = 1/s^2 - (2/s^2)*exp(-s*0.5) + (1/s^2)*exp(-s)
  댓글 수: 2
Daniel P
Daniel P 2012년 11월 21일
I will try that later. Thanks for your effort.
Daniel P
Daniel P 2012년 11월 21일
That looks good. It seem to work for the moment. Thank you very much.

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

추가 답변 (1개)

Ryan G
Ryan G 2012년 11월 20일
The easiest way to achieve the desired results would be with the LTI System block which comes with the Control System Toolbox. This allows you to create a system in MATALB and directly utilize it in Simulink.
However, your model as shown works. You need to adjust the relative tolerance in the configuration parameters to be tighter. Try 1e-6 or 1e-8 and check the results.
  댓글 수: 2
Daniel P
Daniel P 2012년 11월 20일
Hello Ryan.
Are you talking about the relative tolerances of the Integrators? I have tried to reduce them to 1e-10 but still the same (bad) result.
Any other suggestions?
Thanks for your help!
Daniel P
Daniel P 2012년 11월 20일
Using the LTI System block causes the same problem :-/

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

카테고리

Help CenterFile Exchange에서 Get Started with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by