⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exa090802_modulate.m

📁 数字信号处理的一些MATLAB源程序
💻 M
字号:
%--------------------------------------------------------------------------
% exa090802_modulate.m,  for example 9.8.2
% to test modulate.m;
%
% 注:此程序在 MATLAB 5.3 下可以运行,在 MATLAB 6.1下可能无法运行!
%--------------------------------------------------------------------------
clear all;

% 得到待调数据;
t=0:.1:4*pi; 
x=sin(t);
fs=1;
fc=.25; 
subplot(321)
plot(x)
ylabel('  x(t)')

% 以下是不同的调制方式;
y=modulate(x,fc,fs,'am');
subplot(322)
plot(y)
ylabel('  for "am"')

y=modulate(x,fc,fs,'amdsb-tc');
subplot(323)
plot(y)
ylabel('  for "amdsb-tc"')

y=modulate(x,fc,fs,'amssb');
subplot(324)
plot(y)
ylabel('  for "amssb"')

y=modulate(x,fc,fs,'fm');
subplot(325)
plot(y)
ylabel('  for "fm"')

y=modulate(x,fc,fs,'pm');
subplot(326)
plot(y)
ylabel('  for "pm"')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -