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

📄 is_repeat.m

📁 CheckMate is a MATLAB-based tool for modeling, simulating and investigating properties of hybrid dyn
💻 M
字号:
function test=is_repeat(boundary,hpflags)%This function tests if CELLS already contains a region described by the HP's%in the vector 'boundary'global CELLStest=0;size=length(CELLS);for i=1:size    if length(intersect(boundary,CELLS{i}.boundary))==length(boundary)&& length(boundary)==length(CELLS{i}.boundary)        %If all boundary HP's are equal, cell must be tested to see if all HP sides are        %also equal.  (Added by JPK 6/2002)        not_eq=0;        for j=1:length(boundary)            [dum1,dum2,member_num]=intersect(boundary(j),CELLS{i}.boundary);            if hpflags(j)~=CELLS{i}.hpflags(member_num)                not_eq=1;                break;            end        end        if ~not_eq            test=i;            break;        end    endendreturn%-----------------------------------------------------------------------------

⌨️ 快捷键说明

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