Work from Matlab 2011b, developed on Matlab 2014b.
This class offers several methods that will facilitate your life while dynamically coding a Simulink subsystem. Each instance of the class is linked to a particular subsystem.
It redefine several native function in a more user-friendly way, but also add more complex functionalities.
It will allow you to:
- Add, delete lines in a secure way, remove all connection to a single block
- Get list of ports names and handle for a specific block
- Get list of connected lines to a specific block, only the part of the line connected is returned, so you can delete it without harming the others connections if the line is shared
- Get block handle in a safe way
- Add, delete block and its connections in a safe way
- Delete sources of a specific block, single or recursively (sources to sources)
- Position two blocks port to port
- Set size of the subsystem based on its in/out ports
- User friendly function to set port dimensions and constants values
Don't hesitate to ask me for evolution or bug fixes !
引用
Zangdaarr (2024). Simulink functions to make dynamic programmation easier (https://www.mathworks.com/matlabcentral/fileexchange/59262-simulink-functions-to-make-dynamic-programmation-easier), MATLAB Central File Exchange. 取得済み .
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxカテゴリ
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!