equal.m
来自「一个关于adaboost算法的matlab程序,对开始接触adaboost研究的」· M 代码 · 共 31 行
M
31 行
function x = equal(M1, M2)
% EQUAL(M1, M2) tests M1 and M2 for equality
% we need a special function as the two matrices may be of different
% length and '==' might exit telling that the matrix dimensions don't agree
%
% returns 1 if true and 0 if false
% Copyright (c) 1997 GMD Berlin
% --- All Rights Reserved ---
% THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
% GMD Berlin and Lucent Technologies
% The copyright notice above does not evidence any
% actual or intended publication of this work.
% Please see COPYRIGHT.txt for details.
%
% Authors: Alex J. Smola, Gunnar R"atsch
% Date : 12/08/97
%
% 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.
if all(size(M1)==size(M2)),
x = all(all(M1==M2)) ;
else
x = 0;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?