Reference to non-existent field 'net_read_only'

Jimmy_yan · Jul 15, 2021 · 2K views
Question
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.
Expert Answer
Profile picture of John Michell
John Michell PhD Expert
Answered Sep 12, 2026

 

Do you have an older version of the NNTOOLBOX which does not contain PATTERNNET?
 
 
 lookfor patternnet

 help patternnet

 doc patternnet

If so, use NEWPR.

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!