I'm new to MATLAB but am working on a project so I've problem using and understanding new function and I'm not too good at deep learning with respect to hands on approach.
I've written code for CNN and trained the network somehow but I'm not able to use that trained network, will be greatful for any help.
Here's part of my code: -
%% Creating the CNN
% I've defined inputlayer, middlelayer and finallayer and it's training successfully
layers = [
options = trainingOptions('sgdm','MaxEpochs',50, ...
convnet = trainNetwork(trainData,layers,options);
thisNetwork = convnet;
If I load my network with command using : -
I don'd get any error.
Then when I try to use it using: -
result = TheTrainedCNN('test.jpg');
I get error as:-
Unrecognized function or variable 'TheTrainedCNN'.