Transfer function in Simulink different from Matlab
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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)
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
その他の回答 (1 件)
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.
参考
カテゴリ
Help Center および File Exchange で Get Started with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!