Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!x25g2000prf.googlegroups.com!not-for-mail
From: TideMan <mulgor@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Create setup m-file
Date: Thu, 30 Jul 2009 18:37:03 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <c6abdb05-a995-4840-b8a2-f42004658646@x25g2000prf.googlegroups.com>
References: <h4s91j$p6e$1@fred.mathworks.com> <h4te5r$57b$1@fred.mathworks.com>
NNTP-Posting-Host: 202.78.152.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1249004223 4368 127.0.0.1 (31 Jul 2009 01:37:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 31 Jul 2009 01:37:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x25g2000prf.googlegroups.com; posting-host=202.78.152.105; 
	posting-account=qPexFwkAAABOl8VUndE6Jm-9Z5z_fSpR
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bc1
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.12) 
	Gecko/2009070611 Firefox/3.0.12,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:559798


On Jul 31, 12:34 pm, "Matt Fig" <spama...@yahoo.com> wrote:
> Why not just add your folder to the path once and for all?  There is no need to do it every time.  Go to File>Set Path

Matt has answered one aspect of your post, but another is that if you
create a file called startup.m and put it in the Matlab work
directory, that file will be executed everytime you run Matlab.
I have lots of stuff in my startup.m, including: cd to my Matlab
directory, default plotting options, setting random seeds, warning
off's, etc.