[569f14]: / getNormXYZ.m

Download this file

8 lines (8 with data), 212 Bytes

1
2
3
4
5
6
7
8
function dataNorm=getNormXYZ(data)
%gets the norm (or sum vector) of a matrix of three columns (x,y,z)
if size(data,2)~=3
error('x y z');
end
for i=1:size(data,1)
dataNorm(i,1)=norm(data(i,:));
end