-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathneuralNetFitting.m
70 lines (63 loc) · 1.71 KB
/
neuralNetFitting.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Input=[];
Output=[];
%%% GETTING INPUT PARAMETERS
if get(handles.Input2,'value')==1
Input=[Input handles.d(:,2)];
end
if get(handles.Input3,'value')==1
Input=[Input handles.d(:,3)];
end
if get(handles.Input4,'value')==1
Input=[Input handles.d(:,4)];
end
if get(handles.Input5,'value')==1
Input=[Input handles.d(:,5)];
end
if get(handles.Input6,'value')==1
Input=[Input handles.d(:,6)];
end
if get(handles.Input7,'value')==1
Input=[Input handles.d(:,7)];
end
if get(handles.Input8,'value')==1
Input=[Input handles.d(:,8)];
end
[m,n]=size(Input)
row=Input(m,:);
Input=[Input;row];
%%% GETTING OUTPUT PARAMETERS
if get(handles.Output2,'value')==1
Output=[handles.d(:,2)];
end
if get(handles.Output3,'value')==1
Output=[Output handles.d(:,3)];
end
if get(handles.Output4,'value')==1
Output=[Output handles.d(:,4)];
end
if get(handles.Output5,'value')==1
Output=[Output handles.d(:,5)];
end
if get(handles.Output6,'value')==1
Output=[Output handles.d(:,6)];
end
if get(handles.Output7,'value')==1
Output=[Output handles.d(:,7)];
end
if get(handles.Output8,'value')==1
Output=[Output handles.d(:,8)];
end
[m,n]=size(Output)
row=Output(1,:);
Output=[row;Output];
assignin('base','Input',Input)
assignin('base','Output',Output)
handles.Input=Input;
handles.Output=Output;
guidata(hObject, handles);
guidata(hObject, handles);
Nftool
genFunction(net,'NeuralNet')
set(handles.pushbutton7,'Enable','on')
set(handles.pushbutton9,'Enable','on')
set(handles.edit12,'string','Neuronal Net Built Successful');