Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: "Change directory" dialog box
Date: Wed, 7 Oct 2009 15:57:02 +0000 (UTC)
Organization: Universit&#228;t Bremen
Lines: 8
Message-ID: <haidoe$mjn$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 1254931022 23159 172.30.248.38 (7 Oct 2009 15:57:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 Oct 2009 15:57:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1426778
Xref: news.mathworks.com comp.soft-sys.matlab:575651


Hello,

is there any way (other than adding a line of code in every file) to set the MATLAB preferences such that the default behavior for running m-files is to change the current directory to the directory where the file is located ?

The dialog that appear has the options "Change Directory", "Add to Path", "Cancel", and "Help".

Thanks,
Andr