www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregnnet/nlfit.m

    function nn = nlfit(nn, x, y)
% NLFIT initialise and train neural network

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.




% initialise network
nn.param = init(nn.param);

% begin training
%temp = figure; %create figure for displaying performance
[nn.param, tr] = train(nn.param, x, y);

%close(temp) %close temporary figure