Mercurial > hg > mauch-mirex-2010
view _FullBNT/KPMtools/assert.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
line wrap: on
line source
function assert(pred, str) % ASSERT Raise an error if the predicate is not true. % assert(pred, string) if nargin<2, str = ''; end if ~pred s = sprintf('assertion violated: %s', str); error(s); end