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: How to pass a function as an argument?
Replies: 4   Last Post: Oct 1, 1996 9:59 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Hongjie Wang

Posts: 9
Registered: 12/7/04
How to pass a function as an argument?
Posted: Sep 23, 1996 5:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



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





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.