Suddenly neural network toolbox doesn't work anymore
Show older comments
Hello!
I worked with the neural network toolbox until yesterday when suddenly I got a error message:

At first I thougt that somehow the data I feed into the neural network got corrupted. But after checking this I could rule it out as I cause. To make sure it is not the data I tried the sample data that comes with MATLAB and I get the same error message with the sample data.
If I try to call patternnet(10) in the command window I get the following error message:
>> net=patternnet(10)
Default value is not a member of type "nntype.performance_fcn".
Error using nnetParamInfo (line 28)
Reference to non-existent field 'net_read_only'.
Error in patternnet>get_info (line 85)
info = nnfcnNetwork(mfilename,'Pattern Recognition Neural Network',fcnversion, ...
Error in patternnet (line 41)
if isempty(INFO), INFO = get_info; end
I have R2013b 64-bit. Does anybody have an idea what could be the reason that suddenly the neural network toolbox doesn't work anymore? I would very much appreciate your help.
Answers (2)
Tunan
on 4 Jul 2014
0 votes
I have the same problem. All of a sudden, Matlab NN toolbox doesn't work any more. It was fine in May.
When I was trying the nprtool and using the sample data, it doesn't work.
Anybody know what's happening? There is no source code since we are using the GUI.
7 Comments
Gechas
on 6 Jul 2014
Florian
on 13 Jan 2015
how did you solve the problem? i have the same problem now :D
Amanjit Dulai
on 16 Jan 2015
Edited: Amanjit Dulai
on 28 Jan 2015
The cause of this problem may be a name conflict due to files having the same name on the MATLAB path.
The error seems to be thrown by a function called by "nntype.performance_fcn". You can get more information on where the error is thrown from by setting a breakpoint in this file. To do this, type the following MATLAB command to open this file:
edit nntype.performance_fcn
When the file opens, set a breakpoint on line 31 by clicking in the left hand column of the editor window. If you then run "patternnet", you should hit this breakpoint. At this point, you can run the next function in "performance_fcn.m" manually by typing the following command:
err = type_check(in2);
You should then get more detailed information on the error.
John Malik
on 18 Nov 2016
This worked for me. I had another MATLAB file called mse.m in my path that was distracting the Toolbox, so I removed it.
Nick Durkee
on 21 Mar 2017
Thanks, mse.m was troubling me too. A utility folder for another project was overshadowing MATLAB's libraries.
Ali Mutlu
on 5 Dec 2017
Thanks a lot John Malik, the problem is resolved!
MOHD FUAD ABDUL LATIP
on 7 Nov 2022
I have this error but dont know how to fix it
Reference to non-existent field 'net_read_only'.
Error in network/subsasgn>network_subsasgn (line 39)
if ~isempty(nnstring.first_match(field,FIELD_NAMES.net_read_only))
Error in network/subsasgn (line 11)
net = network_subsasgn(net,subscripts,v,netname);
Error in network>setnet (line 178)
net = subsasgn(net,subscripts,value);
Error in network>new_network (line 168)
net = setnet(net,'numInputs',numInputs);
Error in network (line 71)
net = new_network(varargin{:});
Error in feedforwardnet>create_network (line 101)
net = network;
Error in feedforwardnet (line 69)
net = create_network(param);
Error in nntype.performance_fcn>type_check (line 141)
net = feedforwardnet;
software
on 8 Jul 2019
0 votes
Thanks John Malik,
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!