fm=100; %message freq.
fc=2000; %carrier freq.
fs=10*fc; %sample freq.
Am=8;
Ac=10;
m_index=Am/Ac;
ts=1/fs;
t=0:ts:5*(fs/fm)*ts;
xm=Am*cos(2*pi*fm*t);
xc=Ac*cos(2*pi*fc*t);
z=ammod(xm,fc,fs,0,10);
d=amdemod(z,fc,fs,0,10);
n=length(d);
z=fftshift(fft(d));
f1=(-n/2:n/2-1)*fs/n;

댓글 수: 6

Supratik Das
Supratik Das 2019년 4월 1일
anyone plzz correct the ammod() function
Walter Roberson
Walter Roberson 2019년 4월 1일
What error are you observing? I do not get any error message when I execute that code.
Supratik Das
Supratik Das 2019년 4월 1일
plzz rectify the code anyone
Supratik Das
Supratik Das 2019년 4월 1일
z= ammod(xm,fc,fs,0,10) this line shows error
Supratik Das
Supratik Das 2019년 4월 1일
an error message:
'ammod' requires Communications Toolbox.
Error in
z=ammod(xm,fc,fs,0,10);
Walter Roberson
Walter Roberson 2019년 4월 1일
You need to license and install the Communications Toolbox. It is an optional toolbox that is not included in the Student Bundle.

댓글을 달려면 로그인하십시오.

답변 (1개)

Bhukya Sandhya
Bhukya Sandhya 2024년 4월 8일

0 개 추천

% carrier Frequency
Fc = 200;
% sampling frequency
Fs= 4000;
% time Duration
t = (0 : 1 / Fs : 1);
% sine Wave with time duration of 't'
x = sin(2*pi*t);
% Amplitude Modulation
y = ammod(x, Fc, Fs);
plot(y);
title('Amplitude Modulation');
xlabel('Time(sec)');
ylabel('Amplitude');

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2019년 4월 1일

답변:

2024년 4월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by