when i click on ANFIS training than warning generated like Warning: Warning: FOR loop index is too large. Truncating to 9223372036854775807

1 view (last 30 days)
Warning: Warning: FOR loop index is too large. Truncating to 9223372036854775807.
> In genfis1 at 117
In main>pushbutton4_Callback at 125
In gui_mainfcn at 96
In main at 42
In@(hObject,eventdata)main('pushbutton4_Callback',hObject,eventdata,guidata(hObject))
Project Code::
function pushbutton1_Callback(hObject, eventdata, handles)
[filename filename_path] = uigetfile('*.jpg;*.pgm;*.png;*.tif','Select a Test Image');
image_path = [filename_path filename];
mydata = imread(image_path);
handles.mydata = mydata; guidata(hObject, handles);
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
coeff = dct2(rgb2gray(handles.mydata));
disp(coeff);
handles.coeff = coeff;
guidata(hObject, handles);
function pushbutton4_Callback(hObject, eventdata, handles)
trndata = handles.coeff(1,:);
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 5;
in_fis = genfis1(trndata, numMFs, mfType);
out_fis = anfis(trndata, in_fis, 5);
plot(trndata, evalfis(trndata, out_fis));
legend('Training Data', 'ANFIS Output');

Answers (0)

Categories

Find more on Fuzzy Logic Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!