filel1.m
来自「计算注水算法的相关程序」· M 代码 · 共 49 行
M
49 行
% 生成面版
close all
gcfk=figure('Position',[29 51 800 664]);
h_text1=uicontrol(gcfk,'style','text',...
'unit','normalized','position',[0.55,0.75,0.05,0.03],...
'BackgroundColor','w','ForegroundColor','r',...
'string','原始字模');
h_edit1=uicontrol(gcfk,'style','edit',...
'unit','normalized','position',[0.55,0.69,0.05,0.04],...
'BackgroundColor','w','ForegroundColor','r',...
'string','水');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h_text2=uicontrol(gcfk,'style','text',...
'unit','normalized','position',[0.62,0.75,0.05,0.03],...
'BackgroundColor','w','ForegroundColor','r',...
'string','背景字模');
h_edit2=uicontrol(gcfk,'style','edit',...
'unit','normalized','position',[0.62,0.69,0.05,0.04],...
'BackgroundColor','w','ForegroundColor','r',...
'string','水');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h_text3=uicontrol(gcfk,'style','text',...
'unit','normalized','position',[0.69,0.75,0.05,0.03],...
'BackgroundColor','w','ForegroundColor','r',...
'string','前景字模');
h_edit3=uicontrol(gcfk,'style','edit',...
'unit','normalized','position',[0.69,0.69,0.05,0.04],...
'BackgroundColor','w','ForegroundColor','r',...
'string','灌');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h_edit4=uicontrol(gcfk,'style','edit',...
'unit','normalized','position',[0.1,0.02,0.80,0.6],...
'BackgroundColor','w','ForegroundColor','black',...
'string','');
set(h_edit1,'HorizontalAlignment','left');
set(h_edit2,'HorizontalAlignment','left');
set(h_edit3,'HorizontalAlignment','left');
set(h_edit4,'HorizontalAlignment','left');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h_text4=uicontrol(gcfk,'style','text',...
'unit','normalized','position',[0.06,0.90,0.06,0.04],...
'BackgroundColor','w','ForegroundColor','r',...
'string','Note:','fontsize',18);
strN='"原始字模"取一个或两个字符, "背景字模"和"前景字模"取一个字符 !';
h_text5=uicontrol(gcfk,'style','text',...
'unit','normalized','position',[0.13,0.89,0.70,0.04],...
'BackgroundColor',[0.8 0.8 0.8],'ForegroundColor','b',...
'string',strN,'fontsize',18);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?