Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Interface C-function with matlab function
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jose Unpingco

Posts: 22
Registered: 12/7/04
Interface C-function with matlab function
Posted: Aug 5, 1996 1:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I've found some C code which implements a special kind of optimization
algorithm. I'd like to interface it with matlab similar to the fmin
function in the optimization toolbox. This would entail constructing
a matlab function which could be evaluated from a C-program.

The C-program expects a pointer to a function. How can I set up the
matlab function to respond to this pointer?

In fmin, this is accomplished by using an eval(evalstr) where evalstr
is the name of the function patched together from the inputs. I'd
like to do something similar to this as the function called from the
C-program has many parameters.

Any help appreciated.

thanks.
--
_ - - - _
/)- - _ _
/ |_o_/ - _
\__ - _
\ \_ - _ _ _ _ _ _ _ _ _
_
__ __ _ _ -
Jose Unpingco Mail Code ECE 0407
HM# (619) 622-1243 WK# (619) 534-5809





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.