Different results in MATLAB and Simulink
2 views (last 30 days)
Show older comments
Hi guys,
I have the same system in both MATLAB and Simulink, and each system has a different step response. One is stable and the other is not. How can I solve this problem? I have attached the systems and responses.
Thanks.
0 Comments
Accepted Answer
Stephan
on 11 Jul 2018
Edited: Stephan
on 11 Jul 2018
Hi,
your two systems differ in the second number in the numerator of your transfer function by about a factor of 10:
here you have:
.
0.0001
.
and in the second System you got:
.
which is rounded: 0.001
.
So the numbers are different by factor:
>> 0.0009955 / 0.0001
ans =
9.955
I think if you fix this you will get the same results.
Best regards
Stephan
5 Comments
Stephan
on 11 Jul 2018
To be honest, I do not know that, so I recommend you ask this in a new question.Since the answer to the current question has already been accepted, I suspect that you will find relatively little response to this new question. But there are several very informed people in the forum who can help you, if you turn theit attention to a new unanswered question.
Best regards
Stephan
More Answers (0)
See Also
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!