Why do I receive an error when opening the Membership Function window in the Fuzzy Logic Toolbox?

1 view (last 30 days)
I am using the Fuzzy-Logic Toolbox version 2.1.1 (R12.1). When I try to open the MFEDIT window by going to 'Edit --> Add MF's...' in the Membership Functions Editor window, I receive the following errors:
??? Undefined function or variable 'centerfig'.
Error in ==> D:\MATLAB6p1\toolbox\fuzzy\fuzzy\mfdlg.m
On line 53 ==> centerfig(figNumber, oldFigNumber);
Error in ==> D:\MATLAB6p1\toolbox\fuzzy\fuzzy\mfedit.m
On line 1292 ==> mfdlg(figNumber,fis,varType,varIndex);
??? Error while evaluating uimenu Callback.
I also receive the above error when trying to open the GUI using the 'mfedit' command.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This has been fixed the Fuzzy Logic Toolbox 2.1.2 (R13).
To fix this problem in version 2.1.1, you will need to remove the following lines:
- line 53 in mfdlg.m:
centerfig(figNumber, oldFigNumber);
- line 59 in wsdlg.m:
centerfig(figHandle,figNumber);
- line 57 in cmfdlg.m:
centerfig(figNumber,MainFigHndl);
These three files can be found in the following directory:
$MATLAB\toolbox\fuzzy\fuzzy\
where $MATLAB refers to your root MATLAB directory.
Removing these lines will in no way affect the functionality of the toolbox.

More Answers (0)

Categories

Find more on Fuzzy Inference System Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!