Guest User

Untitled

a guest
Jul 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. vec_min = min(A);
  2. vec_max = max(A);
  3. deciding_factor = log10(max/min);
  4. if(deciding_factor) > 1
  5. for i=1:length(A)
  6. if(A(i)>vec_min*(10^floor(deciding_factor)))
  7. A(i) = A(i) / 10^(floor(deciding_factor));
  8. print(i was normalized);
  9. <Do something to keep track of what was normalized>
  10. Done
Add Comment
Please, Sign In to add comment