Good day everyone. How do I simulate nonlinear system in open loop in matlab? I have this nonlinear system and I want to observe the response before applying controller. How do I do that? Please help with the code. Thanks.

 채택된 답변

Jon
Jon 2019년 8월 14일

0 개 추천

Basically you need to define the set of ODE's (ordinary differential equations) that define your system and then solve them. MATLAB has many routines for solving ODE's, Please see the documentation at https://www.mathworks.com/help/matlab/ordinary-differential-equations.html?s_tid=CRUX_lftnav
After you have attempted to code up a solution, if you are still having problems, please attach your code and explain the specific problems you are encountering.

댓글 수: 2

ojonugwa adukwu
ojonugwa adukwu 2019년 8월 14일
Oh Great! Let me try that now. I will get back when I have made headway.
Many thanks
Jon
Jon 2019년 8월 14일
편집: Jon 2019년 8월 14일
It is little bit tricky to apply your input vector to the system of equations. One approach is explained in https://www.mathworks.com/help/matlab/ref/ode45.html in the example ODE with Time-Dependent Terms
I assume you do not have Simulink. In Simulink you can do everything with block diagrams and it is very straight forward to drive your blocks with a known input vector.

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

추가 답변 (1개)

ojonugwa adukwu
ojonugwa adukwu 2019년 8월 15일

0 개 추천

Good day. Sorry this is coming late. I have been able to use ode45 to simulate the open loop response of my system.
Many thanks for your expalnation. It was helpful.

댓글 수: 4

Jon
Jon 2019년 8월 15일
I'm glad to hear it worked.
As you may not be too familiar with the format of this MATLAB Answers site I would like to just make a suggestion, that your response here would be better placed as a comment to the original answer, rather than as a new answer.
Also if the original answer, solved your problem, then when you have a chance, please accept the original answer.
ojonugwa adukwu
ojonugwa adukwu 2019년 8월 15일
Ok. Thanks.
Done.
Regards
Jon
Jon 2019년 8월 15일
Thank you, good luck with your project
ojonugwa adukwu
ojonugwa adukwu 2019년 8월 15일
Amen. Many thanks

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

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

2019년 8월 14일

댓글:

2019년 8월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by