File Exchange

image thumbnail


version (137 KB) by Diego Barragán
Program that tag with image a push button in a GUI


Updated 26 Jun 2008

View License

Program that tag with image a push button in a GUI.

For more information, visit:

Cite As

Diego Barragán (2021). PLACING IMAGE ON A BUTTON (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (19)

Zair Khan

Alfredo guerrero

So cool, thanks!!!!!!!so Useful and brilliant.

Anucha Chaichana


nice try


Good example. Now you are placing image on a button. I tried to place the image that covers the complete button. But when I maximize my GUI the image is not resetting to the size of the button(The image size remains the same but the size of button is increased or reduced). would you please help me on this?


Antonio Fuentes

nithin christo

Thanks a lot! This is so useful :)

Adnan Hasanovic

nice work

Bijit Banik

sooooo, helpful. Thanks a lot...

Gerardo Reaño Ortega

andandgui isler

andandgui isler

when i execute this from guide, images is viewing, but when i want to execute the code below on comman window ;


the images can't be seen. How can i fix this problem. I want to run my gui in some parts of my m-file.

Shabnam Shaikh

this one is the best example......I was very confused but thank God...i got this....thankyou very much sir for uploading such an easy method to place an image on pushbutton...
have a good day!!!

Husam Aldahiyat

Wilson Caba

Great! What I was looking for! A quick example that showed how to add images to icons.
Also helped me find out how to read and change parameters of existing functions.

Prayoch Rujira

I'm looking for this
thank you : )

ricardo zavala

i like it, its cool!

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Image Enhancer

Community Treasure Hunt

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

Start Hunting!

14. Tag buttons/