open several Simulink models and interakt with the opend model
2 views (last 30 days)
Show older comments
Hi, i can select with radiobuttons several Simulink models.
function Bone_SelectionChangeFcn(hObject,eventdata, handles)
if hObject == handles.Skull
load_system('Skull')
open_system('Skull')
else if hObject == handles.Femur
load_system('Femur')
open_system('Femur')
end
end
after this i wanna replace with slider values of constant in the opend model. But i dont know how can i interact only with the opend model. Cau u guys help me pls?
THX
0 Comments
Accepted Answer
Andreas Goser
on 29 Jul 2013
Edited: Andreas Goser
on 29 Jul 2013
I suppose you will be close to your solution once having a look at the commands
bdroot
gcs
gcb
0 Comments
More Answers (1)
sia
on 29 Jul 2013
5 Comments
Andreas Goser
on 31 Jul 2013
This is indeed possible, but without background information of your application, I can't say whether it makes sense or not. I can just say that most user don't do this at all, but develop one larger model. In case you want to modify parts of this larger model easy, please have a look at variants.
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!