SlideShare a Scribd company logo
1 of 22
Download to read offline
- 1/40 -
Instructor : Jaewook Kang
At CSNL-GIST
E-mail: jwkkang@gist.ac.kr
2011, Apr. 8th
A Simple Communication System Design
Lab with MATLAB Simulink
- Lab #4: - Completing our target system
- Channel implementation
- 2/40 -
Next time…Next time…
Place: IC203
Weeks Time Hour Instructor
1 week
Lab. #0
3.11
(13:00~
16:00)
3
- Overview of Development with Simulink
- QPSK Model with AWGN Channel/ Rayleigh Fading
Channel
- Development Example: Interference Cancellation for Satellite Communi
Junil Ahn
2 weeks
Lab. #1
3.18
(13:00~
14:20)
1.5 - Basic OFDM Junil Ahn
3.18
(14:30~
16:00)
1.5
- Introduction
- How to use Simulink with interleaver
implementation
Jaewook Kang
3 weeks
Lab. #2
3.25
(13:00~
16:00)
3
- How to use S-function builder
- PSF and Matched filter design
- Concept of upsampling and downsampling
Jaewook Kang
4 weeks
Lab. #3
4.1
(13:00~
16:00)
3
- Phase splitter
- Up conversion and down conversion
Jaewook Kang
5 weeks
Lab. #4
4.8
(13:00~
16:00)
3
- How to make subsystem
- Channel implementation
Jaewook Kang
- 3/40 -
Summary of prev. lectureSummary of prev. lecture
Up conversions
By multiplying to BB signals, we can obtain PB signals
We usually use k=4 IF=pi/2
In case of down conversion, only sign of exponent is opposite.
2
( ) ( ) ( )
( ) ( )
2 2
Re[ ( )] cos( ) sin( )
2 2
Im [ ( )] sin( ) cos( )
BB
j n
k
PB BB
s n x n jy n
s n s n e
s t x n y n
k k
ag s n x n y n
k k
π
π π
π π
−
= +
=
= −
= +
2
j t
k
e
π
−
where 2, integerk ≥
- 4/40 -
Summary of prev. lectureSummary of prev. lecture
Phase splitter
Since Tx only transmit real part of signals, we have to recover
the full complex signal from real part of the received signal.
When using FIR filter to implement Phase splitter, we have to
consider the delay of the filter (N-1)/2.
- 5/40 -
Summary of prev. lectureSummary of prev. lecture
Hilbert transform
Find imaginary part of Xc(t) from real part only when Xc(t) is complex exponential.
02j f t
Ae π
Re[]
Hilbert TR
+
02j f t
Ae π
Xc Xr
Xi_hat
Xc_hat
X
j
- 6/40 -
Today’s main pointsToday’s main points
Complete to make our target system
Let’s make a channel using simulink
How to use MATLAB function in sumulink
How to use variable from workspace
- 7/40 -
Our target systemOur target system
Tx part
Rx part
Tx Source Interleaver
QAM
Mapper
PSF X
NCO
↑4
Phase
Splitter
Matched
filter
QAM
DemapperX
NCO
↓4
De-
Interleaver
Rx Source
:Real
:Complex
- 8/40 -
Our target system in simulinkOur target system in simulink
- 9/40 -
Channel ImplementationChannel Implementation
Rcvd signal = Trmtd signal x
( large scale fading) x (small scaling fading )
+AWGN
Today mainly talk about large scale fading.
We are going to use Block Rayleigh/Rician fading for small scale
fading.
- 10/40 -
Fading channelFading channel
Tx
- is Rx
Large scale
fading
Small scale
fading
Fading channel = Large signal fading + small signal fading
- 11/40 -
Signal
attenuation due
to propagation
distance
Fading channelFading channel
Multipath fading
< Only small scale >< Large + Small scale >
- 12/40 -
Large scale fadingLarge scale fading
Log-distance path loss model
Aa one of the simplest model, we have use “log-distance path loss model”
Basically, the path loss is proportional to an nth-power of d/d0 in average sense.
Path loss is often represented by dB scale such that
0
0
where d is distance of two points to commni.
and d is the ref. distance (km)
p
d
L
d
∝
0
0
2
0
0 10
0 0
( ) ( ) 10 log( )
4 1
( ) 10log ,
p s
s
c
d
L dB L d n
d
d
L d
f u
π
λ
λ ε
= +
⎛ ⎞
= =⎜ ⎟
⎝ ⎠
0
0
0
d 1, for large cells
d 0.1, for micro cells
d 0.001, for indoor channels
=⎧
⎪
=⎨
⎪ =⎩
Path loss exponent, n
2, in free space
2, urban space, or place w/ many obstructions
n<2, w/ strong guided wave
n
n
−
=⎧
⎪
>⎨
⎪
⎩
- 13/40 -
Large scale fadingLarge scale fading
Log-distance path loss model
However, model just provide average of path loss.
It is necessary to provide for variations about the mean such that
we have log-normal model.
Then, how to make use it in simulation ?
0
0
( ) ( ) 10 log( )p s
d
L dB L d n
d
= +
2
0
0
( ) ( ) 10 log( ) where ~ (0, )p s
d
L dB L d n X X N
d
σ σ σ= + +
2
0
10 10 10
0
2
10
10
0
2
10
0
2
10
0
4
( ) 10log 10log ( ) log 10
4
10log ( ) 10
4
(linear scale) ( ) 10
4
(path loss gain)= ( ) 10
Xn
p
Xn
Xn
p
Xn
d d
L dB
d
d d
d
d d
L
d
d d
K
d
σ
σ
σ
σ
π
λ
π
λ
π
λ
π
λ
−
−
−
⎛ ⎞
= + +⎜ ⎟
⎝ ⎠
⎛ ⎞
= ⎜ ⎟
⎝ ⎠
⎛ ⎞
= ⎜ ⎟
⎝ ⎠
⎛ ⎞
⎜ ⎟
⎝ ⎠
- 14/40 -
Small scale fadingSmall scale fading
Block Rayleigh fading
A well-known and one of the simplest channels.
By CLT, sum of a large number of stochastic components follows zero mean
complex Gaussian with unit variance.
Block fading channel
2 2 1
~ (0,1)
~ , tan ~ ( , )
Let C X jY X and Y N
Y
r X Y Rayleigh uniform
X
θ π π−
= +
= + = −
- 15/40 -
Small scale fadingSmall scale fading
Block Rician fading
If LOS exist, the small scale fading channel is called Rician fading channels.
2 2 1
~ (0,1)
( ) ( )
) ( ) ~ , tan ~ ( , )
2 2
where A is magnitude of LOS
Let X and Y N
Then C X A j Y A
A A Y
r X Y Rician uniform
X
θ π π−
= + + +
= + + + = −
Y
X
var=1
Y
X
var=1
0
( , )
2 2
A A
A
< Rician >< Rayleigh >
- 16/40 -
Channel ImplementationChannel Implementation
Let implement your own channel model using
simulink
Let do it together !!
- 17/40 -
Channel ImplementationChannel Implementation
Block to use MATLAB functions
The first block works like a MATLAB function.
The second function is used like m-script by writing
down combination of functions and parameters.
The 3rd block is user-defined version of the first one
- 18/40 -
Channel ImplementationChannel Implementation
How to bring variables from the workspace
In order to bring data from the workspace,
you should change the data format to “struct” type.
The structure should includes time and signal
field.
In addition, the signal field also should have
field for values and dimension of the signal.
An example
% make channel data in structure type.
hSR=sqrt(1/2)*(randn(NumOfsym,1)+A+j*(randn(NumO
fsym,1)+A) );
hSRout.time=1:length(hSR);
hSRout.signals.values=hSR;
hSRout.signals.dimensions=1;
- 19/40 -
Channel ImplementationChannel Implementation
How to make subsystem
1) Specify your inputs and outputs in the block
- 20/40 -
Channel ImplementationChannel Implementation
How to make subsystems
2) Select all block to compose the subsystem and click “Create
subsystem”.
- 21/40 -
Channel ImplementationChannel Implementation
How to make subsystems
3-1) Click Mask subsystem
3-2) Specify your block and port names
3-3) Set parameters and put some description for your block.
- 22/40 -
Wrapping upWrapping up
Try again to make your own channel block and use it in your
simulation.
Retry to make blocks which are not completed in previous class.
Thank you for attending this class.
This is the end of the Simulink education program.
If you have some question while doing your project using simulink,
please bring food with your trouble.

