You should have mentioned timeseries and/or narxnet in your question. Try searching the NEWSGROUP and ANSWERS using
greg narx closeloop % Given exogeneous input and target series
or
greg narnet closeloop % Given only one series
Hope this helps.
Thank you for formally acceptinhg my answer
Greg