%% Create a RateSpec for a Zero Curve
% Use intenvset to create a RateSpec for a zero curve.

RateSpec = intenvset('Rates', 0.05, 'StartDates',... 
'20-Jan-2000', 'EndDates', '20-Jan-2001')

%
% Now change the Compounding argument to 1 (annual).

RateSpec = intenvset(RateSpec, 'Compounding', 1)

%
% Calling intenvset with no input or output arguments displays a list of argument names and possible values.

intenvset

% Copyright 2015 The MathWorks, Inc.