Mathematics Previous page   Next Page

Parameterizing Functions Called by Function Functions

At times, you might want use a function function that calls a function with several parameters. For example, if you want to use fzero to find zeros of the cubic polynomial x3 + bx + c for different values of the coefficients b and c, you would like the function that computes the polynomial to accept the additional parameters b and c. When you invoke fzero, you must also provide values for these additional parameters to the polynomial function. This section describes two ways to do this:


Previous page  Example: Double Integration Providing Parameter Values Using Nested Functions Next page

© 1994-2005 The MathWorks, Inc.