This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Get derivatives pricing options


Value = derivget(Options,'Parameter')



Existing options specification structure, probably created from previous call to derivset.


Must be 'Diagnostics', 'Warnings', 'ConstRate', or 'BarrierMethod'. It is sufficient to type only the leading characters that uniquely identify the parameter. Case is ignored for parameter names.


Value = derivget(Options,'Parameter') extracts the value of the named parameter from the derivative options structure Options. Parameter values can be 'off' or 'on', except for 'BarrierMethod', which can be 'unenhanced' or 'interp'. Specifying 'unenhanced' uses no correction calculation. Specifying 'interp' uses an enhanced valuation interpolating between nodes on barrier boundaries.


Example 1. Create an Options structure with the value of Diagnostics set to 'on'.

Options = derivset('Diagnostics','on')

Use derivget to extract the value of Diagnostics from the Options structure.

Value = derivget(Options, 'Diagnostics')
Value =


Example 2. Use derivget to extract the value of ConstRate.

Value   = derivget(Options, 'ConstRate')
Value =


Because the value of 'ConstRate' was not previously set with derivset, the answer represents the default setting for 'ConstRate'.

Example 3. Find the value of 'BarrierMethod' in this structure.

derivget(Options ,'BarrierMethod')
ans =


Introduced before R2006a

Was this topic helpful?