Does anyone know how to fix this?
1 次查看(过去 30 天)
显示 更早的评论
Dear coders,
I have this issue marked on the figure, it seems as if I was introducing a differnt value but it is not,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/645790/image.png)
The vector which I introduce to the model is the following domestic=[1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/645795/image.png)
It happens after simulating the model in Simulink.
I hope you can head me through the solution of this matter.
0 个评论
回答(1 个)
Yoshi Minagawa
2021-6-15
Hi Tony,
It seems that different data from expectedis appeared during "first step" in simulation. (Models that do not require convergence calculations, step size become simlation-time / 50. I guess in your case step size maight be 0.5s,)
Please check whether there is the block which have state(like unit delay block) in your model. If there is, the initial value setting of that block might not be correct.
I hope this will help.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!