- Open your Simulink model.
- Run a simulation of the model.
- Open the Simulation Data Inspector by typing Simulink.sdi.view in the MATLAB command window.
- In the Simulation Data Inspector window, click on the "Signals & Parameters" tab.
- Under the "Signals" section, you will find the list of observable signals. The number of observable signals is displayed at the bottom of this section.
- Under the "Parameters" section, you will find the list of tunable parameters. The number of tunable parameters is displayed at the bottom of this section.
How can I get the number of tunable parameters and number of observable signals in a Simulink model?
2 ビュー (過去 30 日間)
古いコメントを表示
How can I get the number of tunable parameters and number of observable signals in a Simulink model? This used to be accomplished by:
tg = slrt;
tg.NumParameters
tg.NumSignals
But this has changed in the latest version of Matlab. There isn't any documentation on what these might have changed to.
0 件のコメント
回答 (1 件)
Pratyush
2023 年 10 月 25 日
Hi Jeffrey,
I understand that you want to get the tunable parameters and the observable signals in a Simulink model.
You can use Simulink Real-Time Explorer for it. You can refer to the following link for more details on Simulink Real-Time Explorer: https://in.mathworks.com/help/slrealtime/ref/simulinkrealtimeexplorer-app.html
Here's how you can do it:
Hope this helps.
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!