• Remix
  • Share
  • New Entry

on 24 Nov 2023
  • 19
  • 30
  • 0
  • 2
  • 544
drawframe(1);
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0146 1.0146 1.0146 0.0146]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0146 3.0146 3.0146 2.0146]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0146 5.0146 5.0146 4.0146]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0146 7.0146 7.0146 6.0146]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0146 9.0146 9.0146 8.0146]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0146 11.0146 11.0146 10.0146]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0146 13.0146 13.0146 12.0146]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[0.0146 1.0146 1.0146 0.0146]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0146 3.0146 3.0146 2.0146]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0146 5.0146 5.0146 4.0146]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0146 7.0146 7.0146 6.0146]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0146 9.0146 9.0146 8.0146]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0146 11.0146 11.0146 10.0146]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0146 13.0146 13.0146 12.0146]}
T2 = 1×2 cell array
{'XData'} {[0.0073 1.0073 1.0073 0.0073]}
T2 = 1×2 cell array
{'XData'} {[2.0073 3.0073 3.0073 2.0073]}
T2 = 1×2 cell array
{'XData'} {[4.0073 5.0073 5.0073 4.0073]}
T2 = 1×2 cell array
{'XData'} {[6.0073 7.0073 7.0073 6.0073]}
T2 = 1×2 cell array
{'XData'} {[8.0073 9.0073 9.0073 8.0073]}
T2 = 1×2 cell array
{'XData'} {[10.0073 11.0073 11.0073 10.0073]}
T2 = 1×2 cell array
{'XData'} {[12.0073 13.0073 13.0073 12.0073]}
Write your drawframe function below
function drawframe(f)
F1=figure('Color','w');
A1=axes(F1);
Nr=8;
Nc=7;
sq=cell(Nr,Nc);
C1=119/255*ones(1,3);
ops={'LineWidth',2.0,'Color',C1};
yline(A1,0,ops{:})
hold(A1,'on')
for i1 = 1:Nr
for i2 = 1:Nc
sq{i1,i2}=patch(A1,'XData',2*i2-[2,1,1,2],'YData',...
i1-[1,1,0,0],'FaceColor','k','EdgeColor',C1,...
'LineWidth',2.0);
end
yline(A1,i1,ops{:})
end
axis(A1,'equal')
set(A1,'XLim',[0,2*Nc],'YLim',[0,Nr],'Visible','off')
% A1.XAxis.Visible = 'off';
% A1.YAxis.Visible = 'off';
% maxS=0.7;
for i1 = 1:Nr
for i2 = 1:Nc
T1=0.7*f/48;
T2={'XData',2*i2-[2,1,1,2]+.5*T1}
if mod(i1,2)==0
set(sq{i1,i2},T2{:});
elseif mod(i1,4)==3
T2{2}=T2{2}+.5*T1
set(sq{i1,i2},T2{:});
end
end
end
end
Animation
Remix Tree