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

    %% Compute the Yield of a Short-Term Zero-Coupon Instrument Using a Day-Count Basis of 30/360 (SIA)
% This example shows how to compute the yield of a short-term zero-coupon
% instrument using a day-count basis of 30/360 (SIA).
%%

% Copyright 2015 The MathWorks, Inc.

Settle   = '24-Jun-1993';
Maturity = '1-Nov-1993';
Basis    = 1;
Price    = 95;

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