帮我翻译一下这个matlab程序

来源:百度知道 编辑:UC知道 时间:2024/05/26 12:16:12
function clk
% clf;shg;
h=figure('menubar','none',...
'color','white',...
'position',[200 200 320 360],...
'name','CLOCK');
e1=uicontrol('parent',h,...
'style','edit',...
'fontsize',12,...
'position',[110 20 120 30]);
b1=uicontrol('parent',h,...
'style','text',...
'string','12',...
'fontsize',12,...
'position',[156 275 20 20]);
b2=uicontrol('parent',h,...
'style','text',...
'string','9',...
'fontsize',12,...
'position',[60 175 20 20]);
b3=uicontrol('parent',h,...
'style','text',...
'string','6',...
'fontsize',12,...
'position',[156 75 20

function clk
% clf;shg;
%创建一个图形界面
h=figure('menubar','none',... %取消菜单栏
'color','white',... %设成白色
'position',[200 200 320 360],...%初始创建显示的位置
'name','CLOCK'); %窗口名字
%创建一个用户界面控制对象
e1=uicontrol('parent',h,... %指定父对象为界面窗口
'style','edit',... %该对象为可编辑文本框
'fontsize',12,... %字号
'position',[110 20 120 30]);
b1=uicontrol('parent',h,...
'style','text',... %该对象为静态文本
'string','12',... %文本内容为‘12’点
'fontsize',12,...
'position',[156 275 20 20]);
b2=uicontrol('parent',h,...
'style','text',...
'string','9',... %‘9’点
'fontsize',12,...
'position',[60 175 20 20]);
b3=uicontrol('parent',h,...
'style','text'