comparison general/numerical/bitmap.m @ 4:e44f49929e56

Adding reorganised general toolbox, now in several subdirectories.
author samer
date Sat, 12 Jan 2013 19:21:22 +0000
parents
children
comparison
equal deleted inserted replaced
3:3f77126f7b5f 4:e44f49929e56
1 function X=bitmap(varargin), X=full(sbitmap(varargin{:}));
2 % bitmap - turn sequence of integers into binary bitmap
3 %
4 % bitmap ::
5 % Y:[[1,L]->[K]] ~'sequence of L natural numbers in 1..K',
6 % K:natural ~'height of array to return'
7 % -> X:[[K,L]->0|1] ~'X(i,j)=1 if Y(j)=i'.
8 %
9 % See also SBITMAP