function varargout = covariance_plots(varargin)
%COVARIANCE_PLOTS - M-file for covariance_generator, covariance_plots
% function varargout = covariance_plots(varargin)
%    FIG = COVARIANCE_PLOTS launch covariance_plots GUI.
%    COVARIANCE_PLOTS('callback_name', ...) invoke the named callback.
%
% See also COVARIANCE_GENERATOR

%<autobegin> ---------------------- 26-May-2004 11:29:54 -----------------------
% --------- Automatically Generated Comments Block Using AUTO_COMMENTS ---------
%
% CATEGORY: Data Processing
%
% Alphabetical list of external functions (non-Matlab):
%   toolbox\bst_color_scheme.m
%   toolbox\bst_layout.m
%
% Application data and their calls in this file:
%   'TileType'
%   
%   setappdata(fig,'TileType','T');
%   
%
% Figure Files opened by this function:
%   mfilename
%
%   Format of strings below: Type:Style:Tag, "String", CallBack Type and Call
%   <automatic> callback is <Tag>_Callback by Matlab default
%
% At Check-in: $Author: Mosher $  $Revision: 7 $  $Date: 5/26/04 9:59a $
%
% This software is part of BrainStorm Toolbox Version 2.0 (Alpha) 24-May-2004
% 
% Principal Investigators and Developers:
% ** Richard M. Leahy, PhD, Signal & Image Processing Institute,
%    University of Southern California, Los Angeles, CA
% ** John C. Mosher, PhD, Biophysics Group,
%    Los Alamos National Laboratory, Los Alamos, NM
% ** Sylvain Baillet, PhD, Cognitive Neuroscience & Brain Imaging Laboratory,
%    CNRS, Hopital de la Salpetriere, Paris, France
% 
% See BrainStorm website at http://neuroimage.usc.edu for further information.
% 
% Copyright (c) 2004 BrainStorm by the University of Southern California
% This software distributed  under the terms of the GNU General Public License
% as published by the Free Software Foundation. Further details on the GPL
% license can be found at http://www.gnu.org/copyleft/gpl.html .
% 
% FOR RESEARCH PURPOSES ONLY. THE SOFTWARE IS PROVIDED "AS IS," AND THE
% UNIVERSITY OF SOUTHERN CALIFORNIA AND ITS COLLABORATORS DO NOT MAKE ANY
% WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
% MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, NOR DO THEY ASSUME ANY
% LIABILITY OR RESPONSIBILITY FOR THE USE OF THIS SOFTWARE.
%<autoend> ------------------------ 26-May-2004 11:29:54 -----------------------


% Last Modified by GUIDE v2.0 10-Oct-2003 15:10:38

if nargin == 0  % LAUNCH GUI

   fig = openfig(mfilename,'reuse');
   close(fig)
   fig = openfig(mfilename,'reuse');
   
   % Use system color scheme for figure:
   bst_color_scheme(fig);
   setappdata(fig,'TileType','T');
   bst_layout('align',fig,1,1,1);
   
   set(fig,'menubar','figure'); % for zooming, printing, etc
   
   set(fig,'visible','on');
   
	% Generate a structure of handles to pass to callbacks, and store it. 
	handles = guihandles(fig);
	guidata(fig, handles);

	if nargout > 0
		varargout{1} = fig;
	end

elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK

	try
		if (nargout)
			[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
		else
			feval(varargin{:}); % FEVAL switchyard
		end
	catch
		disp(lasterr);
	end

end

