Neural Network Toolbox Previous page   Next Page

Code Efficiency

The functions sim, train, and adapt all convert a network object to a structure,

before simulation and training, and then recast the structure back to a network.

This is done for speed efficiency since structure fields are accessed directly, while object fields are accessed using the MATLAB® object method handling system. If users write any code that uses utility functions outside of sim, train, or adapt, they should use the same technique.


Previous page  Functions Argument Checking Next page

© 1994-2005 The MathWorks, Inc.