<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367</link>
    <title>MATLAB Central Newsreader - Create setup m-file</title>
    <description>Feed for thread: Create setup m-file</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>Thu, 30 Jul 2009 14:00:19 -0400</pubDate>
      <title>Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669444</link>
      <author>Samb1985 </author>
      <description>I would like to create a m-file (setup.m), that will be located in the default matlab directory.&lt;br&gt;
When I execute &quot;setup&quot; it must find on the pc a folder &quot;MyApp&quot; 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?.&lt;br&gt;
&lt;br&gt;
It is possible ? how ?&lt;br&gt;
&lt;br&gt;
Thanks in advance. </description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 00:34:03 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669601</link>
      <author>Matt Fig</author>
      <description>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&amp;gt;Set Path </description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 01:37:03 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669612</link>
      <author>TideMan</author>
      <description>On Jul 31, 12:34&#160;pm, &quot;Matt Fig&quot; &amp;lt;spama...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Why not just add your folder to the path once and for all? &#160;There is no need to do it every time. &#160;Go to File&amp;gt;Set Path&lt;br&gt;
&lt;br&gt;
Matt has answered one aspect of your post, but another is that if you&lt;br&gt;
create a file called startup.m and put it in the Matlab work&lt;br&gt;
directory, that file will be executed everytime you run Matlab.&lt;br&gt;
I have lots of stuff in my startup.m, including: cd to my Matlab&lt;br&gt;
directory, default plotting options, setting random seeds, warning&lt;br&gt;
off's, etc.</description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 07:56:03 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669657</link>
      <author>Samb1985 </author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;c6abdb05-a995-4840-b8a2-f42004658646@x25g2000prf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jul 31, 12:34 pm, &quot;Matt Fig&quot; &amp;lt;spama...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; 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&amp;gt;Set Path&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Matt has answered one aspect of your post, but another is that if you&lt;br&gt;
&amp;gt; create a file called startup.m and put it in the Matlab work&lt;br&gt;
&amp;gt; directory, that file will be executed everytime you run Matlab.&lt;br&gt;
&amp;gt; I have lots of stuff in my startup.m, including: cd to my Matlab&lt;br&gt;
&amp;gt; directory, default plotting options, setting random seeds, warning&lt;br&gt;
&amp;gt; off's, etc.&lt;br&gt;
&lt;br&gt;
I need to use the application in different Pc, so in different directory in each PC.&lt;br&gt;
So I'm searching for a method that allow me to add the paths of application with a single command. &lt;br&gt;
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.</description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 09:17:03 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669672</link>
      <author>us</author>
      <description>&quot;Samb1985 &quot; &amp;lt;porro99@virgilio.it&amp;gt; wrote in message &amp;lt;h4u82j$mcj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;c6abdb05-a995-4840-b8a2-f42004658646@x25g2000prf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On Jul 31, 12:34 pm, &quot;Matt Fig&quot; &amp;lt;spama...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 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&amp;gt;Set Path&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Matt has answered one aspect of your post, but another is that if you&lt;br&gt;
&amp;gt; &amp;gt; create a file called startup.m and put it in the Matlab work&lt;br&gt;
&amp;gt; &amp;gt; directory, that file will be executed everytime you run Matlab.&lt;br&gt;
&amp;gt; &amp;gt; I have lots of stuff in my startup.m, including: cd to my Matlab&lt;br&gt;
&amp;gt; &amp;gt; directory, default plotting options, setting random seeds, warning&lt;br&gt;
&amp;gt; &amp;gt; off's, etc.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I need to use the application in different Pc, so in different directory in each PC.&lt;br&gt;
&amp;gt; So I'm searching for a method that allow me to add the paths of application with a single command. &lt;br&gt;
&amp;gt; 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.&lt;br&gt;
&lt;br&gt;
a hint:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;help addpath;     % &amp;lt;- and siblings...&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 21:14:02 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669882</link>
      <author>Samb1985 </author>
      <description>&amp;gt; a hint:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;      help addpath;     % &amp;lt;- and siblings...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
I see the function addpath but i need to know the path of the folder. First i need to search the folder on the PC.</description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 22:04:40 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669888</link>
      <author>TideMan</author>
      <description>On Aug 1, 9:14&#160;am, &quot;Samb1985 &quot; &amp;lt;porr...@virgilio.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; a hint:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &#160; &#160; &#160;help addpath; &#160; &#160; % &amp;lt;- and siblings...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; us&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I see the function addpath but i need to know the path of the folder. First i need to search the folder on the PC.&lt;br&gt;
