Transfer function in Simulink different from Matlab
Mostrar comentarios más antiguos
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 comentarios
Azzi Abdelmalek
el 20 de Nov. de 2012
how did you get the first graph ( in matlab command)?
Daniel P
el 21 de Nov. de 2012
Azzi Abdelmalek
el 21 de Nov. de 2012
What version of matlab are you using? this did'nt work for me
Daniel P
el 21 de Nov. de 2012
Respuesta aceptada
Más respuestas (1)
Ryan G
el 20 de Nov. de 2012
0 votos
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.
Categorías
Más información sobre Tuning Goals en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
