显示当前时间的表
萝卜@2005-04-2720:01
%显示当前时间的表t ryclose allh fi g=fi g u re;set(hfig, 'Num berTitle','off');set(hfig, 'nam e','显示当前时间的表');set(hfig, 'MenuBar' ,'none');s et(hfig, 'color',[050703])
A=l inspace(0,63,1000);x1=8*cos(A);y1=8*sin(A);x2=7*cos(A);y2=7*sin(A);plot(x1 ,y1 , 'b' ,'l inewidth',14)holdonplot(x2,y2, 'b','l inewidth',35)fi l l(04*cos(A),04*s in(A),'r');axis offaxis([-1010-1010])axis equalset(gca, 'position' ,[[01300507750815]])ti tl e(d ate, 'fo n ts i ze' ,18)fork=1 :12;xk=9*cos(-2*pi/12*k+pi/2);yk=9*s in(-2*pi/12*k+pi/2);plot([xk/9*8xk/9*7],[yk/9*8yk/9*7],'color',[030809])% if kh=te xt(xk,yk,n u m 2s tr(k),'fo n ts i ze',16, 'co l o r' ,
[090308],'HorizontalAl ignment','center');end
%计算时针位置ti=clock;th=-(ti(4)+ti(5)/60+ti(6)/3600)/12*2*pi+pi/2;xh 3=40*cos(th);yh3=40*sin(th);xh2=xh3/2+05*cos(th-pi/2);yh2=yh3/2+05*sin(th-pi/2);
xh4=xh3/2-05*cos(th-pi/2);yh4=yh3/2-05*sin(th-pi/2);hh=fi l l([0xh2xh3xh40], [0yh2yh3yh40], [060503]);
%计算分针位置tm=-(ti(5)+ti(6)/60)/60*2*pi+pi/2;xm 3=60*cos(tm);ym3=60*sin(tm);xm 2=xm 3/2+05*cos(tm-p i/2);ym2=ym3/2+05*sin(tm-pi/2);xm 4=xm 3/2-05*cos(tm-p i/2);ym4=ym3/2-05*sin(tm-pi/2);hm=fil l([0xm2xm3xm40],[0ym2ym3ym40],[060503]);%计算秒针位置ts=-(ti(6))/60*2*p i+pi/2;hs=plot([07*cos(ts)],[07*s in(ts)],
'color' ,[060503] ,'l inewidth',3);set(gcf,'doublebuffer','on');k=1 ;whi lek<6;ti=clock;
%计算时针位置th=-(ti(4)+ti(5)/60+ti(6)/3600)/12*2*pi+pi/2;xh 3=40*cos(th);yh3=40*sin(th);xh2=xh3/2+05*cos(th-pi/2);yh2=yh3/2+05*sin(th-pi/2);xh4=xh3/2-05*cos(th-pi/2);yh4=yh3/2-05*sin(th-pi/2);set(hh,'XData' ,[0 xh2 xh3 xh40],'YData' ,[0 yh2 yh3 yh40])%计算分针位置tm=-(ti(5)+ti(6)/60)/60*2*pi+pi/2;xm 3=60*cos(tm);ym3=60*sin(tm);xm 2=xm 3/2+05*cos(tm-p i/2);ym2=ym3/2+05*sin(tm-pi/2);xm 4=xm 3/2-05*cos(tm-p i/2);ym4=ym3/2-05*sin(tm-pi/2);set(hm,'XData',[0xm2xm3xm40],'YData', [0ym2ym3ym40])%计算秒针位置
ts=-(ti(6))/60*2*p i+pi/2;set(hs,'XData' ,[07*cos(ts)], 'YData',[07*sin(ts)])drawnow;pause(009)endcatchend
hypervmart怎么样?hypervmart是一家国外主机商,成立于2011年,提供虚拟主机、VPS等,vps基于Hyper-V 2012 R2,宣称不超售,支持linux和windows,有荷兰和英国2个数据中心,特色是1Gbps带宽、不限流量。现在配置提高,价格不变,性价比提高了很多。(数据中心不太清楚,按以前的记录,应该是欧洲),支持Paypal付款。点击进入:hypervmart官方网...
totyun,新公司,主要运作香港vps、日本vps业务,接入cn2网络,不限制流量!VPS基于KVM虚拟,采用系统盘和数据盘分离,从4G内存开始支持Windows系统...大家注意下,网络分“Premium China”、“Global”,由于站长尚未测试,所以也还不清楚情况,有喜欢吃螃蟹的尝试过不妨告诉下站长。官方网站:https://totyun.com一次性5折优惠码:X4QTYVNB3P...
HostKvm也发布了开年促销方案,针对香港国际和美国洛杉矶两个机房的VPS主机提供7折优惠码,其他机房业务提供8折优惠码。商家成立于2013年,提供基于KVM架构的VPS主机,可选数据中心包括日本、新加坡、韩国、美国、中国香港等多个地区机房,均为国内直连或优化线路,延迟较低,适合建站或者远程办公等。下面列出几款主机配置信息。美国洛杉矶套餐:美国 US-Plan1CPU:1core内存:2GB硬盘...