Financial Derivatives Toolbox | ![]() ![]() |
Set or modify derivatives pricing options
Syntax
Options = derivset(Options, 'Parameter1', Value1, 'Parameter2', Value2,'Parameter3', Value3) Options = derivset(OldOptions, NewOptions) Options = derivset derivset
Arguments
Description
Options = derivset(Options, 'Parameter1', Value1, 'Parameter2',
Value2,'Parameter3', Value3)
creates a derivatives pricing options structure Options
in which the named parameters have the specified values. Any unspecified value is set to the default value for that parameter when Options
is passed to the pricing function. It is sufficient to type only the leading characters that uniquely identify the parameter name. Case is also ignored for parameter names.
If the optional input argument Options
is specified, derivset
modifies an existing pricing options structure by changing the named parameters to the specified values.
Note For parameter values, correct case and the complete string are required; if an invalid string is provided, the default is used. |
Options = derivset(OldOptions, NewOptions)
combines an existing options structure OldOptions
with a new options structure NewOptions
. Any parameters in NewOptions
with nonempty values overwrite the corresponding old parameters in OldOptions
.
Options = derivset
creates an options structure Options
whose fields are set to the default values.
derivset
with no input or output arguments displays all parameter names and information about their possible values.
Examples
enables the display of additional diagnostic information that appears when executing pricing functions.
changes the ConstRate
parameter in the existing Options
structure so that the assumption of constant rates between tree nodes no longer applies.
With no input or output arguments derivset
displays all parameter names and information about their possible values.
See Also
![]() | derivget | disc2rate | ![]() |