%% Compute the Prepayment and Mortality Rates
% This example shows how to compute the prepayment and mortality rates, given a mortgage-backed security with annual speed set at the PSA default benchmark.

PSASpeed = [100 200];
 
[CPRPSA, SMMPSA]= psaspeed2rate(PSASpeed)
% view the plot of the output
psaspeed2rate(PSASpeed)

% Copyright 2015 The MathWorks, Inc.