image thumbnail

Cropping Images on Simulink Blocks

version (13.1 KB) by Stacey Gage
Example of displaying and reducing an image on a Simulink block.


Updated 01 Sep 2016

View License

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 (2022). Cropping Images on Simulink Blocks (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!