• Remix
  • Share
  • New Entry

on 22 Oct 2021
  • 1
  • 19
  • 0
  • 0
  • 270
%%Chess Board with colour
N=12;
a=zeros(N,N);
for i=1:N
for j=1:N
if mod((i+j),2)==0
a(i,j)=1;
end
end
end
h=imagesc(a);
colormap gray
h.AlphaData =.8;
%% Arrangement of chess pieces
c='color';
d=[2 6 9 4 3 1 0 3 4 9 6 2]+9812;
e=d+6;
for i=1:N
h=text(i,1,char(e(i)),c','y');
h=text(i,N,char(d(i)));
h=text(i,N-1,char(9817));
h=text(i,2,char(9817),c,'y');
end
Remix Tree