How upload a saved neural network in the GUI?

Technical Source
1 min readJul 16, 2021

--

I am creating a GUI where there are two options to choose a network to use;

-Uploading an already trained net.

-Training a Network.

For the first choice I want to have the option to go to different directory and upload it. I am using the following command, but it loads the net as a character!! net = uigetfile; handles.net=net;

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

You saved the files with .mat extension, you need load command to load them to MATLAB not dlmread or fopen.

ListOfVariables = load(uigetfile);

If you saved tr and net in one file, they all will be loaded in ListofVariables, ListOfVariables is a structure, that contains all the variables in the .mat file.

You can use tr an net then, in your GUI.

handles.tr =  ListOfVariables.tr;

SEE COMPLETE ANSWER CLICK THE LINK

https://www.matlabsolutions.com/resources/how-upload-a-saved-neural-network-in-the-gui-.php

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet