removes row element in nodeList matrix
0001 0002 function [nodeList] = removeElem(idx, nodeList) 0003 %removes row element in nodeList matrix 0004 nodeList(idx,: ) = []; 0005 nodeList = nodeList; 0006 % [sx, sy] = size(nodeList); 0007 % if sx >= 1 0008 % if idx == 1 0009 % nodeList = nodeList(2:sx, :); 0010 % return; 0011 % end; 0012 % if (idx > 1) & (idx < sx) 0013 % nodeList = [nodeList(1:idx-1,:);nodeList(idx+1:sx,:)] ; 0014 % return; 0015 % end; 0016 % if idx == sx 0017 % nodeList = nodeList(1:idx-1,:); 0018 % return; 0019 % end; 0020 % else 0021 % nodeList = []; 0022 % end; 0023 0024