Provided there is a deterministic trend to the input/output relationship, all you need is a sufficient number of input/output pair examples.
See the examples in the documentation.
Hope this helps.
Greg
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!