Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Interface C-function with matlab function
Posted:
Aug 5, 1996 1:16 AM
|
|
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
|
|
|
|