Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Create setup m-file
Date: Sun, 2 Aug 2009 19:33:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h54plf$o6i$1@fred.mathworks.com>
References: <h4s91j$p6e$1@fred.mathworks.com> <7623506d-1bae-4967-8ed5-a62948e87521@f37g2000yqn.googlegroups.com>
Reply-To: <HIDDEN>
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 1249241583 24786 172.30.248.37 (2 Aug 2009 19:33:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 2 Aug 2009 19:33:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1917368
Xref: news.mathworks.com comp.soft-sys.matlab:560303


Rune Allnor <allnor@tele.ntnu.no> wrote in message <7623506d-1bae-4967-8ed5-a62948e87521@f37g2000yqn.googlegroups.com>...
> On 30 Jul, 16:00, "Samb1985 " <porr...@virgilio.it> wrote:
> > I would like to create a m-file (setup.m), that will be located in the default matlab directory.
> > When I execute "setup" it must find on the pc a folder "MyApp" and add its path with all its subfolders to matlab search path, so I can run my matlab application without going on File - Set Path men?.
> >
> > It is possible ? how ?
> >
> > Thanks in advance.
> 
> This is what STARTUP.M is supposed to do.
> 
> doc startup
> 
> Rune

If I use startup i need to know the path where MyApp is located. If i don't know it and i want to search and add it automatically ? i think it is impossible, so i will search for another solution.