Home > src > BN_pol_rec > Hsand > removeElem.m

removeElem

PURPOSE ^

removes row element in nodeList matrix

SYNOPSIS ^

function [nodeList] = removeElem(idx, nodeList)

DESCRIPTION ^

removes row element in nodeList matrix

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003