Not exactly. The output of load applied to a mat file, is a struct that has one field for each variable loaded. So you would need net.net where the first net is the struct returned from load and the second is the variable loaded.
Question
Hi, I am having trouble when trying to use the "classify" function to evaluate the performance of my neural network. I am using the following code: net = load('mynet.mat'); %this returns my previsouly trained SeriesNetwork object test_folder = './test_data'; test_images = imageDatastore(test_folder,'FileExtensions','.jpg'); [Y,scores] = classify(net,test_images); But the classify function throws me an error that it requires at least 3 arguments, which means it is trying to use the classify function from the statistics package. What can I make do force the use of the classify from the deep learning package?
Expert Answer
John Michell
PhD Expert
Answered Aug 30, 2026
net = load('mynet.mat'); %this returns my previsouly trained SeriesNetwork object
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related deep learning Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →