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

2 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 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.

Más respuestas (0)

Categorías

Más información sobre Fuzzy Inference System Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by