title: How to select number of Input layers, hidden layers and output layer using newff in Matlab?
body: <p>I am using <em>newff</em> for stock price forecasting project, I am trying to setup a Back-propagation feed forward ANN of 4 inputs, 1 hidden layers and 1 output layer (4-1-1). I have read many forums to learn how to correctly specify these parameters for newff, however almost every forum/post just copy/paste the matlab <em>newff</em> definition (That I am not able to understand as I am new to matlab and neural networks). Can someone please just let me know how to setup a 4-1-1 ANN using <em>newff</em>? </p>