Mercurial > hg > ishara
view general/numerical/array/bitmap.m @ 16:db7f4afd27c5
Rearranging numerical toolbox.
author | samer |
---|---|
date | Thu, 17 Jan 2013 13:20:44 +0000 |
parents | general/numerical/bitmap.m@e44f49929e56 |
children |
line wrap: on
line source
function X=bitmap(varargin), X=full(sbitmap(varargin{:})); % bitmap - turn sequence of integers into binary bitmap % % bitmap :: % Y:[[1,L]->[K]] ~'sequence of L natural numbers in 1..K', % K:natural ~'height of array to return' % -> X:[[K,L]->0|1] ~'X(i,j)=1 if Y(j)=i'. % % See also SBITMAP