AM modulated and demodulated signal

3 ビュー (過去 30 日間)
Mahabba Almheiri
Mahabba Almheiri 2020 年 12 月 9 日
回答済み: Shraddha Jain 2020 年 12 月 15 日
I run this code but I have mistake in this part :
y_demod =amdemod(y_received,Fc,Fs,0);
can anyone help me with the correct syntax.
[y,Fs]=audioread("SpeechDFT-16-8-mono-5secs.wav") %Input audio
m=0.95 % Modulation Index
snr= 60;
Fc = 150e6; % Carrier Frequency
Fs= 300e6; %sampling frequency
AM = ammod(y,Fc,Fs,0,max(y)/m);
y_received = awgn(AM,60);
y_demod =amdemod(y_received,Fc,Fs,0);
figure
plot(y_received)
title('AM signal over AWGN');
xlabel('Time(sec)');
ylabel('Amplitude');
(y -y_demod ) % Errors
(y - y_demod).^2 % Squared Error
mean((y - y_demod).^2) % Mean Squared Error
RMSE = sqrt(mean((y - y_demod).^2)); % Root Mean Squared Error
  1 件のコメント
Mathieu NOE
Mathieu NOE 2020 年 12 月 9 日
hello
first I checked that : The value of Fs must satisfy Fs ≥ 2Fc.
this is ok
then I wonder why you overwrite Fs :
[y,Fs]=audioread("SpeechDFT-16-8-mono-5secs.wav") %Input audio
then latter on :
Fs= 300e6; %sampling frequency
are you sure that the two Fs are the same value ?

サインインしてコメントする。

回答 (1 件)

Shraddha Jain
Shraddha Jain 2020 年 12 月 15 日
Hi Mahabba,
Your syntax for amdemod() seems okay to me. Could you elaborate more on the error you are encountering?

カテゴリ

Help Center および File ExchangePHY Components についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by