from
simbus
by Sanjai Singh The DataBus Blockset provides a method for manipulating signals from a vector in SIMULINK.
isequal(m1,m2)
function boo = isequal(m1,m2)
%ISEQUAL True if arguments are equal.
% ISEQUAL(A,B) is 1 if A and B are the same size and
% contain the same contents and 0 otherwise.
% Author(s): A. Potvin, 6-1-94
% Copyright (c) 1994 by The MathWorks, Inc.
% $Revision: 1.1 $ $Date: 1997/02/11 20:50:56 $
ni = nargin;
error(nargchk(2,2,ni));
boo = 0;
if all(size(m1)==size(m2)),
if all(all(m1==m2)),
if isstr(m1)==isstr(m2),
boo = 1;
end
end
end