view callConstructor.m @ 639:021caf7194b8 feature/d1_staggered

Bug fix grid spacing in d1 staggered implementations.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 10 Nov 2017 15:57:47 -0800
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