%% Convert an Existing MATLAB Structure into a Financial Structure
% This example shows how to convert an existing MATLAB structure into a financial structure.

TSpec.ValuationDate = datenum('Dec-10-1999'); 
TSpec.Maturity = datenum('Dec-10-2002'); 
TSpec.Compounding = 2; 
TSpec.Basis = 0; 
TSpec.EndMonthRule = 0; 
TimeSpec = classfin(TSpec, 'HJMTimeSpec')

% Copyright 2015 The MathWorks, Inc.