%% Get Derivatives Pricing Options
% Enable the display of additional diagnostic information that appears when executing pricing functions

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

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

Value = derivget(Options, 'Diagnostics')

% Use derivget to extract the value of ConstRate.

Value   = derivget(Options, 'ConstRate')

% If the value of 'ConstRate' is not previously set with derivset, the answer represents the default setting for 'ConstRate'.
% Find the value of 'BarrierMethod' in this Options structure.

derivget(Options ,'BarrierMethod')

% Copyright 2020 The MathWorks, Inc.