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

조회 수: 2 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fuzzy Inference System Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by