More Related Content

What's hot

SPU Optimizations - Part 2
SPU Optimizations - Part 2SPU Optimizations - Part 2
SPU Optimizations - Part 2Naughty Dog
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transformskalung0313
 
fft using labview
fft using labviewfft using labview
fft using labviewkiranrockz
 
Math cad fourier analysis (jcb-edited)
Math cad   fourier analysis (jcb-edited)Math cad   fourier analysis (jcb-edited)
Math cad fourier analysis (jcb-edited)Julio Banks
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transformsIffat Anjum
 
Fft analysis
Fft analysisFft analysis
Fft analysisSatrious
 
A peek on numerical programming in perl and python e christopher dyken 2005
A peek on numerical programming in perl and python  e christopher dyken  2005A peek on numerical programming in perl and python  e christopher dyken  2005
A peek on numerical programming in perl and python e christopher dyken 2005Jules Krdenas
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformAmr E. Mohamed
 
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoidFourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoidXavier Davias
 
Yampa AFRP Introduction
Yampa AFRP IntroductionYampa AFRP Introduction
Yampa AFRP IntroductionChengHui Weng
 
OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...
OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...
OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...NECST Lab @ Politecnico di Milano
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applicationsAgam Goel
 
An evaluation of LLVM compiler for SVE with fairly complicated loops
An evaluation of LLVM compiler for SVE with fairly complicated loopsAn evaluation of LLVM compiler for SVE with fairly complicated loops
An evaluation of LLVM compiler for SVE with fairly complicated loopsLinaro
 
