Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!m7g2000prd.googlegroups.com!not-for-mail
From: Mike <sulfateion@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: newbie's question
Date: Tue, 8 Sep 2009 17:18:21 -0700 (PDT)
Organization: http://groups.google.com
Lines: 40
Message-ID: <30d585f5-cba6-4433-8721-42273334a29f@m7g2000prd.googlegroups.com>
References: <74428442-89c6-44e9-a189-eecc7157099b@d15g2000prc.googlegroups.com> 
	<h84hbk$lg1$1@news.eternal-september.org> <cbf50515-54f9-42d9-ac5e-fef0750d7eb0@h40g2000prf.googlegroups.com> 
	<h85j3o$28m$1@news.eternal-september.org>
NNTP-Posting-Host: 140.130.155.210
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1252455501 8328 127.0.0.1 (9 Sep 2009 00:18:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 9 Sep 2009 00:18:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m7g2000prd.googlegroups.com; posting-host=140.130.155.210; 
	posting-account=_SkeuAoAAAC009f9YVFWbpiyXNzGH2zw
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) 
	Gecko/20090729 Firefox/3.5.2 GTB5 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:569113


On 9月8日, 下午8時31分, dpb <n...@non.net> wrote:
> Mike wrote:
> > On Sep 8, 10:55 am, dpb <n...@non.net> wrote:
> >> Mike wrote:
> >>> Hi
> >>> I am not familiar with M file.
> >>> How to group some similar or useful M-file functions together?  In
> >>> other programming languages, users usually compile them into a
> >>> library.
> >> ML is interpreted, not compiled so don't need to do anything but put the
> >> collection of m-files in a directory in the working path.
>
> >> Once debugged, if speed is an issue, then one can create mex files which
> >> are compiled callable from ML.
>
> >> --
>
> > But, if I put them in a directory, I might have less chance to use
> > them again.
>
> ???  No clue what you're thinking in reality--wherever they are they're
> in _a_ directory.  Whether they're on the working search path is the key
> to accessibility in ML.
>
> Read the section in programming w/ m-files on how search order is
> resolved...
>
> --

thank you. In fact, I had set the Path.
Is it better to name M-file function a prefix like 'fun_XXX" to
distinguish with main M file?

Mike