plz mail me a code for frequency modulator and demodulator

 채택된 답변

ES
ES 2013년 12월 3일

1 개 추천

If you have Communication Toolbox, all standard modulation and de-modulation functions are defined in that. If you do not have it, you will have to code it based on the equations from your text book.

댓글 수: 3

NAQASH AWAN
NAQASH AWAN 2013년 12월 5일
편집: Walter Roberson 2013년 12월 5일
i want a code for SIN function like this
Fs = 8000; % Sampling rate of signal
Fc = 3000; % Carrier frequency
t = [0:Fs-1]'/Fs; % Sampling times
s1 = sin(2*pi*300*t)+2*sin(2*pi*600*t); % Channel 1
s2 = sin(2*pi*150*t)+2*sin(2*pi*900*t); % Channel 2
x = [s1,s2]; % Two-channel signal
dev = 50; % Frequency deviation in modulated signal
y = fmmod(x,Fc,Fs,dev); % Modulate both channels.
z = fmdemod(y,Fc,Fs,dev); % Demodulate both channels.
plot(z);
this code not work properly
Walter Roberson
Walter Roberson 2013년 12월 5일
편집: Walter Roberson 2013년 12월 5일
What do you observe when you run it? Is there an error message? How does the output differ from what you expect?
Note: that code cannot work, as you try to plot a variable "z" that you have never assigned a value to.
NAQASH AWAN
NAQASH AWAN 2013년 12월 10일
z is the output for demodulated single r u send me a code like this that have a sine function and that code perform the modulation and demodulation i shall be thankful to you

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

추가 답변 (0개)

카테고리

질문:

2013년 12월 3일

댓글:

2013년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by