normSTA.m 199 B

12345
  1. function normX =normSTA(x)
  2. %this function normalizes (with euqlidien distance) and reshapes a vector to its original size
  3. normX = x(:) / sqrt(sum(x(:).*x(:)));
  4. normX=reshape(normX,size(x));
  5. end