Tail call optimization (TCO) - Lecture
Tail call optimization (TCO) - LectureTail call optimization (TCO) - Lecture
Tail call optimization (TCO) - LectureJesse Frankley
 
Presentation on fourier transformation
Presentation on fourier transformationPresentation on fourier transformation
Presentation on fourier transformationWasim Shah
 
Data converter modelingの参考資料1
Data converter modelingの参考資料1Data converter modelingの参考資料1
Data converter modelingの参考資料1Tsuyoshi Horigome
 

What's hot (20)

SPU Optimizations - Part 2
SPU Optimizations - Part 2SPU Optimizations - Part 2
SPU Optimizations - Part 2
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
Fft analysis
Fft analysisFft analysis
Fft analysis
 
fft using labview
fft using labviewfft using labview
fft using labview
 
Math cad fourier analysis (jcb-edited)
Math cad   fourier analysis (jcb-edited)Math cad   fourier analysis (jcb-edited)
Math cad fourier analysis (jcb-edited)
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
Dft,fft,windowing
Dft,fft,windowingDft,fft,windowing
Dft,fft,windowing
 
Fft analysis
Fft analysisFft analysis
Fft analysis
 
A peek on numerical programming in perl and python e christopher dyken 2005
A peek on numerical programming in perl and python  e christopher dyken  2005A peek on numerical programming in perl and python  e christopher dyken  2005
A peek on numerical programming in perl and python e christopher dyken 2005
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoidFourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
 
Chapter6 sampling
Chapter6 samplingChapter6 sampling
Chapter6 sampling
 
Yampa AFRP Introduction
Yampa AFRP IntroductionYampa AFRP Introduction
Yampa AFRP Introduction
 
OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...
OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...
OXiGen: A tool for automatic acceleration of C functions into dataflow FPGA-b...
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
 
An evaluation of LLVM compiler for SVE with fairly complicated loops
An evaluation of LLVM compiler for SVE with fairly complicated loopsAn evaluation of LLVM compiler for SVE with fairly complicated loops
An evaluation of LLVM compiler for SVE with fairly complicated loops
 
Fft
FftFft
Fft
 
Tail call optimization (TCO) - Lecture
Tail call optimization (TCO) - LectureTail call optimization (TCO) - Lecture
Tail call optimization (TCO) - Lecture
 
Presentation on fourier transformation
Presentation on fourier transformationPresentation on fourier transformation
Presentation on fourier transformation
 
Data converter modelingの参考資料1
Data converter modelingの参考資料1Data converter modelingの参考資料1
Data converter modelingの参考資料1
 

Similar to A Simple Communication System Design Lab #4 with MATLAB Simulink

Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record Yuvraj Singh
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Amairullah Khan Lodhi
 
fyp....fyp.....fyp.....
fyp....fyp.....fyp.....fyp....fyp.....fyp.....
fyp....fyp.....fyp.....VisualBee.com
 
