Mercurial > hg > ishara
view general/numerical/rescale.m @ 16:db7f4afd27c5
Rearranging numerical toolbox.
author | samer |
---|---|
date | Thu, 17 Jan 2013 13:20:44 +0000 |
parents | e44f49929e56 |
children | 8476b3d9d295 |
line wrap: on
line source
function B=rescale(A,mx), B=A/max(A(isfinite(A))); % rescale - rescale array values so maximum value is MX % % rescale :: [DIM->real], real -> [DIM->real] % % eg, B=rescale(A,10) % returns matrix K*A such that maximum finite value is 10