%% Create a Financial Structure
% This example shows how to create a financial structure HJMTimeSpec and complete its fields. (Typically, the function hjmtimespec is used to create HJMTimeSpec structures).

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

% Copyright 2015 The MathWorks, Inc.