SETMENUICON(MENUOBJECT,ICONFILE) sets the icon of MENUOBJECT to ICONFILE. MENUOBJECT is a menu item created with MATLAB's own UIMENU. ICONFILE denotes the path to an image file containing the desired icon. This should work with GIF, JPEG and PNG images.
Cite As
Florian Rau (2026). setMenuIcon (https://github.com/bimac/setMenuIcon), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2020a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Add Icons to GUI menus
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.5 | minor clean-up |
|
|
| 1.0.4 | added check for App Designer figures |
|
|
| 1.0.3 | added example |
|
|
| 1.0.2 | minor clean-up of the code |
|
|
| 1.0.1 | Corrected description and added acknowledgements |
|
|
| 1.0.0 |
|
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.
