You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Image file can be used as an icon on a Simulink block. In this example, the image is reduced to a size such that the I/O names can still be seen.
To see how this is done:
-Open the model
-Edit block mask
-Go to icon drawing commands
"image(imread('magic.jpg'),[.2, .2, .6, .6],'on')"
with normalized drawing coordinates
makes this possible
Cite As
Stacey Gage (2026). Cropping Images on Simulink Blocks (https://www.mathworks.com/matlabcentral/fileexchange/3484-cropping-images-on-simulink-blocks), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.1 (13.1 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
