Financial Derivatives Toolbox    
classfin

Create financial structure or return financial structure class name

Syntax

Arguments

ClassName
String containing name of financial structure class.
Struct
MATLAB structure to be converted into a financial structure.
Obj
Name of a financial structure.

Description

Obj = classfin(ClassName) and Obj = classfin(Struct, ClassName) create a financial structure of class ClassName.

ClassName = classfin(Obj) returns a string containing a financial structure's class name.

Examples

Example 1.

Create a HJMTimeSpec financial structure and complete its fields (Typically, the function hjmtimespec is used to create HJMTimeSpec structures).

Example 2.

Convert an existing MATLAB structure into a financial structure.

Example 3.

Obtain a financial structure's class name.

See Also

isafin


  cfbyzero date2time