5.0

5.0 | 1 rating Rate this file 22 Downloads (last 30 days) File Size: 13.06 KB File ID: #3484
image thumbnail

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

Exactly, what I was looking for!

Please login to add a comment or rating.
Updates
20 Dec 2011

updated jpg used in Simulink model

Tag Activity for this File
Tag Applied By Date/Time
simulink Stacey Gage 22 Oct 2008 07:01:47
icon Stacey Gage 22 Oct 2008 07:01:47
mask Stacey Gage 22 Oct 2008 07:01:47
image Stacey Gage 22 Oct 2008 07:01:47
graphic Stacey Gage 22 Oct 2008 07:01:47
bitmap Stacey Gage 22 Oct 2008 07:01:47
mask Daniel Verret 30 Jul 2009 13:14:20
mask Greg 09 Jul 2010 07:12:58

Contact us at files@mathworks.com