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

9 次查看(过去 30 天)
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);

采纳的回答

MathWorks Support Team
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
 

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Pattern Recognition and Classification 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by