MATLAB Answers

Load trained neural network using gui in matlab

5 views (last 30 days)
Maaz Ahmed
Maaz Ahmed on 14 Mar 2019
Commented: Geoff Hayes on 14 Mar 2019
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 =;
The variables are not getting loaded in the workspace. Can anyone help me here !!
Geoff Hayes
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"?

Sign in to comment.

Answers (0)


Community Treasure Hunt

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

Start Hunting!