%% Create Two Cash Flow Instruments
% Create a new instrument variable with the following information:

CFlowAmounts =[5 NaN 5.5 105; 5 0 6 105];
CFlowDates = [732678, NaN, 733408,733774; 
              732678, 733034, 733408, 734774];
Settle= 'Jan-1-2015';
Basis = 1;

%
% Create the new cash flow instruments.

InstSet = instcf(CFlowAmounts,CFlowDates,Settle,Basis)

%
% Display the cash flow instruments.

instdisp(InstSet)

% Copyright 2020 The MathWorks, Inc.