📄 u1.asv
字号:
function u1
%%%%%%%%%%%% 创建图形框 %%%%%%%%%
h_figure=figure('Units' , 'characters' ,...
'position',[5 2 180 50]);
%%%%%%%%%%%% 创建坐标 %%%%%%%%%%%
h_axes1=subplot(331);
set(gca,'box','on','xlim',[0 2],'ylim',[0 2]);
h_axes2=subplot(332);
set(gca,'box','on','xlim',[0 2],'ylim',[0 2]);
h_axes3=subplot(333);
set(gca,'box','on','xlim',[0 2],'ylim',[0 2]);
h_axes1=subplot(334);
set(gca,'box','on','xlim',[0 2],'ylim',[0 2]);
h_axes1=subplot(335);
set(gca,'box','on','xlim',[0 2],'ylim',[0 2]);
%%%%%%%%%%%%%%%% 控制按钮 %%%%%%%%%%%%%%
h_frame1=uicontrol(h_figure, 'style' , 'frame' ,...
'Units' , 'characters' ,...
'position' ,[42,4,80,12], ...
'horizontal' , 'center' ,...
'fontsize' ,10,...
'backgroundcolor',[0.5 0.5 0.5],....
'ForegroundColor','black');
h_text=uicontrol(h_figure, 'style' , 'text' , ...
'Units' , 'characters' ,...
'position' ,[46,6,4,8], ...
'string' ,' 控制按钮', 'fontsize' ,12);
h_push1=uicontrol(h_figure, 'style' , 'push' , ...
'Units' , 'characters' ,...
'position' ,[52 11 20 3.5], ...
'string' , '量化后的序列' ,...
'backgroundcolor',[0.8 0.8 0.8], 'callback' , [...
'run;',...
'subplot(331),stem(d2a(x,B)),ylabel(''quantized input''),axis([1 S -1 1]),title(''量化后的序列'');'...
'hold off,'] );
h_push2=uicontrol(h_figure, 'style' , 'push' , ...
'Units' , 'characters' ,...
'position' ,[75 11 20 3.5], ...
'string' , '16-QAM矢量图' ,...
'backgroundcolor',[0.8 0.8 0.8], 'callback' , [...
'run;',...
'subplot(332),plot(M,''.b''),title(''16-QAM矢量图''),grid on,xlabel(''REAL''),ylabel(''IMAG''),axis([-1.5 1.5 -1.5 1.5]);',...
'hold off,'] );
h_push4=uicontrol(h_figure, 'style' , 'push' , ...
'Units' , 'characters' ,...
'position' ,[52 6 20 3.5], ...
'string' , '镜像对称' ,...
'backgroundcolor',[0.8 0.8 0.8], 'callback' , [...
'run;',...
'subplot(333),stem(1:128,abs(b(1:length(b)/2,1)),''m''),hold,stem(129:256,abs(b(length(b)/2+1:length(b),1)),''k''),hold on,title(''镜像对称''),grid;',...
'hold off,'] );
h_push3=uicontrol(h_figure, 'style' , 'push' , ...
'Units' , 'characters' ,...
'position' ,[97 11 20 3.5], ...
'string' , 'IFFT' ,...`
'backgroundcolor',[0.8 0.8 0.8], 'callback' , [...
'run;',...
'subplot(334),plot(c),grid on,title(''一个block的IFFT'');',...
'hold off,'] );
h_push5=uicontrol(h_figure, 'style' , 'push' , ...
'Units' , 'characters' ,...
'position' ,[75 6 20 3.5], ...
'string' , '加循环前缀' ,...
'backgroundcolor',[0.8 0.8 0.8], 'callback' , [...
'run;',...
'subplot(335),Q=length(d(:,1));'...
'stem(1:Q-N,matlaberr(d(1:Q-N,1)),''b''),hold,ylabel(''cylic padded input'');'...
'stem(1:N,matlaberr(d(1:N,1)),''r'');'...
'stem(Q-N+1:Q,matlaberr(d((Q-N+1):Q,1)),''r'');'...
'title(''加循环前缀''),grid;',...
'hold '] );
h_push6=uicontrol(h_figure, 'style' , 'push' , ...
'Units' , 'characters' ,...
'position' ,[97 6 20 3.5], ...
'string' , '接收' ,...
'backgroundcolor',[0.8 0.8 0.8], 'callback' , [...
'u2'] );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -