The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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


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.

_ - - - _
/)- - _ _
/ |_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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.