Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Create setup m-file
Date: Fri, 31 Jul 2009 09:17:03 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 21
Message-ID: <h4ucqf$jo8$1@fred.mathworks.com>
References: <h4s91j$p6e$1@fred.mathworks.com> <h4te5r$57b$1@fred.mathworks.com> <c6abdb05-a995-4840-b8a2-f42004658646@x25g2000prf.googlegroups.com> <h4u82j$mcj$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249031823 20232 172.30.248.38 (31 Jul 2009 09:17:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 31 Jul 2009 09:17:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:559859


"Samb1985 " <porro99@virgilio.it> wrote in message <h4u82j$mcj$1@fred.mathworks.com>...
> TideMan <mulgor@gmail.com> wrote in message <c6abdb05-a995-4840-b8a2-f42004658646@x25g2000prf.googlegroups.com>...
> > 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.
> 
> I need to use the application in different Pc, so in different directory in each PC.
> So I'm searching for a method that allow me to add the paths of application with a single command. 
> Otherwise i need to create different startup.m or pathdef.m for the different PC, that is the thing that I would like to automate.

a hint:

     help addpath;     % <- and siblings...

us