ATTACHM attach the m file being executes to the analysis object.
0001 function a = attachm(a, mfile) 0002 0003 % ATTACHM attach the m file being executes to the analysis object. 0004 % 0005 % 0006 % 0007 0008 0009 [pathstr,name,ext,vers] = fileparts(mfile); 0010 if isempty(ext) 0011 mfile = [mfile '.m']; 0012 end 0013 a.mfile = textread(mfile,'%s','delimiter','\n','whitespace',''); 0014 a.mfilename = mfile; 0015 0016