Home > classes > @ao > attachm.m

attachm

PURPOSE ^

ATTACHM attach the m file being executes to the analysis object.

SYNOPSIS ^

function a = attachm(a, mfile)

DESCRIPTION ^

 ATTACHM attach the m file being executes to the analysis object.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003