www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@mbclabel/isequallabels.m
function OK = isequallabels(c1,c2) %ISEQUALLABELS % % OK = isequallabels(c1,c2) % Copyright 2007 The MathWorks, Inc. % rename isequal when it works OK = all(size(c1)==size(c2)); for i=1:length(c1) OK = OK && strcmp(c1(i).Name , c2(i).Name) && ... strcmp(c1(i).Symbol,c2(i).Symbol) && ... strcmp(c1(i).Units,c2(i).Units); end