<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165589</link>
    <title>MATLAB Central Newsreader - Minimize a c++ function with matlab</title>
    <description>Feed for thread: Minimize a c++ function with matlab</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, 13 Mar 2008 12:04:13 -0400</pubDate>
      <title>Minimize a c++ function with matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/165589#420654</link>
      <author>David Doria</author>
      <description>Recently I've been looking into the matlab engine for&lt;br&gt;
calling matlab from c++. I would like to utilize fminunc()&lt;br&gt;
from a c++ program.  Say I have a c++ function:&lt;br&gt;
&lt;br&gt;
int MyFunc(int Param)&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;return pow(Param,2);&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Is there anyway to pass this function to fminunc()?? Seems&lt;br&gt;
like a reasonable thing to want to do, but from what I know&lt;br&gt;
about the engine I have no idea how to approach it.&lt;br&gt;
&lt;br&gt;
Any tips would be great!&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
David</description>
    </item>
  </channel>
</rss>

