Frequency modulating a wav file?
10 次查看(过去 30 天)
显示 更早的评论
Hi, i'm trying to frequency modulate an arbitary input wav file with a periodic wave. I was wondering how to do this because basic maths for frequency modulation depends on simple sine waves and i'm trying to modulate a non periodic complex waveform?
Any help would be greatly appreciated!
0 个评论
回答(3 个)
Siddharth Shankar
2011-1-31
This is assuming that you've already imported the WAV file into MATLAB. If not, use wavread to do this.
1 个评论
Vieniava
2011-1-31
when .wav is one-channel (not stereo):
[x fs]=wavread('NonPeriodic.wav');
Fc=1e6; % carrier = 1MHz
FS=2.2*Fc; % sampling frequency for output signal
deviation=75e3; % freq. deviation
smod=fmmod(x, Fc, FS, deviation);
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Waveform Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!