How to Set an Image as A Bacground on Matlab GUI

In this moment I want to share how to add an image to create a background in Matlab GUI developing. As we know that adding an image or logo can be used to protect your ownership codes. In the same way it also can be fixed by using your name on it.
Okay, Let's start. In this case I have a Matlab GUI saved as  home.m. Here is the interface:

The purpose is we will use an image as the GUI. Picture below will be used on it and saved as hoom.jpg.

First thing that you have to do is saving the home.m  and hoom.jpg into a same folder. The next step, open the home.m and search for  home_OpeningFcn and find out codes below :
And add some codes below to complete the script as shown on this picture:

Just save and run. If it work well, your new GUI should be more artistic like this :

Ok guys, that's enough don't forget to share :)

Post a Comment

* Please Don't Spam Here. All the Comments are Reviewed by Admin.
  1. ini maksudnya apa gan "There is no handlevisibiliting property on the Axes class"?

Post a Comment

Disclaimer : Content provided on this page is for general informational purposes only. We make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information.

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top