Report Simulations of Communication Systems
Report Simulations of Communication SystemsReport Simulations of Communication Systems
Report Simulations of Communication SystemsFerro Demetrio
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
RFC's impact on project using Kolmogorov model and Python
RFC's impact on project using Kolmogorov model and PythonRFC's impact on project using Kolmogorov model and Python
RFC's impact on project using Kolmogorov model and PythonJean-Luc Caut
 
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering ChannelsLTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering ChannelsIllaKolani1
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxHamzaJaved306957
 
Digital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course OutlineDigital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course OutlineMohammad Sohai Khan Niazi
 
Dsp manual completed2
Dsp manual completed2Dsp manual completed2
Dsp manual completed2bilawalali74
 
Copy of colloquium 3 latest
Copy of  colloquium 3 latestCopy of  colloquium 3 latest
Copy of colloquium 3 latestshaik fairooz
 

Similar to A Simple Communication System Design Lab #4 with MATLAB Simulink (20)

OFDM
OFDMOFDM
OFDM
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
 
Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual Digital Signal Processing Lab Manual
Digital Signal Processing Lab Manual
 
fyp....fyp.....fyp.....
fyp....fyp.....fyp.....fyp....fyp.....fyp.....
fyp....fyp.....fyp.....
 
ECE 565 FInal Project
ECE 565 FInal ProjectECE 565 FInal Project
ECE 565 FInal Project
 
Report Simulations of Communication Systems
Report Simulations of Communication SystemsReport Simulations of Communication Systems
Report Simulations of Communication Systems
 
J0166875
J0166875J0166875
J0166875
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
RFC's impact on project using Kolmogorov model and Python
RFC's impact on project using Kolmogorov model and PythonRFC's impact on project using Kolmogorov model and Python
RFC's impact on project using Kolmogorov model and Python
 
Project Management Techniques
Project Management TechniquesProject Management Techniques
Project Management Techniques
 
Dsp file
Dsp fileDsp file
Dsp file
 
Skyline queries
Skyline queriesSkyline queries
Skyline queries
 
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering ChannelsLTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
 
dsp.pdf
dsp.pdfdsp.pdf
dsp.pdf
 
MLMM_16_08_2022.pdf
MLMM_16_08_2022.pdfMLMM_16_08_2022.pdf
MLMM_16_08_2022.pdf
 
Digital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course OutlineDigital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course Outline
 
Dsp manual completed2
Dsp manual completed2Dsp manual completed2
Dsp manual completed2
 
Dsp lab pdf
Dsp lab pdfDsp lab pdf
Dsp lab pdf
 
Copy of colloquium 3 latest
Copy of  colloquium 3 latestCopy of  colloquium 3 latest
Copy of colloquium 3 latest
 

More from Jaewook. Kang

181123 poseest101 devfest_pangyo_jwkang
181123 poseest101 devfest_pangyo_jwkang181123 poseest101 devfest_pangyo_jwkang
181123 poseest101 devfest_pangyo_jwkangJaewook. Kang
 
Cloud tpu jae_180814
Cloud tpu jae_180814Cloud tpu jae_180814
Cloud tpu jae_180814Jaewook. Kang
 
180624 mobile visionnet_baeksucon_jwkang_pub
180624 mobile visionnet_baeksucon_jwkang_pub180624 mobile visionnet_baeksucon_jwkang_pub
180624 mobile visionnet_baeksucon_jwkang_pubJaewook. Kang
 
180525 mobile visionnet_hanlim_extended
180525 mobile visionnet_hanlim_extended180525 mobile visionnet_hanlim_extended
180525 mobile visionnet_hanlim_extendedJaewook. Kang
 
EveryBody Tensorflow module3 GIST Jan 2018 Korean
EveryBody Tensorflow module3 GIST Jan 2018 KoreanEveryBody Tensorflow module3 GIST Jan 2018 Korean
EveryBody Tensorflow module3 GIST Jan 2018 KoreanJaewook. Kang
 
EveryBody Tensorflow module2 GIST Jan 2018 Korean
EveryBody Tensorflow module2 GIST Jan 2018 KoreanEveryBody Tensorflow module2 GIST Jan 2018 Korean
EveryBody Tensorflow module2 GIST Jan 2018 KoreanJaewook. Kang
 
