- /
-
Matlab custom Tupper's formula
on 18 Oct 2021
- 10
- 16
- 0
- 0
- 266
x=[0 31 8 4 8 31 0 15 18 18 18 15 0 16 16 31 16 16 0 31 1 1 1 0 15 18 18 18 15 0 31 21 21 21 10 0];
a=dec2bin(x)'-'0';
for i=1:8
b((1:5)+7*(i-1),:)=a.*randi([128 256],size(a))+256*mod(i,8);
end
imagesc(b);axis equal off;
colormap([pink;hot;bone;parula;jet;winter;summer;gray]);