Skip to content

Instantly share code, notes, and snippets.

@MShirazAhmad
Created February 2, 2020 07:18
Show Gist options
  • Save MShirazAhmad/c4b24bca386d21f4c502547c8c6e54d0 to your computer and use it in GitHub Desktop.
Save MShirazAhmad/c4b24bca386d21f4c502547c8c6e54d0 to your computer and use it in GitHub Desktop.
Normalizing Array to Unity
function norm = norm2unity(input)
norm=(input-min(input))/(max(input)-min(input))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment