When using Protecting Referenced Models on Simulink models can you have random parameters?
1 回表示 (過去 30 日間)
古いコメントを表示
I basically need to have a State Space block that will have random numbers when run. And, it also needs to be protected.
If I use the rand(1) function in one of the state space parameters, Simulink will work the way I expect it to. But, once I protect the model, it will no longer be random.
I also tried using the Robust Control Toolbox with the uncertain state space to create random parameters. But, once I protect the model, the parameters are no longer random.
Is there any way to protect a Simulink model and have random parameters?
Thanks for the help.
0 件のコメント
回答 (1 件)
Ryan G
2012 年 6 月 29 日
Use a mask to set the parameters in the state space. This way you change the parameters for the state space on the mask instead of directly in the state space. This should do the trick.
2 件のコメント
Ryan G
2012 年 6 月 29 日
You can re-create a state space via s-function. I personally think that just makes the process a bit more tedious and difficult than it needs to be.
If you found a suitable workaround and you find masking to confusing then I would stick with that as explaining masks beyond that document would be pretty tough.
参考
カテゴリ
Help Center および File Exchange で Uncertain Models についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!