[英]Frequency Modulation Matlab
i want to make a continious sinwave which will change his frequency 3 times, like in the photo. 我想制作一个连续的sinwave,它将改变他的频率3次,就像在照片中一样。 I tryied with the fmmod
function but i can't make it work, so is there any other way , thanks in advance. 我尝试了fmmod
函数,但是我无法使其正常工作,所以还有其他方法,谢谢。
here is my code 这是我的代码
Fs = 44100; % Sampling rate of signal
Fc = 3000; % Carrier frequency
t = [0:Fs-1]'/Fs; % Sampling times
x = sin(2*pi*4000*t)+sin(2*pi*5000*t)+sin(2*pi*8000*t); % my signal
dev = 50; % Frequency deviation in modulated signal
y = fmmod(x,Fc,Fs,dev);
plot(y)
Frequency modulation without fmmod: 不带fmmod的频率调制:
Fs = 44100; % Sampling rate of signal
T=1/Fs; % period
t = 0:T:0.01; % sample times
% amplitude of message signal
vm = 5
% amplitude of carrier signal
vc =5
% message frequency
fm =500
% carrier freq
fc = 5e3
% modulation index
m =5
figure
y = vc*sin(2*pi*fc*t+m.*cos(2*pi*fm*t));
plot(t,y);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.