MATLAB Answers

How to insert a picture in a subsystem mask?

19 views (last 30 days)
Daniele Musella
Daniele Musella on 21 Sep 2018
Answered: Ashish Azad on 19 Jun 2020
I am trying to put an image in a subsystem mask, but this error displays: "Invalid file path passed to image drawing command in block 'subsystem name'. The image file could be not found". The picture file is in the same folder of simulink file and thus I am wondering if it is necessary either to move the image file in another folder or to modify the image dimensions. May anyone help me?

  0 Comments

Sign in to comment.

Answers (1)

Ashish Azad
Ashish Azad on 19 Jun 2020
If it is not working there is workaround for this
1)Inside your subsystem file go to edit system mask
2)Go to the "Icon & Ports" tab and inside the "Icon drawing commands box", write this command
image("C:\Users\ashis\Downloads\imagename.jpg")
You can get the absolute path of image in properties of image
Your image name and file format can be different, so write accordingly to it.
This should work fine

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!