function nnmodrefhelp(varargin)
%NNMODREFHELP Help text for the Indirect Adaptive Control GUI
%
%  Synopsis
%
%   nnmodrefhelp(varargin)
%
%   displays the help text for the portion of the Indirect Adaptive Control
%   GUI specified by varargin.
%
%  nnmodrefhelp is not recommended and will be removed in a future release.
%  This function is generally being called from a Simulink block.

% Orlando De Jesus, Martin Hagan, 1-25-00
% Copyright 1992-2018 The MathWorks, Inc.

if (nargin > 0)
    switch varargin{1}
        case 'main'
            %---Help for the main Model Reference Control window
            doc(fullfile(nnpath.nnet_root,'toolbox/nnet/nncontrol/private/nnmodrefhelp_main.m'));
            
        case 'train_contr'
            %---Help for the Training Controller process.
            doc(fullfile(nnpath.nnet_root,'toolbox/nnet/nncontrol/private/nnmodrefhelp_train_contr.m'));
            
        case 'plant_ident'
            %---Help for the Plant Identification process
            doc(fullfile(nnpath.nnet_root,'toolbox/nnet/nncontrol/private/nnmodrefhelp_plant_ident.m'));
            
        case 'simulation'
            %---Help for the simulation process
            doc(fullfile(nnpath.nnet_root,'toolbox/nnet/nncontrol/private/nnmodrefhelp_simulation.m'));
    end % switch action
end
