Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I show a jpg (bmp,...) in simulink model?

3,744 views
Skip to first unread message

Giuseppe Leonardo Cascella

unread,
Apr 10, 2002, 11:16:37 AM4/10/02
to
Please help me... :o)
I need to insert images in a simulink model. This images are only a
comment. For example when I make a block to implement a motor model, it
is necessary to explain what kind of equations are bilt-in. I would like
to insert it like an image, in this way I can use MathType (Word,...) to
obtain greek characters and so on...
I think it's possible with a masked subsystem, but it's not simple to
handle. If you have an idea, please reply me a.s.a.p.
Thanks a lot
bye Leo


--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG

Omur Bas

unread,
Apr 10, 2002, 11:28:04 AM4/10/02
to
You're right, masking is the way to go. Right click on the subsystem, select
"Mask Subsystem", click on the Icon tab, and type in
image(imread('image_file.ext'))
The only catch is that your image should be in RGB format - if not, you will
need to use ind2rgb command to convert it.

HTH,
Omur

"Giuseppe Leonardo Cascella" <leoca...@libero.it> wrote in message
news:908082a62c71b785d73...@mygate.mailgate.org...

Giuseppe Leonardo Cascella

unread,
Apr 11, 2002, 11:02:41 AM4/11/02
to
Thanks a lot... :o), but :o(
this solution presents the following problem :
it's necessary always the image file (i.e. 'image_file.ext').
If you copy (or move) your simulink file ('example.mdl'),
have to attach the image file, otherwise it doesn't work!!!:o(
I would like to import the image in the simulink file to avoid
the creation of many files for each model!

Thanks again... Leo


"Omur Bas" <ob...@mathworks.com> wrote in message
news:a91lm4$mab$1...@news.mathworks.com...

> You're right, masking is the way to go. Right click on the subsystem, select
> "Mask Subsystem", click on the Icon tab, and type in
> image(imread('image_file.ext'))
> The only catch is that your image should be in RGB format - if not, you will
> need to use ind2rgb command to convert it.
>
> HTH,
> Omur

0 new messages