Error in this code
显示 更早的评论
Hi,
Can somebody help me to fix the error in the code that is located in this page:
the code is the math code of this paper : J. Abonyi and F. Szeifert, Supervised fuzzy clustering for the identification of fuzzy classifiers, Pattern Recognition Letters, 24(14) 2195-2207, October 2003 (MATLAB implementation), New!!
Unfortunately, the author does not reply to me questions.
The error occurs when I run Winclust. The error is as follow: ??? Error using ==> times Matrix dimensions must agree.
Error in ==> sGGclust at 93 J(iter) = sum(sum(f0.*d));
Error in ==> Wineclust at 49 [F,C,P,Pi,M,py] = sGGclust([data(cindex,feat) data(cindex,end)],F,2,1e-6,IDA,s);
I would appreciate any help.
Thanks,
Ladan
回答(1 个)
the cyclist
2012-2-4
0 个投票
The best way to figure out this error is to use the debugging commands supplied with MATLAB. If you click just next to the line number (e.g. on line 93 of sGGclust), you will create a breakpoint there, and MATLAB will halt before executing that line. Then, you can hover over the variable names in the file (such as f0 and d) and see why their dimensions do not match.
You can find more details in the MATLAB User Guide in the section "Editing and Debugging MATLAB Code"
7 个评论
ll kk
2012-2-4
ll kk
2012-2-4
Image Analyst
2012-2-5
OK, that's fine . . . but there are reasons no one can answer your questions, and mostly they're due to you.
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Jan
2012-2-5
@Ladan: You expect us to download and install the software, create some relevant inputs, start the debugger and investigate why you get an error using some inputs you do not show in the forum.
This is not a successful strategy, as you found out already.
ll kk
2012-2-5
Image Analyst
2012-2-5
We are willing to go through "a little" trouble. But you should be willing to go through more trouble than us because it's your problem. We can spend a few minutes on your problem, not an half an hour or more. I did download the zip file but there were many many m files in there and I didn't know which to run. The link I gave gives some guidance to you so that you can come back with information that can help up help you.
ll kk
2012-2-5
类别
在 帮助中心 和 File Exchange 中查找有关 Data Clustering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!