findboundary.m

来自「MATLAB二维电阻抗断层成像算法!用于医学成像,里面包括有限元剖分正问题,及反」· M 代码 · 共 25 行

M
25
字号
function indbound = findboundary(g,H)

%findboundary Indices of the boundary nodes
% Function indbound = findboundary(g,H);
% finds the indices of the boundary nodes.
%
% INPUT
% 
% g = node coordinates
% H = connectivity
%
% OUTPUT
% 
% indbound = indices of the boundary nodes



indbound = [];
for i = 1:size(g,1);
 I11 = find(H == i);
  if size(I11,1) < 4
     indbound = [indbound;i];
  end
end                                      

⌨️ 快捷键说明

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