image thumbnail

Patch for annotationPane errors in GUIDE [Beta]

version 1.1.2 (3.95 KB) by Adam Danz
A patch to the problem of editing GUIs in GUIDE in r2019b (and later?)


Updated 17 Mar 2021

View License

Note: Matlab has since patched this problem in update #3 for r2019b:

This file is therefore no longer supported.

The r2019b release of Matlab often causes a problem when editing a GUI in GUIDE. AnnotationPane objects were added to certain GUI components and when certain properties are changed from within GUIDE, an error dialog appears preventing the user from making changes to the GUI.

This file (guidefunc.m) acts as a wrapper function to Matlab's guidefunc() by searching for and deleting AnnotationPane objects prior to loading the GUI into GUIDE.

Simply add this file to your Matlab path and open your GUI in GUIDE as you normally would. See the help section for important information.

This function is in the beta stage and your feedback is much appreciated (email address in file).

For discussion on this top in the forum, see

Special thanks to Brunno Machado de Campos for providing an additional test GUI and feedback.

Cite As

Adam Danz (2021). Patch for annotationPane errors in GUIDE [Beta] (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with R2019b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!