<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264</link>
    <title>MATLAB Central Newsreader - newbie's question</title>
    <description>Feed for thread: newbie's question</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, 08 Sep 2009 02:18:27 -0400</pubDate>
      <title>newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678635</link>
      <author>Mike</author>
      <description>Hi&lt;br&gt;
&lt;br&gt;
I am not familiar with M file.&lt;br&gt;
How to group some similar or useful M-file functions together?  In&lt;br&gt;
other programming languages, users usually compile them into a&lt;br&gt;
library.&lt;br&gt;
&lt;br&gt;
Any suggestions are very welcome.  Thank you very much in advance.&lt;br&gt;
&lt;br&gt;
Mike</description>
    </item>
    <item>
      <pubDate>Tue, 08 Sep 2009 02:55:44 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678638</link>
      <author>dpb</author>
      <description>Mike wrote:&lt;br&gt;
&amp;gt; Hi&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am not familiar with M file.&lt;br&gt;
&amp;gt; How to group some similar or useful M-file functions together?  In&lt;br&gt;
&amp;gt; other programming languages, users usually compile them into a&lt;br&gt;
&amp;gt; library.&lt;br&gt;
&lt;br&gt;
ML is interpreted, not compiled so don't need to do anything but put the &lt;br&gt;
collection of m-files in a directory in the working path.&lt;br&gt;
&lt;br&gt;
Once debugged, if speed is an issue, then one can create mex files which &lt;br&gt;
are compiled callable from ML.&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Tue, 08 Sep 2009 04:53:53 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678649</link>
      <author>Mike</author>
      <description>On Sep 8, 10:55&#160;am, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt; Hi&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I am not familiar with M file.&lt;br&gt;
&amp;gt; &amp;gt; How to group some similar or useful M-file functions together? &#160;In&lt;br&gt;
&amp;gt; &amp;gt; other programming languages, users usually compile them into a&lt;br&gt;
&amp;gt; &amp;gt; library.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ML is interpreted, not compiled so don't need to do anything but put the&lt;br&gt;
&amp;gt; collection of m-files in a directory in the working path.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Once debugged, if speed is an issue, then one can create mex files which&lt;br&gt;
&amp;gt; are compiled callable from ML.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&lt;br&gt;
But, if I put them in a directory, I might have less chance to use&lt;br&gt;
them again.&lt;br&gt;
&lt;br&gt;
Mike</description>
    </item>
    <item>
      <pubDate>Tue, 08 Sep 2009 06:54:02 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678658</link>
      <author>Bruno Luong</author>
      <description>Mike &amp;lt;sulfateion@gmail.com&amp;gt; wrote in message &amp;lt;cbf50515-54f9-42d9-ac5e-fef0750d7eb0@h40g2000prf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Sep 8, 10:55?am, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; But, if I put them in a directory, I might have less chance to use&lt;br&gt;
&amp;gt; them again.&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
You need to add the directory in the search path in order to use them everywhere.&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Tue, 08 Sep 2009 12:31:49 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678712</link>
      <author>dpb</author>
      <description>Mike wrote:&lt;br&gt;
&amp;gt; On Sep 8, 10:55 am, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt; Mike wrote:&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Hi&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; I am not familiar with M file.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; How to group some similar or useful M-file functions together?  In&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; other programming languages, users usually compile them into a&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; library.&lt;br&gt;
&amp;gt;&amp;gt; ML is interpreted, not compiled so don't need to do anything but put the&lt;br&gt;
&amp;gt;&amp;gt; collection of m-files in a directory in the working path.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Once debugged, if speed is an issue, then one can create mex files which&lt;br&gt;
&amp;gt;&amp;gt; are compiled callable from ML.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; But, if I put them in a directory, I might have less chance to use&lt;br&gt;
&amp;gt; them again.&lt;br&gt;
&lt;br&gt;
???  No clue what you're thinking in reality--wherever they are they're &lt;br&gt;
in _a_ directory.  Whether they're on the working search path is the key &lt;br&gt;
to accessibility in ML.&lt;br&gt;
&lt;br&gt;
Read the section in programming w/ m-files on how search order is &lt;br&gt;
resolved...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Wed, 09 Sep 2009 00:18:21 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678871</link>
      <author>Mike</author>
      <description>On 9&#26376;8&#26085;, &#19979;&#21320;8&#26178;31&#20998;, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt; On Sep 8, 10:55 am, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; Hi&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; I am not familiar with M file.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; How to group some similar or useful M-file functions together? &#160;In&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; other programming languages, users usually compile them into a&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&amp;gt; library.&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; ML is interpreted, not compiled so don't need to do anything but put the&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; collection of m-files in a directory in the working path.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Once debugged, if speed is an issue, then one can create mex files which&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; are compiled callable from ML.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; But, if I put them in a directory, I might have less chance to use&lt;br&gt;
