File Exchange

image thumbnail

Cropping Images on Simulink Blocks

version (13.1 KB) by

Example of displaying and reducing an image on a Simulink block.



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

Comments and Ratings (2)

Alex D

Exactly, what I was looking for!


Updated license


updated jpg used in Simulink model

MATLAB Release
MATLAB 5.3 (R11)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today