The reason is actually the time line or time series. I send the results to workspace and I saw that the time samples are different that is why the curve might seem not like each other. Adn that is becouse gain of the observer makes simulink operate in different values of time. but the result are the same. I reduced the tolerance to 1e-4 and set the mode to Normal. And it worked like a charm. so the blocks are not wrong and the time is not either.
The states gets changed while observing
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have an control input T that goes straight to a system. In that system I solve a differential equation system with form of x' = Ax + bu; A and B are defined.I try to observe the states again using two first states x1 and x2. They goe straight to a observer . The observer has a gain that I can modify. When I change the gain of observer the real values that are coming from the plant itself changes. I have no idea why.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167546/image.png)
I dont know why the gain affects the real value since the gain is not presented anywhere in the plant itself. When I try the plant with out the observer it works fine. I don't know how they get changed. Anyone that can give me a hint. Ive been working on this in 7 days and it drives me crazy.
It the observer subsystem I have in one block used the states x1 and x2 that I renamed to y1 and y2
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167547/image.png)
That is the only place I used x1 and same thing for x2. Why do they get changed while using observer. OBS that they are real values and not estimated. they are the output of the plant. x_1 however is the observed one.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Large-Scale Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!