Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



How to pass a function as an argument?
Posted:
Sep 23, 1996 5:36 PM


Dear Friends,
Can someone teach me how to pass a function as a parameter to another function? This can be done in C by using a pointer. Suppose I have a function g(f,a) that takes two args, one is f, which is a function. I need to update f very often to get different results. Can someone teach me do this in Matlab?
Thanks a lot.
Sincerely,
Hongjie Wang  ************************************************************************* ************************************************ Hongjie Wang Graduate Student Department of Industrial and System Engineering Virginia Tech, Blacksburg, VA. URL: http://www.math.vt.edu/people/hongjiew



