통신시스템_FM설계
- 최초 등록일
- 2012.01.07
- 최종 저작일
- 2011.06
- 4페이지/ 한컴오피스
- 가격 2,000원
소개글
만점자료입니다.
목차
1. 시간 영역과 주파수 영역에서 변조된 신호를 그려라.
2. 복조기 출력과 원래의 메시지 신호를 비교하라.
본문내용
☞ 변조된 신호의 위상을 미분하여 로 나누면 원래의 신호로 복조할 수 있다. 위의 그래프와 같이 복조된 신호가 메시지 신호와 거의 같음을 확인할 수 있다.
<matalb 소스 코드>
comm_fm.m
clear, clc, close all
%Script for frequency modulation.
echo on %명령어가 command 창에 출력된다.
t0=2; %Condition - signal time length
ts=0.001; %Sampling time
fc=250; %Carrier Frequency
fs=1/ts; %Sampling Frequency
df=0.25; %Desired Frequency
t=[-t0/2:ts:t0/2]; %ts간격으로 -1에서 1까지 시간 t정의
kf=100; %편차 상수 정의
m=sinc(100*t); %Message signal
int_m(1)=0;
for i=1:length(t)-1
int_m(i+1)=int_m(i)+m(i)*ts; %Integral of m.
echo off
end
echo on %명령어가 command 창에 출력된다.
[M,m,df1]=fft_seq(m,ts,df); %Fourier transform of the Message signal
M=M/fs; %Normalization
f=[0:df1:df1*(length(m)-1)]-fs/2; % Definition frequency region
u=cos(2*pi*fc*t+2*pi*kf*int_m); % FM modulated signal.
[U,u,df1]=fft_seq(u,ts,df); %Fourier transform of the FM modulated signal
U=U/fs; %Normalization
[v,phase]=env_phas(u,ts,250); %Demodulation of the FM modulated signal.
phi=unwrap(phase); %위상각 정정
dem=(1/(2*pi*kf))*(diff(phi)/ts); %Demodulated signal.(Differentiate and scale phase)
pause %사용자가 아무키나 누를 때까지 잠시 멈춘다.
subplot(2,1,1)
plot(t,m(1:length(t))) %Plot the message signal
xlabel(`Time`)
title(`The message signal`)
subplot(2,1,2)
plot(t,u(1:length(t))) %Plot the modulated signal
xlabel(`Time`)
title(`The modulated signal`)
pause %사용자가 아무키나 누를 때까지 잠시 멈춘다.
참고 자료
없음