Mercurial > repos > public > sbplib
view callConstructor.m @ 658:1201eb16557e feature/grids
Allow the possibility to have discr as an input the an error function
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 11 Nov 2017 13:02:57 -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