📄 gui_conv.m
字号:
clear, close all
H=figure('unit','normalized','Name','Convolution','NumberTitle','off','MenuBar','none');
H1=axes('unit','normalized','position',[0.05,0.69,0.6,0.2]);
title('The input signal x(t)','unit' , 'normalized','fontsize' ,14)
%set(gcf, 'currentaxes' ,H1);
h1_fig=get(H1, 'parent' );
h1_text=uicontrol(h1_fig, 'style' , 'text' , ...
'unit' , 'normalized' , 'position' ,[0.67,0.79,0.12,0.04], ...
'horizontal' , 'left' , 'string' ,{ 'Type in x(t)' },'fontsize' ,12);
h1_edit=uicontrol(h1_fig, 'style' , 'edit' , ...
'unit' , 'normalized' , 'position' ,[0.67,0.74,0.28,0.04], ...
'horizontal' , 'left' , ...
'callback' ,[ ...
'z1=str2num(get(gcbo,''string''));',...
'aa']);
%U==========================================================================
H2=axes('unit','normalized','position',[0.05,0.37,0.6,0.2]);
set(gcf, 'currentaxes' ,H2);
title('The impulse response h(t)','unit' , 'normalized','fontsize' ,14)
h2_fig=get(H2, 'parent' );
%U==========================================================================
h2_text=uicontrol(h2_fig, 'style' , 'text' , ...
'unit' , 'normalized' , 'position' ,[0.67,0.49,0.12,0.04], ...
'horizontal' , 'left' , 'string' ,{ 'Type in h(t)' },'fontsize' ,12);
h2_edit=uicontrol(h2_fig, 'style' , 'edit' , ...
'unit' , 'normalized' , 'position' ,[0.67,0.44,0.28,0.04], ...
'horizontal' , 'left' , ...
'callback' ,[ ...
'z2=str2num(get(gcbo,''string''));' , ...
'bb']);
%U==========================================================================
H3=axes('unit','normalized','position',[0.05,0.05,0.6,0.2]);
title('The output response y(t)','unit' , 'normalized','fontsize' ,14)
set(gcf, 'currentaxes' ,H3);
%str= '\fontname{ 隶书 } The output signal y(t) ' ;
%text(0.2,1.2,str, 'fontsize' ,12);
h3_fig=get(H3, 'parent' );
h_push1=uicontrol(h3_fig, 'style' , 'push' , ...
'unit' , 'normalized' , 'position' ,[0.67,0.05,0.12,0.15], ...
'string' , 'START' , 'callback' ,[ ...
'cc' ]);
h_push2=uicontrol(h3_fig, 'style' , 'push' , ...
'unit' , 'normalized' , 'position' ,[0.8,0.05,0.12,0.15], ...
'string' , 'RETURN' , 'callback' , 'close (H),open(myguide1)' );
%U==========================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -