How do I use an M-by-N matrix input or an M-by-N matrix target in the NNTOOL GUI from the Neural Network Toolbox?

4 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The following example demonstrates how to do this.
At the MATLAB command prompt, type:
PNEW=rand(11,45); %You have 11 inputs to your network
TNEW=rand(5,45);% You have 5 targets to your network
nntool %starts the Neural Network gui
In the Neural Network GUI:
1. Import the data PNEW as 'Inputs' and TNEW as 'Targets' by using the Import button.
2. Create a new Network with the following information:
Network Type: Feed-Forward backprop
Input ranges: select PNEW from the dropdown menu
Training Function: TRAINLM
Adaption learning function: LEARNGDM
Performance function: MSE
Number of Layers: 2
For the Properties of Layer 2, the number of neurons should be 5. The transfer function can be TANSIG.
3. Click on View for the network you created.
4. In the Training Info under the Train tab, select the Inputs as PNEW and Targets are TNEW
5. Click on 'Train Network'

More Answers (0)

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!