Why do I get a error message "Conversion to struct from double is not possible. " when I run patternnet function?

4 views (last 30 days)
I get the following message when I run patternnet function.
 
>> net = patternnet(10);
Error using struct
Conversion to struct from double is not possible.
Error in network/subsasgn>getDefaultParam (line 2046)
param = struct(feval(fcn,'defaultParam'));
Error in network/subsasgn>setLayerTransferFcn (line 1222)
net.layers{i}.transferParam = getDefaultParam(transferFcn);
Error in network/subsasgn>network_subsasgn (line 206)
if isempty(err), [net,err] = setLayerTransferFcn(net,i,transferFcn); end
Error in network/subsasgn (line 11)
net = network_subsasgn(net,subscripts,v,netname);
Error in patternnet>create_network (line 104)
net.layers{net.numLayers}.transferFcn = 'softmax';
Error in patternnet (line 71)
net = create_network(param);
Error in classify_wine_demo (line 98)
net = patternnet(10);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Dec 2016
It seems that MATLAB path is not set correctly. Please execute the following command to initialize MATLAB path.
>> restoredefaultpath
If you could avoid the error, please execute the following command to save MATLAB path.
>> savepath
 

More Answers (0)

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!