This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Properties of interest-rate structure


ParameterValue = intenvget(RateSpec,'ParameterName')



A structure containing the properties of an interest-rate structure. See intenvset for information on creating RateSpec.


Character vector indicating the parameter name to be accessed. The value of the named parameter is extracted from the structure RateSpec. It is sufficient to type only the leading characters that uniquely identify the parameter. Case is ignored for parameter names.


ParameterValue = intenvget(RateSpec,'ParameterName') obtains the value of the named parameter 'ParameterName' extracted from RateSpec.


Use intenvset to set the interest-rate structure.

RateSpec = intenvset('Rates', 0.05, 'StartDates',... 
'20-Jan-2000', 'EndDates', '20-Jan-2001')

Now use intenvget to extract the values from RateSpec.

[R, RateSpec] = intenvget(RateSpec, 'Rates')
R =

RateSpec = 

		FinObj: 'RateSpec'
		Compounding: 2
		Disc: 0.9518
		Rates: 0.0500
		EndTimes: 2
		StartTimes: 0
		EndDates: 730871
		StartDates: 730505
		ValuationDate: 730505
		Basis: 0
		EndMonthRule: 1

Introduced before R2006a

Was this topic helpful?