Watch this Author's files
Dear Richard, is there any particular language you would prefer when referencing your code in an article?
Great routine, although I was having some issues removing redundant nodes until I changed the following in line 66 of changegeometry.m
del = nNode-i(end);
del = nNode-length(i);