Cropping Images on Simulink Blocks
by Stacey Gage
23 May 2003
(Updated 20 Dec 2011)
Example of displaying and reducing an image on a Simulink block.
|
Watch this File
|
| File Information |
| Description |
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 |
| Required Products |
Simulink
|
| MATLAB release |
MATLAB 5.3 (R11)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 11 Aug 2005 |
Alex D
|
|
|
| Updates |
| 20 Dec 2011 |
updated jpg used in Simulink model |
|
Contact us at files@mathworks.com