function normedx = normalize(x) % FUNCTION: normalize part of DPWT Toolbox % % SYNOPSIS: NORMEDX = normalize(X) % % DESCRIPTION: Function normalize finds the element of largest % absolute value in the matrix X and divides all % entries of X by that value to create the normalized % version of X, NORMEDX. % % ALGORITHM: Normalize is just a friendly self-documenting alias for % the line: % % normedx = x/max(max(abs(x))); % % EXAMPLE: normalize([1:5]) % ans = % % 0.2000 0.4000 0.6000 0.8000 1.0000 % % AUTHOR: Neil Getz % DATE: 5-12-92 % % COPYRIGHT 1992, Neil Getz % normedx = x/max(max(abs(x)));