Compile_CWT

PURPOSE ^

SYNOPSIS ^

function Compile_CWT

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function Compile_CWT
0002 
0003 MEX_OK = 0;
0004 
0005 % for file = {'fwt','ifwt','fwt2','ifwt2', 'fwt2_CWT', 'afwt2_CWT',  ...
0006 %         'ifwt2_CWT', 'afwt','afwt2'}
0007 %
0008 %     file = char(file);
0009 %     if exist(file)~=3,
0010 %         MEX_OK = 0;
0011 %         break;
0012 %     end
0013 % end
0014 
0015 if ~MEX_OK
0016     Friend = computer;
0017     isPC = 0;
0018     if strcmp(Friend(1:2),'PC')
0019         isPC = 1;
0020     end
0021     if isPC
0022         mex -c fwt_level.c
0023         mex fwt.c fwt_level.obj -output fwt
0024         mex ifwt.c fwt_level.obj -output ifwt
0025         mex fwt2.c fwt_level.obj -output fwt2
0026         mex ifwt2.c fwt_level.obj -output ifwt2
0027         
0028         mex -c afwt_level.c
0029         mex afwt.c afwt_level.obj -output afwt
0030         mex afwt2.c afwt_level.obj -output afwt2
0031         
0032         mex fwt2_CWT.c fwt_level.obj -output fwt2_CWT
0033         mex ifwt2_CWT.c fwt_level.obj -output ifwt2_CWT
0034         mex afwt2_CWT.c afwt_level.obj -output afwt2_CWT
0035         
0036         % mex aifwt_mod.c fwt_level.obj -output aifwt_mod
0037         % mex aifwt2_mod.c fwt_level.obj -output aifwt2_mod
0038     else
0039         mex -c fwt_level.c
0040         mex fwt.c fwt_level.o -output fwt
0041         mex ifwt.c fwt_level.o -output ifwt
0042         mex fwt2.c fwt_level.o -output fwt2
0043         mex ifwt2.c fwt_level.o -output ifwt2
0044 
0045         mex fwt2_CWT.c fwt_level.o -output fwt2_CWT
0046         mex ifwt2_CWT.c fwt_level.o -output ifwt2_CWT
0047 
0048         mex -c afwt_level.c
0049         mex afwt.c afwt_level.o -output afwt
0050         mex afwt2.c afwt_level.o -output afwt2
0051         mex afwt2_CWT.c afwt_level.o -output afwt2_CWT
0052         
0053         % mex aifwt.c fwt_level.o -output aifwt_mod
0054         % mex aifwt2.c fwt_level.o -output aifwt2_mod
0055     end
0056 end

Generated on Mon 10-Jun-2013 23:03:23 by m2html © 2005