view callConstructor.m @ 838:bd43256f0c41 feature/poroelastic

Added tag Heimisson2018 for changeset 08f3ffe63f48
author Martin Almquist <malmquist@stanford.edu>
date Fri, 14 Sep 2018 10:41:00 -0700
parents 428cc9d4106f
children
line wrap: on
line source

% Calls the constructor of an object.
% Might be usefull to call the constructor of a subclass object in the superclass
function obj = callConstructor(subclassObj, varargin)
    fun = str2func(class(subclassObj));
    obj = fun(varargin{:});
end