Reference to non-existent field 'net_read_only'

Hi everyone,
I am a beginner using neural network toolbox. I don't know why but my neural network stop working and keep return Reference to non-existent field 'net_read_only.
If I run the network by script it stop after
net = patternnet(hiddenLayerSize);
and return error:
Default value is not a member of type "nntype.performance_fcn".
Would someone kindly help me through this problem.
Thank you

1 Comment

Hello, I am facing similar problem as you. The error is: Reference to non-existent field 'net_read_only'. Error in network/subsasgn>network_subsasgn (line 41) if ~isempty(nnstring.first_match(field,FIELD_NAMES.net_read_only)) Error in network/subsasgn (line 13) ............
Can you help me on solve this problem?Thanks.

Sign in to comment.

 Accepted Answer

Do you have an older version of the NNTOOLBOX which does not contain PATTERNNET?
lookfor patternnet
help patternnet
doc patternnet
If so, use NEWPR.
Hope this helps,
Thank you for formally accepting my answer
Greg

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!