How can I make 2 hidden layers in neural network toolkit?

eriiharuue · Jul 29, 2021 · 2.2K views
Question
I want a Multi-layer Perceptron neural network by neural network toolkit. but I cannot make 2 hidden layers (just 1 layer available).   How can I make 2 hidden layers in neural network toolkit?
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Aug 25, 2026
Regression/Curvefitting
 
 net = fitnet([H1,H2]);

Classification/Pattern-Recognition

 net = patternnet([H1,H2]);

Time Series

 net = narxnet( ID, FD, [ H1, H2]);
timedelaynet and narnet are special cases obtained from
 
FD = [] and ID = [], respectively.
 
Hope this helps.
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!