Problem with derivative block simulink

9 views (last 30 days)
Hamid Ghaedi
Hamid Ghaedi on 17 Nov 2017
Commented: Purvaja on 10 Mar 2025
I want to simulate these two equations in simulink to get the results. It's about adaptive control.
The outputs are dy1 and ddy2 How to simulate without using derivative block that makes the simulation infinite numbers? e.g integrator instead.
The inputs are y1ref and y2ref and y1 and y2ref and the equations are separate.
All The k11 k21 and k22 are constant numbers.
Any help is appreciated.
  4 Comments
Sam Chak
Sam Chak on 7 Mar 2025
What is the issue of running these two so-called adaptive control equations in Simulink? I'm unfamiliar, but the OP mentioned that the measurable outputs are dy1 and ddy2, which I presume to be and , respectively. The state in the 1st equation can be obtained by integrating . Both and in the 2nd equation can be obtained by peforming and , respectively.
If both reference signals and are constants, then . If both and can be described by at least 2-times differentiable continuous-time mathematical models, then , , and can be manually computed beforehand. The real issue is when and are time series data.
However, do take note that the dynamics will be unstable if .
Purvaja
Purvaja on 7 Mar 2025
Hello @Sam Chak
I am just a beginner in Simulink. I had some hands on on integrator block. This question intrigued me because here equations need to use 2 integrators in same equation, and I was not sure how to simulate it in Simulink, can you please explain me with respect to blocks in Simulink or best how to handle such equations with derivatives of 2 different variables used in same equation using integrator block?

Sign in to comment.

Answers (1)

Sam Chak
Sam Chak on 7 Mar 2025
Based on the information provided by the OP, I will likely construct the model as illustrated. However, if the reference is time series data, I believe that @Mathieu NOE's suggestion to use a high-pass filter to approximate the derivative signals is better.

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!