Load trained neural network using gui in matlab
3 views (last 30 days)
Show older comments
I am having a trained neural network. I want to load all the variables realed to neural network in the workspace by pressing the pushbutton in gui matlab.
The code is as follows:
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
trained_net_vars = load('netTransfer1');
handles.neural_net = trained_net_vars.net;
The variables are not getting loaded in the workspace. Can anyone help me here !!
3 Comments
Geoff Hayes
on 14 Mar 2019
Why can't the GUI set the inputSize and the netTransfer1 variables and hold on to those variables (as fields within the handles structure) within the GUI "workspace"?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!