The MATLAB Notebook v1.5.2

function to compute the backpropagation algorithm ... The reason is that to use ‘fmincg’ or other minimizing functions in Matlab, the first parameter of the function to minimize needs to be one dimensional. In this function, you need to output two variables. The first is the cost ‘J’ computed using ‘costFunc’, which you have completed. ................
................