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

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);

 Réponse acceptée

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
 

Plus de réponses (0)

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Centre d'aide et File Exchange

Produits

Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by