www.gusucode.com > fininst 案例源码程序 matlab代码 > fininst/YieldOfALongTermZeroCouInstExample.m

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

% Copyright 2015 The MathWorks, Inc.

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

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