EveryBody Tensorflow module1 GIST Jan 2018 Korean
EveryBody Tensorflow module1 GIST Jan 2018 KoreanEveryBody Tensorflow module1 GIST Jan 2018 Korean
EveryBody Tensorflow module1 GIST Jan 2018 KoreanJaewook. Kang
 
[Tf2017] day1 jwkang_pub
[Tf2017] day1 jwkang_pub[Tf2017] day1 jwkang_pub
[Tf2017] day1 jwkang_pubJaewook. Kang
 
[Tf2017] day4 jwkang_pub
[Tf2017] day4 jwkang_pub[Tf2017] day4 jwkang_pub
[Tf2017] day4 jwkang_pubJaewook. Kang
 
[Tf2017] day3 jwkang_pub
[Tf2017] day3 jwkang_pub[Tf2017] day3 jwkang_pub
[Tf2017] day3 jwkang_pubJaewook. Kang
 
[Tf2017] day2 jwkang_pub
[Tf2017] day2 jwkang_pub[Tf2017] day2 jwkang_pub
[Tf2017] day2 jwkang_pubJaewook. Kang
 
MATLAB Programming BASIC @ GIST winter school 2015
MATLAB Programming BASIC @ GIST winter school 2015 MATLAB Programming BASIC @ GIST winter school 2015
MATLAB Programming BASIC @ GIST winter school 2015 Jaewook. Kang
 
Jaewook Kang's Phd final defense @ 20151117
Jaewook Kang's  Phd final defense @ 20151117Jaewook Kang's  Phd final defense @ 20151117
Jaewook Kang's Phd final defense @ 20151117Jaewook. Kang
 
Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...
Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...
Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...Jaewook. Kang
 

More from Jaewook. Kang (15)

181123 poseest101 devfest_pangyo_jwkang
181123 poseest101 devfest_pangyo_jwkang181123 poseest101 devfest_pangyo_jwkang
181123 poseest101 devfest_pangyo_jwkang
 
Cloud tpu jae_180814
Cloud tpu jae_180814Cloud tpu jae_180814
Cloud tpu jae_180814
 
180624 mobile visionnet_baeksucon_jwkang_pub
180624 mobile visionnet_baeksucon_jwkang_pub180624 mobile visionnet_baeksucon_jwkang_pub
180624 mobile visionnet_baeksucon_jwkang_pub
 
180525 mobile visionnet_hanlim_extended
180525 mobile visionnet_hanlim_extended180525 mobile visionnet_hanlim_extended
180525 mobile visionnet_hanlim_extended
 
EveryBody Tensorflow module3 GIST Jan 2018 Korean
EveryBody Tensorflow module3 GIST Jan 2018 KoreanEveryBody Tensorflow module3 GIST Jan 2018 Korean
EveryBody Tensorflow module3 GIST Jan 2018 Korean
 
EveryBody Tensorflow module2 GIST Jan 2018 Korean
EveryBody Tensorflow module2 GIST Jan 2018 KoreanEveryBody Tensorflow module2 GIST Jan 2018 Korean
EveryBody Tensorflow module2 GIST Jan 2018 Korean
 
EveryBody Tensorflow module1 GIST Jan 2018 Korean
EveryBody Tensorflow module1 GIST Jan 2018 KoreanEveryBody Tensorflow module1 GIST Jan 2018 Korean
EveryBody Tensorflow module1 GIST Jan 2018 Korean
 
[Tf2017] day1 jwkang_pub
[Tf2017] day1 jwkang_pub[Tf2017] day1 jwkang_pub
[Tf2017] day1 jwkang_pub
 
[Tf2017] day4 jwkang_pub
[Tf2017] day4 jwkang_pub[Tf2017] day4 jwkang_pub
[Tf2017] day4 jwkang_pub
 
[Tf2017] day3 jwkang_pub
[Tf2017] day3 jwkang_pub[Tf2017] day3 jwkang_pub
[Tf2017] day3 jwkang_pub
 
[Tf2017] day2 jwkang_pub
[Tf2017] day2 jwkang_pub[Tf2017] day2 jwkang_pub
[Tf2017] day2 jwkang_pub
 
Life is stair-like
Life is stair-likeLife is stair-like
Life is stair-like
 
MATLAB Programming BASIC @ GIST winter school 2015
MATLAB Programming BASIC @ GIST winter school 2015 MATLAB Programming BASIC @ GIST winter school 2015
MATLAB Programming BASIC @ GIST winter school 2015
 
