I should probably be more precise: When talking about parameters I mean the parameters that are shown in the GUI when double clicking a Simulink block.
Building Simulink Modell from Matlab Code
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Lennart
am 8 Jul. 2015
Kommentiert: Azzi Abdelmalek
am 8 Jul. 2015
Hi there,
I am currently trying to build Simulink models from Matlab code and have some problems with.
My main problem is to figure out the names and/or path' of the blocks and their parameters. To find the block names I could find a workaround but I have no clue how to figure out the proper names of the parameters of one block. I would very appreciate if someone could tell me a function that returns the parameters or some workaround, so that I can change the parameters with
set_param('path to block','parameter name','parameter value')
Thank you very much!
Regards,
Lennart
3 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 8 Jul. 2015
get_param('path to block','DialogParameters')
6 Kommentare
Azzi Abdelmalek
am 8 Jul. 2015
If you have a liste of blocks that a user can choose. You can associate to each block a path. Just create another liste of path
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Create Large-Scale Model Components finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!