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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fuzzy Inference System Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!