MATLAB: Fit an equation with trained neural network

MATLABneural network

Hello,
How can I fit a trained neural network into an equation? Because modeling is worthless without an output equation.
Or what command should be used for a saved neural network with 4 variables (in command window)? I use "net(40,200,2,120)" but it makes a mistake.

Best Answer

The single hidden layer feedforward net is a
UNIVERSAL APPROXIMATOR!
In the default mode it's equation is
y = B2 + LW*tanh(B1+IW*x)
help fitnet
doc fitnet
Hope this helps
Thank you for formally accepting my answer
Greg