%% Determine if Input is Financial Structure Type or Financial Object Class
% 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')

% Copyright 2020 The MathWorks, Inc.