- /
-
Clock
on 14 Nov 2023
- 12
- 34
- 2
- 0
- 547
drawframe(1);
Write your drawframe function below
function drawframe(f)
cla
a=[4:12 1:3];
for i=1:12
polarplot([pi/6 pi/6]*i,[1.8 2],'LineWidth',4,'Color','k')
hold on
text(pi/6*i,1.5,num2str(a(i)),'FontSize',20,'HorizontalAlignment','center')
end
for i=1:60
polarplot([pi/30 pi/30]*i,[1.9 2],'LineWidth',2,'Color','k')
hold on
end
polarplot([pi/6 pi/6]*f/3600,[-0.2 1],'LineWidth',6,'Color','k')
polarplot([pi/30 pi/30]*f/60-pi/2,[-0.2 1.3],'LineWidth',4,'Color','k')
polarplot([pi/30 pi/30]*f-pi/2,[-0.2 1.7],'LineWidth',2,'Color','r')
ax=gca;
ax.RTickLabel = {};
ax.ThetaTickLabel = {};
ax.ThetaDir = 'clockwise';
l=gcf;
l.Color='k';
grid off
end