Custom NN in matlab

Hello, I'm quite new to matlab, I need to create my own custom neural network using m-file with pre-defined weights. Problem is, that I need 5 inputs and 5 outputs, when using newff(parameters) always get 2 outputs and so many inputs what is the size of input data vector. Please help me with this, thx!

 Accepted Answer

Greg Heath
Greg Heath on 25 Apr 2012

0 votes

If you have N I/O pairs with I-dimensional input vectors and corresponding O-dimensional output target vectors, the size of the input and target matrices are
[ I N ] = size(x) %input
[O N ] = size(t) % target
Hope this helps.
Greg

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!