&lt;br&gt;
So, you've put MyApps in some obscure place on your PC, and now you&lt;br&gt;
can't find it.&lt;br&gt;
Why is this a Matlab problem?&lt;br&gt;
&lt;br&gt;
A better strategy would be to note where you put MyApps, and use&lt;br&gt;
addpath to point Matlab to it.</description>
    </item>
    <item>
      <pubDate>Fri, 31 Jul 2009 23:15:05 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669893</link>
      <author>us</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;d401755a-ef07-4be0-bd27-a583cb6d146c@13g2000prl.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Aug 1, 9:14?am, &quot;Samb1985 &quot; &amp;lt;porr...@virgilio.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; a hint:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ? ? ?help addpath; ? ? % &amp;lt;- and siblings...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; us&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I see the function addpath but i need to know the path of the folder. First i need to search the folder on the PC.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; So, you've put MyApps in some obscure place on your PC, and now you&lt;br&gt;
&amp;gt; can't find it.&lt;br&gt;
&amp;gt; Why is this a Matlab problem?&lt;br&gt;
&lt;br&gt;
well, derek, we both realize: its an early sign of an insidious, neurodegenerative disease (aka dementia) - and, therefore, CSSMers have to be particularly patient and forgiving...&lt;br&gt;
&lt;br&gt;
urs</description>
    </item>
    <item>
      <pubDate>Sat, 01 Aug 2009 01:56:52 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669903</link>
      <author>TideMan</author>
      <description>On Aug 1, 11:15&#160;am, &quot;us &quot; &amp;lt;u...@neurol.unizh.ch&amp;gt; wrote:&lt;br&gt;
&amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;d401755a-ef07-4be0-bd27-a583cb6d1...@13g2000prl.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On Aug 1, 9:14?am, &quot;Samb1985 &quot; &amp;lt;porr...@virgilio.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; a hint:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ? ? ?help addpath; ? ? % &amp;lt;- and siblings...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; us&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I see the function addpath but i need to know the path of the folder. First i need to search the folder on the PC.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; So, you've put MyApps in some obscure place on your PC, and now you&lt;br&gt;
&amp;gt; &amp;gt; can't find it.&lt;br&gt;
&amp;gt; &amp;gt; Why is this a Matlab problem?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; well, derek, we both realize: its an early sign of an insidious, neurodegenerative disease (aka dementia) - and, therefore, CSSMers have to be particularly patient and forgiving...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; urs&lt;br&gt;
&lt;br&gt;
You mean like OldTimers' disease, urs?</description>
    </item>
    <item>
      <pubDate>Sat, 01 Aug 2009 02:32:43 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669904</link>
      <author>Jonas </author>
      <description>&quot;Samb1985 &quot; &amp;lt;porro99@virgilio.it&amp;gt; wrote in message &amp;lt;h4s91j$p6e$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I would like to create a m-file (setup.m), that will be located in the default matlab directory.&lt;br&gt;
&amp;gt; When I execute &quot;setup&quot; it must find on the pc a folder &quot;MyApp&quot; 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?.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It is possible ? how ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks in advance. &lt;br&gt;
&lt;br&gt;
You can define an environment variable on your system that contains the path to MyApp. Then, you edit startup.m such that it recursively runs addpath.m on that directory.&lt;br&gt;
&lt;br&gt;
Alternatively, you can use userpath.m to change the startup directory.</description>
    </item>
    <item>
      <pubDate>Sat, 01 Aug 2009 11:08:04 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#669978</link>
      <author>Rune Allnor</author>
      <description>On 30 Jul, 16:00, &quot;Samb1985 &quot; &amp;lt;porr...@virgilio.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; I would like to create a m-file (setup.m), that will be located in the default matlab directory.&lt;br&gt;
&amp;gt; When I execute &quot;setup&quot; it must find on the pc a folder &quot;MyApp&quot; 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?.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It is possible ? how ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks in advance.&lt;br&gt;
&lt;br&gt;
This is what STARTUP.M is supposed to do.&lt;br&gt;
&lt;br&gt;
doc startup&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Sun, 02 Aug 2009 19:33:03 -0400</pubDate>
      <title>Re: Create setup m-file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/257367#670116</link>
      <author>Samb1985 </author>
      <description>Rune Allnor &amp;lt;allnor@tele.ntnu.no&amp;gt; wrote in message &amp;lt;7623506d-1bae-4967-8ed5-a62948e87521@f37g2000yqn.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On 30 Jul, 16:00, &quot;Samb1985 &quot; &amp;lt;porr...@virgilio.it&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; I would like to create a m-file (setup.m), that will be located in the default matlab directory.&lt;br&gt;
&amp;gt; &amp;gt; When I execute &quot;setup&quot; it must find on the pc a folder &quot;MyApp&quot; 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?.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; It is possible ? how ?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thanks in advance.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This is what STARTUP.M is supposed to do.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; doc startup&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Rune&lt;br&gt;
&lt;br&gt;
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.</description>
    </item>
  </channel>
</rss>

