Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Call self-made functions without m-File in current directory
Date: Wed, 14 Oct 2009 06:11:02 +0000 (UTC)
Organization: ETH Zurich
Lines: 26
Message-ID: <hb3q1m$ibq$1@fred.mathworks.com>
References: <havdcd$kri$1@fred.mathworks.com> <havg25$k8b$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255500662 18810 172.30.248.35 (14 Oct 2009 06:11:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 14 Oct 2009 06:11:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1775783
Xref: news.mathworks.com comp.soft-sys.matlab:577132


Hi Sven,

Thanks a million, this is exactly what I was looking for.

Regards,
Jonas

"Sven" <sven.holcombe@gmail.deleteme.com> wrote in message <havg25$k8b$1@fred.mathworks.com>...
> Hi Jonas,
> Yes.
> 
> If you store your set of functions in a given directory, say "C:/myfunctions/", you can then do the following:
> addpath('C:/myfunctions/')
> 
> This will add your functions so that they are always available. I have the same setup, and I put the addpath() call into my startup script, so that my functions are always available.
> 
> Thanks,
> Sven.
> 
> "Jonas Baumann" <baumann.jonas@gmail.com> wrote in message <havdcd$kri$1@fred.mathworks.com>...
> > Over time I accumulated a few very simple tough (for me) very useful) functions that I reuse often during all kinds of tasks.
> > 
> > Up to now I simply drag & drop the required m-File into my current directory.
> > Is there a way to include my "collection" to call them directly without copying files or entering directory paths? Kind of including them into my own customized functions database.
> > 
> > Thanks for the advice