?? 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 + -