⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assert.m

📁 一个关于adaboost算法的matlab程序
💻 M
字号:
function assert(Val, Text)
%
% checks a condition and aborts if it has been failed (Val==0)

%   G. Raetsch 1.6.98
%   Copyright (c) 1998  GMD Berlin - All rights reserved
%   THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of GMD FIRST Berlin
%   The copyright notice above does not evidence any
%   actual or intended publication of this work.
%   Please see COPYRIGHT.txt for details.

global debug_assert ;

%dbstack ;
if isempty(debug_assert),
  debug_assert=1 ;
elseif debug_assert==0,
  return ;
end ;

if ~Val,
	if nargin<2,
		rep=sprintf('assertion failed (%i)', Val) ;
	else
		rep=Text ;
	end ;
	dbstack ;
	error(rep) 
end ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -