eeg_toolbox_doc_make - script to use m2html to create eeg_toolbox documentation
0001 0002 % eeg_toolbox_doc_make - script to use m2html to create eeg_toolbox documentation 0003 0004 if exist('m2html'), 0005 location = which('eeg_toolbox'); 0006 [path,file,ext] = fileparts(location); 0007 path = strrep(path,'eeg_toolbox',''); 0008 cd(path); 0009 m2html('m','eeg_toolbox','html',['eeg_toolbox',filesep,'doc_m2html']); 0010 else 0011 error('cannot locate m2html, see http://www.madic.org/download/matlab/m2html/'); 0012 end 0013 0014 clear ext file location path