5 D21{i}=q(i,me(2,:))-q(i,me(1,:));
6 D31{i}=q(i,me(3,:))-q(i,me(1,:));
7 D41{i}=q(i,me(4,:))-q(i,me(1,:));
10 volumes=abs((D21{1}.*(D31{2}.*D41{3}-D31{3}.*D41{2})+ ...
11 D31{1}.*(D41{2}.*D21{3}-D41{3}.*D21{2})+ ...
12 D41{1}.*(D21{2}.*D31{3}-D21{3}.*D31{2}))/6.);