Main Content

isafin

True if input argument is financial structure type or financial object class

Description

IsFinObj = isafin(Obj,ClassName) returns true (1) if input argument is a financial structure type or financial object class, otherwise false (0) is returned.

example

Examples

collapse all

isafin returns true (1) if input argument is a financial structure type or financial object class, otherwise false (0) is returned.

load deriv.mat
IsFinObj = isafin(HJMTree, 'HJMFwdTree')
IsFinObj = logical
   1

Input Arguments

collapse all

Name of a financial structure, specified as an object.

Data Types: object

Name of a financial structure class, specified as a character vector.

Data Types: char

Output Arguments

collapse all

Is input argument is financial structure type or financial object class, returned as a logical. isafin returns true (1) if input argument is a financial structure type or financial object class, otherwise false (0).

Version History

Introduced before R2006a