Simulink Model Uppercase Naming
mdl_upper is a utility to convert the name of blocks and other Simulink components into purely uppercase.
MDL_UPPER(OBJECT) capitalizes the name of Simulink OBJECT and its children.
MDL_UPPER(OBJECTS) capitalizes the name of Simulink OBJECTS defined in a cell array. The function will not include any children of the objects defined. This enables the user to fully specify the objects they wish to manipulate.
Examples:
mdl_upper(bdroot)
capitalizes all object names in the current model
myblocks = find_system(bdroot,'BlockType','Scope');
mdl_strrep(myblocks)
capitalizes the name of all Scopes in the model
Cite As
Will Campbell (2024). Simulink Model Uppercase Naming (https://www.mathworks.com/matlabcentral/fileexchange/26426-simulink-model-uppercase-naming), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.