Why do I receive an error "undefined method 'brush" when I try to save a figure in GUIDE in MATLAB 7.4 (R2007a)?

When saving a GUI built in MATLAB 7.4 (R2007a) with any change, I receive the following error:
unhandled internal error in guidefunc at 2640 - undefined method 'brush'.

 Accepted Answer

This error might occur if the path is not correctly configured or the installation failed.
To diagnose the cause:
1. Find the directory where MATLAB is installed on your machine, as returned by typing
matlabroot
at the MATLAB command prompt.
Under this directory, navigate further into \toolbox\matlab\datamanager\" and check if the BRUSH.M file is located here.
If the file is present, back up your path then run
restoredefaultpath
savepath
at the MATLAB command prompt.
RESTOREDEFAULTPATH sets the search path to include only installed products from MathWorks™.
2. If the files do not exist, the MATLAB installation was incorrect and you will need to reinstall MATLAB.

More Answers (0)

Categories

Products

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!