<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167276</link>
    <title>MATLAB Central Newsreader - Is MCR required for standalone applications?</title>
    <description>Feed for thread: Is MCR required for standalone applications?</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>Wed, 09 Apr 2008 20:37:02 -0400</pubDate>
      <title>Is MCR required for standalone applications?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167276#425720</link>
      <author>Ahmed ElDessouki</author>
      <description>Hello, &lt;br&gt;
&lt;br&gt;
I have a program written in C, and I wish to add an&lt;br&gt;
algorithm to improve its speed. I have that figured out, and&lt;br&gt;
I need to use a cumulative inverse chi squared distribution.&lt;br&gt;
My variable would be the degrees of freedom; so I would need&lt;br&gt;
to use the MatLab function chi2inv(x,y)&lt;br&gt;
&lt;br&gt;
I need to be able to pass the variable y from within my C&lt;br&gt;
code, and compile it as a standalone application. I have&lt;br&gt;
figured out that I need to use MatLab compiler (mcc). &lt;br&gt;
&lt;br&gt;
Now, my question is: Do I need to have MCR installed on the&lt;br&gt;
computer I want to use my application on? Is there any way&lt;br&gt;
around this? From my understanding is that the mcc command&lt;br&gt;
allows me to access my M files from my C code, but it then&lt;br&gt;
uses MCR to do do the computations. Is this correct? And is&lt;br&gt;
there any way to do it so that everything is done from&lt;br&gt;
within one executable? &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thank you for your time. </description>
    </item>
    <item>
      <pubDate>Wed, 09 Apr 2008 21:31:38 -0400</pubDate>
      <title>Re: Is MCR required for standalone applications?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167276#425737</link>
      <author>Peter Boettcher</author>
      <description>&quot;Ahmed ElDessouki&quot; &amp;lt;ahmed.eldessouki@gmail.com&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hello, &lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have a program written in C, and I wish to add an&lt;br&gt;
&amp;gt; algorithm to improve its speed. I have that figured out, and&lt;br&gt;
&amp;gt; I need to use a cumulative inverse chi squared distribution.&lt;br&gt;
&amp;gt; My variable would be the degrees of freedom; so I would need&lt;br&gt;
&amp;gt; to use the MatLab function chi2inv(x,y)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I need to be able to pass the variable y from within my C&lt;br&gt;
&amp;gt; code, and compile it as a standalone application. I have&lt;br&gt;
&amp;gt; figured out that I need to use MatLab compiler (mcc). &lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Now, my question is: Do I need to have MCR installed on the&lt;br&gt;
&amp;gt; computer I want to use my application on? Is there any way&lt;br&gt;
&amp;gt; around this? From my understanding is that the mcc command&lt;br&gt;
&amp;gt; allows me to access my M files from my C code, but it then&lt;br&gt;
&amp;gt; uses MCR to do do the computations. Is this correct? And is&lt;br&gt;
&amp;gt; there any way to do it so that everything is done from&lt;br&gt;
&amp;gt; within one executable? &lt;br&gt;
&lt;br&gt;
I would suggest that MATLAB is a rather large dependency to be&lt;br&gt;
introducing into your C-based project, only for one function: chi2inv.&lt;br&gt;
&lt;br&gt;
Two options:&lt;br&gt;
&lt;br&gt;
1- Implement chi2inv in C.  As you develop for now, you can use the&lt;br&gt;
MATLAB engine to use chi2inv, and have your C port ready for using on&lt;br&gt;
other machines.&lt;br&gt;
&lt;br&gt;
2- Use a different library better suited for C-based math.  I recommend&lt;br&gt;
the GNU Scientific Library:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.gnu.org/software/gsl/&quot;&gt;http://www.gnu.org/software/gsl/&lt;/a&gt;&lt;br&gt;
or here for Windows:&lt;br&gt;
&lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/gsl.htm&quot;&gt;http://gnuwin32.sourceforge.net/packages/gsl.htm&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
The documentation for the inverse chi-squared CDF is here:&lt;br&gt;
&lt;a href=&quot;http://www.gnu.org/software/gsl/manual/html_node/The-Chi_002dsquared-Distribution.html&quot;&gt;http://www.gnu.org/software/gsl/manual/html_node/The-Chi_002dsquared-Distribution.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-Peter</description>
    </item>
    <item>
      <pubDate>Thu, 10 Apr 2008 14:39:02 -0400</pubDate>
      <title>Re: Is MCR required for standalone applications?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167276#425874</link>
      <author>Ahmed ElDessouki</author>
      <description>Thanks Peter. &lt;br&gt;
I was originally looking for a C library but failed to find&lt;br&gt;
one. I will look into this one in more detail now. Your help&lt;br&gt;
is much appreciated. &lt;br&gt;
&lt;br&gt;
However, for the purpose of other projects which are more&lt;br&gt;
dependent on MatLab, what's the take on the need of MCR?&lt;br&gt;
&lt;br&gt;
Thanks, again. </description>
    </item>
    <item>
      <pubDate>Thu, 10 Apr 2008 16:38:02 -0400</pubDate>
      <title>Re: Is MCR required for standalone applications?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167276#425892</link>
      <author>Bruno Luong</author>
      <description>&quot;Ahmed ElDessouki&quot; &amp;lt;ahmed.eldessouki@gmail.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;ftl8q6$r1i$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However, for the purpose of other projects which are more&lt;br&gt;
&amp;gt; dependent on MatLab, what's the take on the need of MCR?&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
You can't escape the need of MCR.&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
  </channel>
</rss>

