%% Compute the Yield of a Long-Term Zero-Coupon Instrument
% This example shows how to compute the yield of a long-term zero-coupon instrument.

Settle   = '24-Jun-1993';
Maturity = '15-Jan-2024';
Basis    = 0;
Price    = 9;

Yield = zeroyield(Price, Settle, Maturity, [], Basis)

% Copyright 2015 The MathWorks, Inc.