Path: news.mathworks.com!not-for-mail
From: "Omur Bas" <omur.bas@promodxxxxxx.com.tr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: [quick Q] how to run a scirpt in my .m file? Thanks!
Date: Tue, 19 Aug 2008 06:42:01 +0000 (UTC)
Organization: Promod Research and Software
Lines: 21
Message-ID: <g8dpvp$cqj$1@fred.mathworks.com>
References: <f64841f0-c4ff-49b8-a25e-8c4b6c5796ae@m45g2000hsb.googlegroups.com>
Reply-To: "Omur Bas" <omur.bas@promodxxxxxx.com.tr>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219128121 13139 172.30.248.37 (19 Aug 2008 06:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 19 Aug 2008 06:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105608
Xref: news.mathworks.com comp.soft-sys.matlab:486165



Learner <cnfengshuang@gmail.com> wrote in message
<f64841f0-c4ff-49b8-a25e-8c4b6c5796ae@m45g2000hsb.googlegroups.com>...
> 	           ,gzip(gfe),gzip(gfe)
> Xref: news.mathworks.com comp.soft-sys.matlab:486156
> 
> Hi,
> 
> I have saved a code segment as a.m, and I want to run it
as part of
> code b.m.  What should I write in b.m in order to call "a.m"?
> 
> Thanks a lot!
> 

Just the name of the script, possibly followed by a semicolon:

a;

HTH,
Omur
www.promodsoftware.com.tr