mri_toolbox_doc_make - script to use m2html to create mri_toolbox documentation
0001 0002 % mri_toolbox_doc_make - script to use m2html to create mri_toolbox documentation 0003 0004 if exist('m2html'), 0005 location = which('mri_toolbox'); 0006 [path,file,ext] = fileparts(location); 0007 path = strrep(path,'mri_toolbox',''); 0008 cd(path); 0009 m2html('m','mri_toolbox','html',['mri_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