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: 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.


Hongjie Wang
Hongjie Wang
Graduate Student
Department of Industrial and System Engineering
Virginia Tech, Blacksburg, VA.

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.