from
TexTab
by Marcel RĂ¼land Create formatted tables and save them as a picture like png. Saving tex files is also possible.
Base
classdef Base < handle
%Simple base class, intended as a replacement for the ZeisigGold.Base
%class for published classes.
methods (Access = protected)
function error(obj,Id,varargin)
try
% Get the path for the error calling object and call errors.mat file.
self = which(class(obj));
load(fullfile(fileparts(fileparts(self)),'Metafiles','Errors.mat'));
IdNo = strcmp(Id,Errors.Id);
Message = sprintf(Errors.english{IdNo},varargin{:});
M = MException(Id,Message);
catch ME%#ok<*CTCH>
error(Id,Id);
end
M.throwAsCaller;
end
end
end