&amp;gt; &amp;gt; them again.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ??? &#160;No clue what you're thinking in reality--wherever they are they're&lt;br&gt;
&amp;gt; in _a_ directory. &#160;Whether they're on the working search path is the key&lt;br&gt;
&amp;gt; to accessibility in ML.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Read the section in programming w/ m-files on how search order is&lt;br&gt;
&amp;gt; resolved...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&lt;br&gt;
thank you. In fact, I had set the Path.&lt;br&gt;
Is it better to name M-file function a prefix like 'fun_XXX&quot; to&lt;br&gt;
distinguish with main M file?&lt;br&gt;
&lt;br&gt;
Mike</description>
    </item>
    <item>
      <pubDate>Wed, 09 Sep 2009 00:41:03 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678873</link>
      <author>someone </author>
      <description>&lt;br&gt;
&lt;br&gt;
Mike &amp;lt;sulfateion@gmail.com&amp;gt; wrote in message &amp;lt;30d585f5-cba6-4433-8721-42273334a29f@m7g2000prd.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On 9&amp;#26376;8&amp;#26085;, &amp;#19979;&amp;#21320;8&amp;#26178;31&amp;#20998;, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; On Sep 8, 10:55 am, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; Hi&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; I am not familiar with M file.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; How to group some similar or useful M-file functions together? ?In&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; other programming languages, users usually compile them into a&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; library.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; ML is interpreted, not compiled so don't need to do anything but put the&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; collection of m-files in a directory in the working path.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Once debugged, if speed is an issue, then one can create mex files which&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; are compiled callable from ML.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; But, if I put them in a directory, I might have less chance to use&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; them again.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; ??? ?No clue what you're thinking in reality--wherever they are they're&lt;br&gt;
&amp;gt; &amp;gt; in _a_ directory. ?Whether they're on the working search path is the key&lt;br&gt;
&amp;gt; &amp;gt; to accessibility in ML.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Read the section in programming w/ m-files on how search order is&lt;br&gt;
&amp;gt; &amp;gt; resolved...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you. In fact, I had set the Path.&lt;br&gt;
&amp;gt; Is it better to name M-file function a prefix like 'fun_XXX&quot; to&lt;br&gt;
&amp;gt; distinguish with main M file?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Mike&lt;br&gt;
&lt;br&gt;
You can name m-files however you like.&lt;br&gt;
If fun_XXX makes sense to you, go for it!&lt;br&gt;
&lt;br&gt;
However, if you name the function m-file fun_XXX, then&lt;br&gt;
the first line of the function m-file should be something like:&lt;br&gt;
&lt;br&gt;
function [x,y,z] = fun_XXX(a,b,c)</description>
    </item>
    <item>
      <pubDate>Wed, 09 Sep 2009 01:50:29 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678879</link>
      <author>Mike</author>
      <description>&quot;someone&quot; &amp;lt;someone@somewhere.net&amp;gt; wrote in message &amp;lt;h86tiv$o6m$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Mike &amp;lt;sulfateion@gmail.com&amp;gt; wrote in message &amp;lt;30d585f5-cba6-4433-8721-42273334a29f@m7g2000prd.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On 9&amp;#26376;8&amp;#26085;, &amp;#19979;&amp;#21320;8&amp;#26178;31&amp;#20998;, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; On Sep 8, 10:55 am, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt; Mike wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; Hi&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; I am not familiar with M file.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; How to group some similar or useful M-file functions together? ?In&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; other programming languages, users usually compile them into a&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt;&amp;gt; library.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt; ML is interpreted, not compiled so don't need to do anything but put the&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt; collection of m-files in a directory in the working path.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt; Once debugged, if speed is an issue, then one can create mex files which&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt; are compiled callable from ML.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; But, if I put them in a directory, I might have less chance to use&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; them again.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ??? ?No clue what you're thinking in reality--wherever they are they're&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; in _a_ directory. ?Whether they're on the working search path is the key&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; to accessibility in ML.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Read the section in programming w/ m-files on how search order is&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; resolved...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; thank you. In fact, I had set the Path.&lt;br&gt;
&amp;gt; &amp;gt; Is it better to name M-file function a prefix like 'fun_XXX&quot; to&lt;br&gt;
&amp;gt; &amp;gt; distinguish with main M file?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Mike&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can name m-files however you like.&lt;br&gt;
&amp;gt; If fun_XXX makes sense to you, go for it!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However, if you name the function m-file fun_XXX, then&lt;br&gt;
&amp;gt; the first line of the function m-file should be something like:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; function [x,y,z] = fun_XXX(a,b,c)&lt;br&gt;
thanks.  &lt;br&gt;
Mike</description>
    </item>
    <item>
      <pubDate>Wed, 09 Sep 2009 02:06:00 -0400</pubDate>
      <title>Re: newbie's question</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/260264#678884</link>
      <author>dpb</author>
      <description>Mike wrote:&lt;br&gt;
...&lt;br&gt;
&amp;gt; Is it better to name M-file function a prefix like 'fun_XXX&quot; to&lt;br&gt;
&amp;gt; distinguish with main M file?&lt;br&gt;
&lt;br&gt;
Read the 'Function Names' section on m-file programming in the &quot;Using &lt;br&gt;
Matlab/Programming&quot; chapter...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
  </channel>
</rss>

