how can I load neural network in exe file?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I made GUI for ANN. My GUI uses the mat file saved the learning result of ANN.
It works very well in GUI. however, when I make GUI into console application, It doesn't work.
this section is the only error
load('CBM_DC.mat'); % in here, my exe file can't read mat file
p1=str2double(get(handles.depth,'String'));
p2=str2double(get(handles.perm,'String'));
p3=str2double(get(handles.thick,'String'));
p4=str2double(get(handles.rank,'String'));
p5=str2double(get(handles.content,'String'));
p6=str2double(get(handles.strength,'String'));
p7=str2double(get(handles.extent,'String'));
p8=str2double(get(handles.dip,'String'));
p9=str2double(get(handles.num,'String'));
input=[p1 p2 p3 p4 p5 p6 p7 p8 p9];
[i1,is]=removeconstantrows(input); % I'm not sure but, this may be a problem
[i2,is]=mapminmax(i1); % I'm not sure but, this may be a problem
result=sim(net,i2'); % in here, my exe file can't works command 'sim'
the reason it is a problem is the error message as followed
Warning : While loading an oject of class 'nnetWeight' Undefined function or method 'initzero for input arguments of type 'char'.
Warning : An error occured when running a class's loadobj method. The object that was loaded from the MAT-file was a copy of the object before the loadobj method was run. The rest of the variables were also loaded from the MAT-file.
The encountered error was: Reference to non-existent field 'net_read_only'.
??? Undefined function or method 'sim' for input arguments of type 'struct'.
in cbmn_DC>pushbutton1_Callback at 96
in gui_main fac at 96
in cbmn_DC at 42 in @(hObject,eventdata)cbmn_DC('pushbutton1_Callback',hObject,eventdata,guidata(hObject
so how can I solve this problem? please help me make console application. thank you.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Title en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!