ColorThePorts
Version 1.0.0.0 (25.3 KB) by
Shashikiran Rajashekar
Colors the input and output ports based on the datatype of port
The function colors the inputs and outputs of the simulink model based on the data type of the port. It helps in identifying the data type of the port visually and after creating the model if we want to set the color of the ports based on the data type it is helpful. It doesnt color the ports of the library linked in the model, it'll search inside the subsytems, masked subsystems but not inside the linked library. From Workspace and To Workspace are excluded.
Cite As
Shashikiran Rajashekar (2026). ColorThePorts (https://www.mathworks.com/matlabcentral/fileexchange/48368-colortheports), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Programmatic Model Editing in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
