Simulation (sim)
The function sim simulates a network. sim takes the network input p and the network object net and returns the network outputs a. You can use sim to simulate the network created above for a single input vector:
(If you try these commands, your output might be different, depending on the state of your random number generator when the network was initialized.) Below, sim is called to calculate the outputs for a concurrent set of three input vectors. This is the batch mode form of simulation, in which all the input vectors are placed in one matrix. This is much more efficient than presenting the vectors one at a time.
| | Provide feedback about this page |
 | Architecture | | Training |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit