Image on mask in Simulink

6 ビュー (過去 30 日間)
Amir
Amir 2011 年 8 月 1 日
Hi everyone
I'm trying to add an image as part of a mask in Simulink. I can add the image, no problem.
However, the image blocks out my port labels. Is there anyway I can display the image and show the port labels? Is maybe there a way one can shrink the image on the mask?
Any ideas?
Amir

採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 8 月 1 日
Setting the "Icon Transparency" to "Transparent" should show the port labels underneath. Alternately, you could use the port_label function to draw port labels to overlay them over the image.
  2 件のコメント
Amir
Amir 2011 年 8 月 2 日
Thank you for the quick response Kaustubha. The "transparent" trick worked.
A further question, is it possible to crop the image on the mask, so that it only display in the centre?
I've tried the method mentioned in this example (http://www.mathworks.com/matlabcentral/fileexchange/3484-cropping-images-on-simulink-blocks) to no avail.
Thanking you in kindness
Amir
Kaustubha Govind
Kaustubha Govind 2011 年 8 月 2 日
Could you try the instructions here: http://www.mathworks.com/support/solutions/en/data/1-6HMVWN/index.html

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Block Masks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by