Skip to content

Instantly share code, notes, and snippets.

@matael
Created January 6, 2013 19:28
Show Gist options
  • Select an option

  • Save matael/4469659 to your computer and use it in GitHub Desktop.

Select an option

Save matael/4469659 to your computer and use it in GitHub Desktop.
function [ norm ] = normalize( in )
% Normalize a vect to its maximum
maxi = max(max(in));
norm = in./maxi;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment