Documentation of disabledberror


Global Index (short | long) | Local contents | Local Index (short | long)


Function Synopsis

hasDBError = disabledberror

Help text

DISABLEDBERROR turns off "dbstop if error" and returns previous
status.

Cross-Reference Information

This function is called by

Listing of function disabledberror

function hasDBError = disabledberror

%   Copyright 1984-2000 by The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2000/06/01 02:54:09 $

% turn off "dbstop if error" while in the try-catch
dbstat = dbstatus;
hasDBError = logical(0);
if ~isempty(dbstat)
  hasDBError = any(strcmp({dbstat.cond},'error'));
  dbclear if error;
end