findboundary.m

来自「实现对电磁层析模型的建立」· M 代码 · 共 28 行

M
28
字号
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% L.M. Heikkinen 2.6.1999 % University of Kuopio, Department of Applied Physics, PO Box 1627,% FIN-70211 Kuopio, Finland, email: laheikki@venda.uku.fiindbound = [];for i = 1:size(g,1); I11 = find(H == i);  if size(I11,1) < 4     indbound = [indbound;i];  endend                                      

⌨️ 快捷键说明

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