MATLAB: Custom NN in matlab

neural network

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!

Best Answer

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