<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988</link>
    <title>MATLAB Central Newsreader - How to permanently change Matlab working</title>
    <description>Feed for thread: How to permanently change Matlab working</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 10 Jul 2007 08:39:26 -0400</pubDate>
      <title>How to permanently change Matlab working</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#382057</link>
      <author>Ali Abuelmaatti</author>
      <description>Hi All,&lt;br&gt;
&lt;br&gt;
Does any one now how to permanently change the Matlab working&lt;br&gt;
directory from the c:\Program Files\MATLAB704\work that it comes with&lt;br&gt;
as default. Please note that I do mean the working directory not the&lt;br&gt;
search path. I mean the directory that it goes to first when you go&lt;br&gt;
file&amp;gt;open or file&amp;gt;save and so on.&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
    </item>
    <item>
      <pubDate>Tue, 10 Jul 2007 08:45:22 -0400</pubDate>
      <title>Re: How to permanently change Matlab working direc</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#382060</link>
      <author>GUI</author>
      <description>Ali Abuelmaatti wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Does any one now how to permanently change the Matlab working&lt;br&gt;
&amp;gt; directory from the c:\Program Files\MATLAB704\work that it comes&lt;br&gt;
&amp;gt; with&lt;br&gt;
&amp;gt; as default. Please note that I do mean the working directory not&lt;br&gt;
&amp;gt; the&lt;br&gt;
&amp;gt; search path. I mean the directory that it goes to first when you go&lt;br&gt;
&amp;gt; file&amp;gt;open or file&amp;gt;save and so on.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks in advance.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
You can use the &quot;cd&quot; command.&lt;br&gt;
Example: &quot;cd d:\stuff\univ&quot;</description>
    </item>
    <item>
      <pubDate>Tue, 10 Jul 2007 09:14:37 -0400</pubDate>
      <title>Re: How to permanently change Matlab working direc</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#382067</link>
      <author>Jeremy Smith</author>
      <description>Try changing the &quot;Start In&quot; and the &quot;Target&quot; fields of the executable&lt;br&gt;
icon.&lt;br&gt;
&lt;br&gt;
Target: &quot;C:\Program Files\MATLAB\R2007a\bin\matlab.bat&quot; -sd&lt;br&gt;
&quot;C:\SomeDirectory\&quot;&lt;br&gt;
&lt;br&gt;
Start In: &quot;C:\Some Directory\&quot;&lt;br&gt;
&lt;br&gt;
The &quot;Target&quot; field is probably more important.&lt;br&gt;
&lt;br&gt;
Jeremy</description>
    </item>
    <item>
      <pubDate>Tue, 10 Jul 2007 13:29:39 -0400</pubDate>
      <title>Re: How to permanently change Matlab working directory (not search path)</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#382073</link>
      <author> Eric C</author>
      <description>On Jul 10, 8:39 am, &quot;Ali Abuelmaatti&quot; &amp;lt;ali.abuelmaa...@elec.gla.ac.uk&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; Hi All,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Does any one now how to permanently change the Matlab working&lt;br&gt;
&amp;gt; directory from the c:\Program Files\MATLAB704\work that it comes with&lt;br&gt;
&amp;gt; as default. Please note that I do mean the working directory not the&lt;br&gt;
&amp;gt; search path. I mean the directory that it goes to first when you go&lt;br&gt;
&amp;gt; file&amp;gt;open or file&amp;gt;save and so on.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks in advance.&lt;br&gt;
&lt;br&gt;
I use the startup.m file. Look up the documentation from matlab using&lt;br&gt;
&lt;br&gt;
doc startup&lt;br&gt;
&lt;br&gt;
Basically you create an m file called startup.m and place it in the&lt;br&gt;
correct path. Anytime Matlab is started the file will execute. I also&lt;br&gt;
use it to do things like change the line color ordering, place grids&lt;br&gt;
on the plots, suppress certain errors, etc. Use the 'cd' command (I&lt;br&gt;
use the functional version) to change the directory to what you want&lt;br&gt;
whenever Matlab is started.</description>
    </item>
    <item>
      <pubDate>Wed, 14 Nov 2007 17:58:26 -0500</pubDate>
      <title>Re: How to permanently change Matlab working</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#401276</link>
      <author>C H</author>
      <description>If you still can't get it to work and it gives you a &quot;too&lt;br&gt;
many arguments&quot; error (for example, &quot;My Documents&quot;), try this. &lt;br&gt;
&lt;br&gt;
Type in:&lt;br&gt;
&lt;br&gt;
d:\student\MYDOCU~1\HOMEWO~1&lt;br&gt;
&lt;br&gt;
Where the actual path would be d:\student\My Documents\Homework&lt;br&gt;
&lt;br&gt;
Basically, if the string is greater than 8 characters, it'll&lt;br&gt;
tell you &quot;too many arguments&quot;, so just take the first six&lt;br&gt;
letters (exclude spaces) and then a ~1 after that. Should&lt;br&gt;
work as long as there's not another folder with the same&lt;br&gt;
starting six characters.</description>
    </item>
    <item>
      <pubDate>Wed, 14 Nov 2007 18:07:34 -0500</pubDate>
      <title>Re: How to permanently change Matlab working</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#401280</link>
      <author>C H</author>
      <description>&quot;C H&quot; &amp;lt;fuckthemounties@canadasucks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fhfd02$65v$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; If you still can't get it to work and it gives you a &quot;too&lt;br&gt;
&amp;gt; many arguments&quot; error (for example, &quot;My Documents&quot;), try&lt;br&gt;
this. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Type in:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; d:\student\MYDOCU~1\HOMEWO~1&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Where the actual path would be d:\student\My&lt;br&gt;
Documents\Homework&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Basically, if the string is greater than 8 characters, it'll&lt;br&gt;
&amp;gt; tell you &quot;too many arguments&quot;, so just take the first six&lt;br&gt;
&amp;gt; letters (exclude spaces) and then a ~1 after that. Should&lt;br&gt;
&amp;gt; work as long as there's not another folder with the same&lt;br&gt;
&amp;gt; starting six characters.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Additionally: if there are 2 or more folders starting with&lt;br&gt;
the same six characters (for example, I had &quot;fall 2007&quot;,&lt;br&gt;
&quot;fall 2006&quot;, and &quot;fall 2005&quot;), then the number after the ~&lt;br&gt;
would be the number of folder in alphanumerical order. So,&lt;br&gt;
in order the folders would be sorted Fall 2005, Fall 2006,&lt;br&gt;
and Fall 2007. Fall 2007 would be the third folder starting&lt;br&gt;
with &quot;FALL20&quot;, so the command would be &quot;FALL20~3&quot;.</description>
    </item>
    <item>
      <pubDate>Wed, 14 Nov 2007 18:14:37 -0500</pubDate>
      <title>Re: How to permanently change Matlab working</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#401281</link>
      <author>C H</author>
      <description>Found a MUCH easier way in Windows XP - Just get the&lt;br&gt;
directory and change all shortcut icons you would click on&lt;br&gt;
to the path you want for &quot;start in&quot;.</description>
    </item>
    <item>
      <pubDate>Sat, 11 Oct 2008 20:54:01 -0400</pubDate>
      <title>Re: How to permanently change Matlab working</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151988#604793</link>
      <author>Steven </author>
      <description>It becomes much easier than this: I hate to startup in my documents to change the path use this command &lt;br&gt;
&lt;br&gt;
userpath('C:\MATLAB\work')&lt;br&gt;
&lt;br&gt;
you only have to do this once, I think on older versions this doesn't works so you need to edit pathdef.m</description>
    </item>
  </channel>
</rss>

