回 帖 发 新 帖 刷新版面

主题:请高手帮忙看看小妹万分感谢

trnData=[0.0177 0 0.02 0.0054 0.058 0.6725;
0.023 0 0.1 0.0054 0 0.6943;
0.0619 0.2424 0.15 0.0323 0.2319 0.6376;
0.2212 0.6061 0.4 0.1613 0.5217 0.4891;
0.0796 0.8182 0.8 0.0968 0.7971 0.1616;
0.1504 0.9697 0.9 0.6075 0.8406 0.0699;
0.1681 1.0 0.7 0.1559 0.6957 0.1092;
0.1504 0.9394 0.5 0.3978  0.5507 0.1048;
0.1150 0.7576 0.4 0.1129 0.2174 0.2533;
0.1593 0.5606 0.4 0.0806 0.3913 0.4017;
0.0885 0.3030 0.52 0.0753 0.2319 0.6201;
0.2035 0.3182 0.35 0.0591 0 0.6638;
0 0.3333 0.1 0.0054 0.029 0.5764;
1 0.9697 0.45 1 0.6812 0.0437;
0.6106 0.8788 0.4 0.6129 0.5507 0;
0.6814 0.6970 0.4 0.3226 0.4058 0.0568;
0.3982 0.4848 0.2 0.1882 0.2609 0.2009;
0.1858 0.3333 0.1 0.0215 0.1304 0.4105;
0.0708 0.0909 0 0.0323 0.0290 0.5153;];


chkData=[0.0442 0.0909 0.15 0.0108 0.0725 0.6070;
0.115 0.3030 0.2 0.0215 0.4783 1.0;
0.1681 0.6061 0.6 0 0.3478 0.4148;
0.0708 0.8485 0.9 0.1022 0.8261 0.1921;
0.1327 0.9545 1.0 0.4355 1.0 0.0873];



numMFS=[6 6 6 7 4];
mfType=str2mat('pimf','pimf','trimf','trimf','pimf');


fisMat=genfis1(trnData,numMFS,mfType);
[x,mf]=plotmf(fisMat,'input',1);
subplot(2,3,1),plot(x,mf);
[x,mf]=plotmf(fisMat,'input',2);
subplot(2,3,2),plot(x,mf);
[x,mf]=plotmf(fisMat,'input',3);
subplot(2,3,3),plot(x,mf);
[x,mf]=plotmf(fisMat,'input',4);
subplot(2,3,4),plot(x,mf);
[x,mf]=plotmf(fisMat,'input',5);
subplot(2,3,5),plot(x,mf);
>> numEpochs=40;%训练次数为40
>> [fisMat1,truErr,ss,fisMat2,chkErr]=anfis(trnData,fisMat,numEpochs,NaN,chkData);
[color=008080][color=0000FF][color=FF0000]??? Out of memory. Type HELP MEMORY for your options.

[color=FF0000]Error in ==> C:\MATLAB6p5\toolbox\fuzzy\fuzzy\anfismex.dll
Error in ==> C:\MATLAB6p5\toolbox\fuzzy\fuzzy\anfis.m
On line 189  ==>     [t_fismat, t_error, stepsize, c_fismat, c_error] = ...[/color][/color][/color][/color]

回复列表 (共2个回复)

沙发

已解决拉

板凳


您是怎么解决的?能否告诉我一下?我现在也在研究这个模糊神经网络。多谢了!

我来回复

您尚未登录,请登录后再回复。点此登录或注册