演示增采样、减采样的MATLAB 程序
(读者原封不动拷贝成MATLAB程序,加快即可`运行)
% 演示增采样、减采样的过程,给出信号及其频谱。
%
h_fig1 = figure;
set(h_fig1, 'unit', 'normalized', 'position', [, , , ]);
set(h_fig1, 'defaultuicontrolunits', 'normalized');
h_text1 = uicontrol(gcf, 'Style', 'text', 'Position', [, , , ],...
'String', '演示信号的增采样与减采样', 'FontName', '黑体', 'ForegroundColor', 'r', ...
'FontSize', 32, 'FontWeight', 'Bold', 'BackgroundColor', [1, 1, 1]); set(gcf, 'color', 'w')
h_pushbutton1 = uicontrol(h_fig1, 'Style', 'PushButton', 'Position', [, , , ],...
'string', '往下页', 'BackgroundColor', 'y', 'ForegroundColor', 'r', 'FontSize', 14, 'FontWeight', 'Bold',...
'callback', ['set(h_fig1,''visible'', ''off''),',...
'set(h_fig2,''visible'', ''on'')'] )
h_pushbutton2 = uicontrol(h_fig1, 'Style', 'PushButton', 'Position', [, , , ],...
'string', '退出', 'BackgroundColor', [ ], 'ForegroundColor', 'r', 'FontSize', 14, 'FontWeight', 'Bold',...
'callback', ['delete(h_fig1),', 'delete(h_fig2)'])
h_axes01 = axes('Box', 'on', 'Position', [, , , ], 'FontSize', 8) % 在第 2 个图形窗中创建轴对象
h_axes02 = axes('Box', 'on', 'Position', [, , , ], 'FontSize', 8) % 在第 2 个图形窗中创建轴对象
h_axes03 = axes('Box', 'on', 'Position', [, , , ], 'FontSize', 8) % 在第 2 个图形窗中创建轴对象
h_axes04 = axes('Box', 'on', 'Position', [, , ,
演示增采样和减采样信号的频谱 来自淘豆网www.taodocs.com转载请标明出处.