please check this code .. im getting error that frequency should be less than Fs/2....
4 次查看(过去 30 天)
显示 更早的评论
clear; clc;
M=2^50;
freq_sep=100;
nsamp=6;
y=wavread('voice','native');
x=fi(y);
z=bin(x);
m=str2num(z); %#ok<ST2NM>
fsk_mod=fskmod(m,M,freq_sep,nsamp);
noise=awgn(fsk_mod,0);
fsk_demod=fskdemod(noise,M,freq_sep,nsamp);
[num,rate]=biterr(fsk_demod);
output=wavwrite('fsk_demod');
sound(output)
0 个评论
采纳的回答
Walter Roberson
2012-5-10
wavwrite() requires a minimum of two parameters, and never returns a value.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 FSK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!