<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154064</link>
    <title>MATLAB Central Newsreader - calling functions</title>
    <description>Feed for thread: calling functions</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, 07 Aug 2007 10:05:23 -0400</pubDate>
      <title>calling functions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154064#386547</link>
      <author>Richard Murray</author>
      <description>Hi Everyone,&lt;br&gt;
&lt;br&gt;
I'm trying to call a function that I've defined in one&lt;br&gt;
m-file for use in another m file. Does anyone know if the&lt;br&gt;
two files have to be in the same directory before I can do this?&lt;br&gt;
&lt;br&gt;
R</description>
    </item>
    <item>
      <pubDate>Tue, 07 Aug 2007 10:13:29 -0400</pubDate>
      <title>Re: calling functions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154064#386549</link>
      <author>Markus Buehren</author>
      <description>&lt;br&gt;
&amp;gt; I'm trying to call a function that I've defined in one&lt;br&gt;
&amp;gt; m-file for use in another m file. Does anyone know if the&lt;br&gt;
&amp;gt; two files have to be in the same directory before I can do&lt;br&gt;
this?&lt;br&gt;
&lt;br&gt;
1. Both functions must be on the Matlab path.&lt;br&gt;
&lt;br&gt;
2. You can only call the main function defined in another&lt;br&gt;
m-file, not subfunctions of that m-file.&lt;br&gt;
&lt;br&gt;
Markus</description>
    </item>
    <item>
      <pubDate>Tue, 07 Aug 2007 15:30:12 -0400</pubDate>
      <title>Re: calling functions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154064#386611</link>
      <author>someone </author>
      <description>&quot;Markus Buehren&quot; &amp;lt;mb_matlabREMOVE@gmxTHIS.de&amp;gt; wrote in &lt;br&gt;
message &amp;lt;f99gk9$d8h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'm trying to call a function that I've defined in one&lt;br&gt;
&amp;gt; &amp;gt; m-file for use in another m file. Does anyone know if &lt;br&gt;
the&lt;br&gt;
&amp;gt; &amp;gt; two files have to be in the same directory before I &lt;br&gt;
can do&lt;br&gt;
&amp;gt; this?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1. Both functions must be on the Matlab path.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2. You can only call the main function defined in another&lt;br&gt;
&amp;gt; m-file, not subfunctions of that m-file.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Markus&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I believe it is, in fact, possible to call a subfunction &lt;br&gt;
from another m-file using function handles.  Search the &lt;br&gt;
MATLAB help for &quot;function_handle&quot; (@).</description>
    </item>
  </channel>
</rss>

