Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy1no!pd7cy2no!shaw.ca!pd7urf3no.POSTED!53ab2750!not-for-mail
X-Trace-PostClient-IP: 24.79.146.116
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: [quick Q] how to run a scirpt in my .m file? Thanks!
References: <f64841f0-c4ff-49b8-a25e-8c4b6c5796ae@m45g2000hsb.googlegroups.com> <g8e0uu$7gm$1@fred.mathworks.com>
In-Reply-To: <g8e0uu$7gm$1@fred.mathworks.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 17
Message-ID: <kRzqk.18253$hx.4177@pd7urf3no>
Date: Tue, 19 Aug 2008 13:25:36 GMT
NNTP-Posting-Host: 24.66.94.143
X-Complaints-To: abuse@shaw.ca
X-Trace: pd7urf3no 1219152336 24.66.94.143 (Tue, 19 Aug 2008 07:25:36 MDT)
NNTP-Posting-Date: Tue, 19 Aug 2008 07:25:36 MDT
Bytes: 1576
X-Original-Bytes: 1533
Xref: news.mathworks.com comp.soft-sys.matlab:486226



John D'Errico wrote:
> 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

>> I have saved a code segment as a.m, and I want to run it as part of
>> code b.m.

> a(stuff)

Not quite: you cannot pass arguments to a script file.

-- 
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end