Home > FMAToolbox > Analyses > private > CheckChronux.m

CheckChronux

PURPOSE ^

CheckChronux - Make sure chronux is installed and functional.

SYNOPSIS ^

function CheckChronux(f)

DESCRIPTION ^

CheckChronux - Make sure chronux is installed and functional.

  USAGE

    CheckChronux

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %CheckChronux - Make sure chronux is installed and functional.
0002 %
0003 %  USAGE
0004 %
0005 %    CheckChronux
0006 
0007 % Copyright (C) 2007-2014 by Michaƫl Zugaro
0008 %
0009 % This program is free software; you can redistribute it and/or modify
0010 % it under the terms of the GNU General Public License as published by
0011 % the Free Software Foundation; either version 3 of the License, or
0012 % (at your option) any later version.
0013 
0014 function CheckChronux(f)
0015 
0016 if nargin == 0,
0017     f = 'chronux';
0018     message = 'This function requires the <a href="http://www.chronux.org">chronux</a> toolbox.';
0019 else
0020     message = ['This function requires the <a href="http://www.chronux.org">chronux</a> toolbox (could not find ''' f ''').'];
0021 end
0022 
0023 if isempty(which(f)),
0024     error(message);
0025 end
0026

Generated on Fri 16-Mar-2018 13:00:20 by m2html © 2005