Mercurial > hg > ishara
view general/numerical/rescale.m @ 4:e44f49929e56
Adding reorganised general toolbox, now in several subdirectories.
author | samer |
---|---|
date | Sat, 12 Jan 2013 19:21:22 +0000 |
parents | |
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