%% Extract Values from a RateSpec
% Use intenvset to set the interest-rate structure.

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

% Use intenvget to extract values from the RateSpec.

[R, RateSpec] = intenvget(RateSpec,'Rates')

% Copyright 2018 The MathWorks, Inc.