function [success,msg] = dialogCallback(hObj, hDlg, hCLI, action,varargin) %#ok
%DIALOGCALLBACK - Callback for the FDTB dialog.

%   Author(s): J. SUN
%   Copyright 2009-2011 The MathWorks, Inc.
%     
success = true;
msg = '';
switch action
    case 'InputComplex'
        this = varargin{1};
        indx = varargin{2};
        options = varargin{3};
        set(this, action, options{indx+1});
        if strcmpi(hObj.InputComplex, 'Real')
            hCLI.InputComplex = 'off';
        else
            hCLI.InputComplex = 'on';
        end            
end

