• Remix
  • Share
  • New Entry

on 17 Oct 2022
  • 17
  • 82
  • 0
  • 2
  • 171
r=7;
c=15;
i=ones(r,2*c);
i(1:2:r,3:4:2*c)=0;
i(:,2:4:2*c)=0;
i(2:2:r,1:4:2*c)=0;
imagesc(i);
colormap gray
hold
Current plot held
for j=.5:r+.5
line([.5,2*(c+1)],[j,j],'Color','r','LineWidth',2) % lines are parallel since y value ranges from y to y!
end
axis off
Remix Tree