When using Protecting Referenced Models on Simulink models can you have random parameters?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Ryan G
il 29 Giu 2012
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 Commenti
Ryan G
il 29 Giu 2012
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.
Vedere anche
Categorie
Scopri di più su Uncertain Models in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!