文档介绍:精选优质文档-----倾情为你奉上
精选优质文档-----倾情为你奉上
专心---专注---专业
专心---专注---专业
精选优质文档-----倾情为你奉上
专心---专注---专业
一个不错的Matlab的gui界面设计实例-专注---专业
专心---专注---专业
精选优质文档-----倾情为你奉上
专心---专注---专业
   end
end
uicontrol(gcf,'style','push',...
   'unit','normalized','position',[,,,],...
   'BackgroundColor',*[1,1,1],'ForegroundColor',ss,...
   'String','clock','fontsize',18,'fontname','times new roman');
Tq=uicontrol(gcf,'style','push',...
   'unit','normalized','position',[,,,],...
   'BackgroundColor',*[1,1,1],'ForegroundColor',[,,],...
   'fontsize',18,'fontname','times new roman');
sq='The calendar';
uicontrol(gcf,'style','push',...
   'unit','normalized','position',[,,,],...
   'BackgroundColor',*[1,1,1],'ForegroundColor',[,,],...
   'fontsize',18,'fontname','times new roman','string',sq);
try
   while 1
       set(Tq,'String',datestr(now,13));
       pause(1);
   end
end
计算万年历的Matlab程序(2008-12-21 13:59:19)
标签:   
分类:
function test_calendar(year,month)
% 输入年份,月份,打印这个月的月历
run = 0;
ping = 0;
fprintf('\n%s %s %s %s %s %s %s\n',...
    '日','一','二','三','四','五','六');
% 计算从第一年到前一年的闰年和平年的个数
for i =1:year-1
    if (mod(i,4)==0 & mod(i,100)~=0) | mod(i,400)==0
        run = run+1;
    else
精选优质文档-----倾情为你奉上
精选优质文档-----倾情为你奉上
专心---专注---专业
专心---专注---专业
精选优质文档-----倾情为你奉上
专心---专注---专业
        ping = ping+1;
    end
e