• Remix
  • Share
  • New Entry

on 5 Oct 2021
  • 6
  • 31
  • 0
  • 0
  • 213
N = 6;
L = 3^(N-1);
a = cell(N,1);
a{1} = '1';
for i=2:N
a{i} = strrep(strrep(a{i-1},'0','000'),'1','101');
end
A=zeros(N,L);
for i=1:N
f = repmat(a{i}-'0',L/length(a{i}),1);
A(i,:) = f(:)';
end
imagesc(1-A); colormap(gray); axis off;

Image

Remix Tree