how to konw the meaning of xout of simulink
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to trim a 6DOF aircraft model using Trim, and I got this error
"In the command [X,U,Y,DX]=TRIM('SYS',X0,U0,Y0,IX,IU,IY,DX0,IDX) the length of DX0 should be equal to the number of continuous states in the Simulink model."
The output of the model is set to 1×12, and the DX0 is also set to 1×12. But after getting this error, I use sldiagnostics to check the number of continuous states, and with 12 Integrators (4 integrators used actually, but I guess it is the number of the integrated variables), I unexpectedly get 28 continuous states. The xout of the model is also n×28 (n for total steps).
So, I am trying to know the exact meaning of every row of xout, which variable it is. But I don't know how.
And I want to reduce the number of continuous states in my model. But I don't kow how Simulink make the defination of continuous state, or which block would make continuous states, except the variables after the Integrators.
0 件のコメント
回答 (1 件)
Suman
2024 年 7 月 31 日
編集済み: Suman
2024 年 7 月 31 日
the xout property refers to the block states at each time point. You can refer to this https://www.mathworks.com/help/simulink/gui/states.html documentation to learn more about it.
You can refer to this MATLAB Answers thread to learn about continuous and discrete states: https://www.mathworks.com/matlabcentral/answers/36663-what-are-continuous-and-discrete-states-in-simulink
You can see the continuous blocks in yoor model by going to the DEBUG > Information Overlays from Simulink toolstrip and enabling the Colors option from Sample Time section.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Event Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!