0001 function Make_VMT
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 addpath utils
0012 addpath tools
0013
0014
0015
0016 [fname,pathname] = uiputfile('VMT.exe','Select where to asave VMT compiled executable');
0017
0018 [~, filename,ext] = fileparts(fname);
0019
0020
0021
0022 if 0
0023 sdir = pwd;
0024 cd ..
0025 m2html('mfiles','trunk', 'htmldir', [sdir filesep 'doc'], 'recursive','on','template','frame','index','menu');
0026 cd (sdir)
0027 end
0028
0029
0030 com_str = ['-o ' ...
0031 filename ...
0032 ' -W WinMain -T link:exe -d ' ...
0033 pathname...
0034 ' -N -p map -p stats -p images -p utils -p doc -p tools -v '...
0035 'VMT.m -a VMT.fig'];
0036
0037
0038
0039 eval(['mcc ' com_str])
0040
0041
0042
0043
0044
0045 copyfile('VMT_Background.png',[pathname 'VMT_Background.png'])
0046
0047
0048 backup([pwd filesep 'doc'],[pathname 'doc'],[],'/E /Y')
0049
0050
0051 backup([pwd filesep 'cpt'],[pathname 'cpt'],[],'/E /Y')
0052