%% Compute the VolSpec Structure to Specify an Exponential Volatility Model for HJMTree
% This example shows how to compute the VolSpec structure to specify the volatility model for hjmtree when volatility is two-factor exponential and constant.

VolSpec = hjmvolspec('Exponential', 0.1, 1, 'Constant', 0.2)

% Copyright 2015 The MathWorks, Inc.