Jaewook Kang's Phd final defense @ 20151117
Jaewook Kang's  Phd final defense @ 20151117Jaewook Kang's  Phd final defense @ 20151117
Jaewook Kang's Phd final defense @ 20151117
 
Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...
Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...
Introduction to Soundlly 2nd screen services and technology: Seminar in 금오공대 ...
 

Recently uploaded

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 

Recently uploaded (20)

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 

A Simple Communication System Design Lab #4 with MATLAB Simulink

  • 1. - 1/40 - Instructor : Jaewook Kang At CSNL-GIST E-mail: jwkkang@gist.ac.kr 2011, Apr. 8th A Simple Communication System Design Lab with MATLAB Simulink - Lab #4: - Completing our target system - Channel implementation
  • 2. - 2/40 - Next time…Next time… Place: IC203 Weeks Time Hour Instructor 1 week Lab. #0 3.11 (13:00~ 16:00) 3 - Overview of Development with Simulink - QPSK Model with AWGN Channel/ Rayleigh Fading Channel - Development Example: Interference Cancellation for Satellite Communi Junil Ahn 2 weeks Lab. #1 3.18 (13:00~ 14:20) 1.5 - Basic OFDM Junil Ahn 3.18 (14:30~ 16:00) 1.5 - Introduction - How to use Simulink with interleaver implementation Jaewook Kang 3 weeks Lab. #2 3.25 (13:00~ 16:00) 3 - How to use S-function builder - PSF and Matched filter design - Concept of upsampling and downsampling Jaewook Kang 4 weeks Lab. #3 4.1 (13:00~ 16:00) 3 - Phase splitter - Up conversion and down conversion Jaewook Kang 5 weeks Lab. #4 4.8 (13:00~ 16:00) 3 - How to make subsystem - Channel implementation Jaewook Kang
  • 3. - 3/40 - Summary of prev. lectureSummary of prev. lecture Up conversions By multiplying to BB signals, we can obtain PB signals We usually use k=4 IF=pi/2 In case of down conversion, only sign of exponent is opposite. 2 ( ) ( ) ( ) ( ) ( ) 2 2 Re[ ( )] cos( ) sin( ) 2 2 Im [ ( )] sin( ) cos( ) BB j n k PB BB s n x n jy n s n s n e s t x n y n k k ag s n x n y n k k π π π π π − = + = = − = + 2 j t k e π − where 2, integerk ≥
  • 4. - 4/40 - Summary of prev. lectureSummary of prev. lecture Phase splitter Since Tx only transmit real part of signals, we have to recover the full complex signal from real part of the received signal. When using FIR filter to implement Phase splitter, we have to consider the delay of the filter (N-1)/2.
  • 5. - 5/40 - Summary of prev. lectureSummary of prev. lecture Hilbert transform Find imaginary part of Xc(t) from real part only when Xc(t) is complex exponential. 02j f t Ae π Re[] Hilbert TR + 02j f t Ae π Xc Xr Xi_hat Xc_hat X j
  • 6. - 6/40 - Today’s main pointsToday’s main points Complete to make our target system Let’s make a channel using simulink How to use MATLAB function in sumulink How to use variable from workspace
  • 7. - 7/40 - Our target systemOur target system Tx part Rx part Tx Source Interleaver QAM Mapper PSF X NCO ↑4 Phase Splitter Matched filter QAM DemapperX NCO ↓4 De- Interleaver Rx Source :Real :Complex
  • 8. - 8/40 - Our target system in simulinkOur target system in simulink
  • 9. - 9/40 - Channel ImplementationChannel Implementation Rcvd signal = Trmtd signal x ( large scale fading) x (small scaling fading ) +AWGN Today mainly talk about large scale fading. We are going to use Block Rayleigh/Rician fading for small scale fading.
  • 10. - 10/40 - Fading channelFading channel Tx - is Rx Large scale fading Small scale fading Fading channel = Large signal fading + small signal fading
  • 11. - 11/40 - Signal attenuation due to propagation distance Fading channelFading channel Multipath fading < Only small scale >< Large + Small scale >
  • 12. - 12/40 - Large scale fadingLarge scale fading Log-distance path loss model Aa one of the simplest model, we have use “log-distance path loss model” Basically, the path loss is proportional to an nth-power of d/d0 in average sense. Path loss is often represented by dB scale such that 0 0 where d is distance of two points to commni. and d is the ref. distance (km) p d L d ∝ 0 0 2 0 0 10 0 0 ( ) ( ) 10 log( ) 4 1 ( ) 10log , p s s c d L dB L d n d d L d f u π λ λ ε = + ⎛ ⎞ = =⎜ ⎟ ⎝ ⎠ 0 0 0 d 1, for large cells d 0.1, for micro cells d 0.001, for indoor channels =⎧ ⎪ =⎨ ⎪ =⎩ Path loss exponent, n 2, in free space 2, urban space, or place w/ many obstructions n<2, w/ strong guided wave n n − =⎧ ⎪ >⎨ ⎪ ⎩
  • 13. - 13/40 - Large scale fadingLarge scale fading Log-distance path loss model However, model just provide average of path loss. It is necessary to provide for variations about the mean such that we have log-normal model. Then, how to make use it in simulation ? 0 0 ( ) ( ) 10 log( )p s d L dB L d n d = + 2 0 0 ( ) ( ) 10 log( ) where ~ (0, )p s d L dB L d n X X N d σ σ σ= + + 2 0 10 10 10 0 2 10 10 0 2 10 0 2 10 0 4 ( ) 10log 10log ( ) log 10 4 10log ( ) 10 4 (linear scale) ( ) 10 4 (path loss gain)= ( ) 10 Xn p Xn Xn p Xn d d L dB d d d d d d L d d d K d σ σ σ σ π λ π λ π λ π λ − − − ⎛ ⎞ = + +⎜ ⎟ ⎝ ⎠ ⎛ ⎞ = ⎜ ⎟ ⎝ ⎠ ⎛ ⎞ = ⎜ ⎟ ⎝ ⎠ ⎛ ⎞ ⎜ ⎟ ⎝ ⎠
  • 14. - 14/40 - Small scale fadingSmall scale fading Block Rayleigh fading A well-known and one of the simplest channels. By CLT, sum of a large number of stochastic components follows zero mean complex Gaussian with unit variance. Block fading channel 2 2 1 ~ (0,1) ~ , tan ~ ( , ) Let C X jY X and Y N Y r X Y Rayleigh uniform X θ π π− = + = + = −
  • 15. - 15/40 - Small scale fadingSmall scale fading Block Rician fading If LOS exist, the small scale fading channel is called Rician fading channels. 2 2 1 ~ (0,1) ( ) ( ) ) ( ) ~ , tan ~ ( , ) 2 2 where A is magnitude of LOS Let X and Y N Then C X A j Y A A A Y r X Y Rician uniform X θ π π− = + + + = + + + = − Y X var=1 Y X var=1 0 ( , ) 2 2 A A A < Rician >< Rayleigh >
  • 16. - 16/40 - Channel ImplementationChannel Implementation Let implement your own channel model using simulink Let do it together !!
  • 17. - 17/40 - Channel ImplementationChannel Implementation Block to use MATLAB functions The first block works like a MATLAB function. The second function is used like m-script by writing down combination of functions and parameters. The 3rd block is user-defined version of the first one
  • 18. - 18/40 - Channel ImplementationChannel Implementation How to bring variables from the workspace In order to bring data from the workspace, you should change the data format to “struct” type. The structure should includes time and signal field. In addition, the signal field also should have field for values and dimension of the signal. An example % make channel data in structure type. hSR=sqrt(1/2)*(randn(NumOfsym,1)+A+j*(randn(NumO fsym,1)+A) ); hSRout.time=1:length(hSR); hSRout.signals.values=hSR; hSRout.signals.dimensions=1;
  • 19. - 19/40 - Channel ImplementationChannel Implementation How to make subsystem 1) Specify your inputs and outputs in the block
  • 20. - 20/40 - Channel ImplementationChannel Implementation How to make subsystems 2) Select all block to compose the subsystem and click “Create subsystem”.
  • 21. - 21/40 - Channel ImplementationChannel Implementation How to make subsystems 3-1) Click Mask subsystem 3-2) Specify your block and port names 3-3) Set parameters and put some description for your block.
  • 22. - 22/40 - Wrapping upWrapping up Try again to make your own channel block and use it in your simulation. Retry to make blocks which are not completed in previous class. Thank you for attending this class. This is the end of the Simulink education program. If you have some question while doing your project using simulink, please bring food with your trouble.