SlideShare a Scribd company logo
1 of 7
Download to read offline
Lab Report 03:
Submitted By :
Syed Abuzar Hussain Shah
SP15-BEE-096
Uzair Ahmed
SP15-BEE-106
Syed Hasnain Shah
SP15-BEE-100
Submitted To: Sir Usman
Class: BEE-5A
Dated: 30/03/2017
DTFT, Reconstruction of Sampled Signal & effect of
reconstruction time period.
Objective:
In today’s Lab we will take results from previous lab i.e. the sampled signal
achieved at the end of Lab 2 and convert it back to continuous time signal. In
this lab the effect of reconstruction timeperiod on continuous time signal will
also be analyzed.
Commands to be used:
• plot
• real
• exp
• imag
• diff
• sin/cos
• fft
• fftshift
• hold on/off
Task 1:
Let your m-file be named DTFT as in this part we are generating a function that
can be used in future.
a. Syntax for generating functions:
function [output parameters]=name_such_as_DTFT (input parameters)
b. Let us consider the DTFT Formula 𝑋( ) = ∑
c. Let variable w represent 𝝎 and its limits be −2𝜋 < 𝜔 < 2𝜋
d. Let the discrete signal retrieved from step 3 be x[n]. Then, with help of
transpose multiplication implement the above formula given in step 4.b.
Matlab Coding:
DTFT Function:
function [w, X] = DTFT(x)
w = -2*pi:0.01:2*pi;
n = 0:length(x)-1;
temp = w'*n;
temp = -1i*temp;
e = exp(temp);
X = e*x';
end
Coding:
clc
clear all;
close all;
load signal
fs=1000;
samp_freq=2*sf;
[w,Z]=DTFT(z);
subplot(231)
stem(z)
ylabel('x[n]')
title(['Original Signal sf=' num2str(sf) 'Hz'])
xlabel('n')
subplot(232)
plot(w,abs(Z))
title('FFT of x[n]')
ylabel('|X(e^j^ omega)|')
xlabel('omega')
Task 2:
 Let Tr be the reconstruction time period, and let it value be 1/100.
(Fr=1/ Tr)
 Now generate a signal sinc(πn/T𝑟) using the command sinc & pi where
n=[0:length(x)*Fr]./Fr. ‘n’is normalized because a sinc function always
generate a zero on all integer multiples of pi. In order to generate a
sinc(πn/T𝑟) , it is required that zero crossing occurs on only 1/Tr.
 For convolution you can use conv command but then you will not be able
to understand the step by step analysis. Therefore, we would use the
following steps to execute convolution in a step wise visualmanner:
1. Let x be our standing signal and sinc be the moving.
2. Flip sinc but as sinc is symmetric on ‘0’ so flipping will result in the
same step.
3. Let x_r be 0 & there be a loop with integer value k. And let it be
initialized by 0.
4. Shift the sinc function to by n(Fr k+1) & dot multiply by x by shifted
sinc and add into x_r.
5. Let step 7.d be repeated for k values, where is maximum equal to length
of x. Use plot, hold & waitforbuttonpress to view each step of
convolution visually.
 Now change the value of Fr to the actual sampling frequency as taken in
Lab 2, and analyze the reconstruction.
 Alter the Fr, to different scales of actual sampling frequency as taken in
Lab 2 and analyze the reconstructed signal.
Matlab Coding:
fr=samp_freq;
Tr=1/fr;
len=length(z)-1;
n=(0:len*fr)/fr;
x=zeros(1,len*fr+1);
for i=0:len
x(1,i*fr+1)=z(i+1);
end
%Sinc Function And Zero Padding:
s=sinc(pi*n); %sin(2 pi t/2 Tr)
subplot(233)
stem(n,x)
title('zero padded signal')
xlabel('nT_r')
ylabel('x[nT_r]')
subplot(234)
plot(n,s)
title('sinc function')
ylabel('s(t)=sinc(2* pi /Tr *t)')
xlabel('t(msec)')
%Convolution Step by Step
x_rec=0;
for i=0:length(z)-1
u=z(i+1)*sinc(pi*(n-n(i*fr+1))/2);
x_rec=x_rec+u;
subplot(235)
stem(n,x)
hold on
plot(n,z(i+1)*sinc(pi*(n-n(i*fr+1))/2),'r')
hold off
grid on
subplot(236)
plot(n,x_rec)
title(['Tr=' num2str(fr/samp_freq) 'Ts & T actual is 20 msec' ]);
xlabel 't(ms)'
ylabel 'x_r(t)'
grid on
waitforbuttonpress
end
Output:
Q1): Provide a full analysis of reconstruction process and effect of different
sampling rates onreconstruction using your MATLAB outputs, (Fr=Fs,
Fr> Fs, Fr< Fs).
Ans: The sampling frequency or sampling rate, Fs, is the average number of
samples obtained in one second (samples per second) and Fs = 1/Ts.
If Fr>=Fs then our reconstructed signal is approximately equals to the original
signal but if Fr<Fs then our signal differs from the original signal.
Conclusion:
In this lab I learnt to reconstruct the original signal from samples. If
Reconstruction signal frequency (Fr) is greater then the sampling frequency we
can reconstruct our original signal quite well so we have more information
about the signal.

More Related Content

What's hot

Decimation and Interpolation
Decimation and InterpolationDecimation and Interpolation
Decimation and InterpolationFernando Ojeda
 
A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkJaewook. Kang
 
A Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkA Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkJaewook. Kang
 
QFSK: BER and SER Derivation and Simulation
QFSK: BER and SER Derivation and SimulationQFSK: BER and SER Derivation and Simulation
QFSK: BER and SER Derivation and SimulationTom Cruz
 
Ct2 2013 14
Ct2 2013 14Ct2 2013 14
Ct2 2013 14dana53
 
Effects of varying number of samples in an image
Effects of varying number of samples in an imageEffects of varying number of samples in an image
Effects of varying number of samples in an imagelakshmymk
 
A Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB SimulinkA Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB SimulinkJaewook. Kang
 
Asymptoptic notations
Asymptoptic notationsAsymptoptic notations
Asymptoptic notationsAlisha Jindal
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06Niit Care
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1Ammara Javed
 
Weekends with Competitive Programming
Weekends with Competitive ProgrammingWeekends with Competitive Programming
Weekends with Competitive ProgrammingNiharikaSingh839269
 
Analysis of algorithn class 3
Analysis of algorithn class 3Analysis of algorithn class 3
Analysis of algorithn class 3Kumar
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Kurmendra Singh
 
A Simple Communication System Design Lab #1 with MATLAB Simulink
A Simple Communication System Design Lab #1 with MATLAB Simulink A Simple Communication System Design Lab #1 with MATLAB Simulink
A Simple Communication System Design Lab #1 with MATLAB Simulink Jaewook. Kang
 
Control Statements, Array, Pointer, Structures
Control Statements, Array, Pointer, StructuresControl Statements, Array, Pointer, Structures
Control Statements, Array, Pointer, Structuresindra Kishor
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2Ammara Javed
 
C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3Ammara Javed
 

What's hot (20)

Decimation and Interpolation
Decimation and InterpolationDecimation and Interpolation
Decimation and Interpolation
 
Pn sequence
Pn sequencePn sequence
Pn sequence
 
A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB Simulink
 
A Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB SimulinkA Simple Communication System Design Lab #4 with MATLAB Simulink
A Simple Communication System Design Lab #4 with MATLAB Simulink
 
QFSK: BER and SER Derivation and Simulation
QFSK: BER and SER Derivation and SimulationQFSK: BER and SER Derivation and Simulation
QFSK: BER and SER Derivation and Simulation
 
Ct2 2013 14
Ct2 2013 14Ct2 2013 14
Ct2 2013 14
 
Ch9c
Ch9cCh9c
Ch9c
 
Effects of varying number of samples in an image
Effects of varying number of samples in an imageEffects of varying number of samples in an image
Effects of varying number of samples in an image
 
A Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB SimulinkA Simple Communication System Design Lab #2 with MATLAB Simulink
A Simple Communication System Design Lab #2 with MATLAB Simulink
 
Asymptoptic notations
Asymptoptic notationsAsymptoptic notations
Asymptoptic notations
 
Loop c++
Loop c++Loop c++
Loop c++
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
 
Weekends with Competitive Programming
Weekends with Competitive ProgrammingWeekends with Competitive Programming
Weekends with Competitive Programming
 
Analysis of algorithn class 3
Analysis of algorithn class 3Analysis of algorithn class 3
Analysis of algorithn class 3
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
A Simple Communication System Design Lab #1 with MATLAB Simulink
A Simple Communication System Design Lab #1 with MATLAB Simulink A Simple Communication System Design Lab #1 with MATLAB Simulink
A Simple Communication System Design Lab #1 with MATLAB Simulink
 
Control Statements, Array, Pointer, Structures
Control Statements, Array, Pointer, StructuresControl Statements, Array, Pointer, Structures
Control Statements, Array, Pointer, Structures
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2
 
C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3
 

Similar to Reconstruction

Similar to Reconstruction (20)

Dsp Lab Record
Dsp Lab RecordDsp Lab Record
Dsp Lab Record
 
Matlab 2
Matlab 2Matlab 2
Matlab 2
 
Filter Designing
Filter DesigningFilter Designing
Filter Designing
 
Multirate sim
Multirate simMultirate sim
Multirate sim
 
Dsp manual
Dsp manualDsp manual
Dsp manual
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
 
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
DSP Lab Manual (10ECL57) - VTU Syllabus (KSSEM)
 
Basic simulation lab manual1
Basic simulation lab manual1Basic simulation lab manual1
Basic simulation lab manual1
 
Sampling
SamplingSampling
Sampling
 
DSA Complexity.pptx What is Complexity Analysis? What is the need for Compl...
DSA Complexity.pptx   What is Complexity Analysis? What is the need for Compl...DSA Complexity.pptx   What is Complexity Analysis? What is the need for Compl...
DSA Complexity.pptx What is Complexity Analysis? What is the need for Compl...
 
01 - DAA - PPT.pptx
01 - DAA - PPT.pptx01 - DAA - PPT.pptx
01 - DAA - PPT.pptx
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
Csci101 lect06 advanced_looping
Csci101 lect06 advanced_loopingCsci101 lect06 advanced_looping
Csci101 lect06 advanced_looping
 
Numerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsNumerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special Functions
 
Matlab 3
Matlab 3Matlab 3
Matlab 3
 
Mlab i
Mlab iMlab i
Mlab i
 
Dsp manual
Dsp manualDsp manual
Dsp manual
 
Dsp iit workshop
Dsp iit workshopDsp iit workshop
Dsp iit workshop
 
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka StreamsFast Fourier Transform (FFT) of Time Series in Kafka Streams
Fast Fourier Transform (FFT) of Time Series in Kafka Streams
 
Introduction to python programming ( part-2 )
Introduction to python programming ( part-2 )Introduction to python programming ( part-2 )
Introduction to python programming ( part-2 )
 

More from COMSATS Abbottabad

Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemCOMSATS Abbottabad
 
coding and burning program in FPGA
coding and burning program in FPGAcoding and burning program in FPGA
coding and burning program in FPGACOMSATS Abbottabad
 
Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)COMSATS Abbottabad
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086COMSATS Abbottabad
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086COMSATS Abbottabad
 
Addition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageAddition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageCOMSATS Abbottabad
 
Mathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabMathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabCOMSATS Abbottabad
 
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLABMathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLABCOMSATS Abbottabad
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacingCOMSATS Abbottabad
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with LaptopCOMSATS Abbottabad
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By LedCOMSATS Abbottabad
 

More from COMSATS Abbottabad (20)

Kalman filter
Kalman filterKalman filter
Kalman filter
 
Enterpreneurship
EnterpreneurshipEnterpreneurship
Enterpreneurship
 
Sine wave inverter
Sine wave inverterSine wave inverter
Sine wave inverter
 
Light Tracking Solar Panel
Light Tracking Solar PanelLight Tracking Solar Panel
Light Tracking Solar Panel
 
Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical System
 
coding and burning program in FPGA
coding and burning program in FPGAcoding and burning program in FPGA
coding and burning program in FPGA
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
 
Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086
 
Addition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageAddition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly language
 
Mathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabMathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in Matlab
 
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLABMathematical Modelling of Electrical/Mechanical modellinng in MATLAB
Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB
 
Introduction to MATLAB
Introduction to MATLAB Introduction to MATLAB
Introduction to MATLAB
 
Encoder + decoder
Encoder + decoderEncoder + decoder
Encoder + decoder
 
Principles of Communication
Principles of CommunicationPrinciples of Communication
Principles of Communication
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacing
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with Laptop
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By Led
 
stress and strain
stress and strainstress and strain
stress and strain
 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
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
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
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
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
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
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
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
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
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
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
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
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Reconstruction

  • 1. Lab Report 03: Submitted By : Syed Abuzar Hussain Shah SP15-BEE-096 Uzair Ahmed SP15-BEE-106 Syed Hasnain Shah SP15-BEE-100 Submitted To: Sir Usman Class: BEE-5A Dated: 30/03/2017
  • 2. DTFT, Reconstruction of Sampled Signal & effect of reconstruction time period. Objective: In today’s Lab we will take results from previous lab i.e. the sampled signal achieved at the end of Lab 2 and convert it back to continuous time signal. In this lab the effect of reconstruction timeperiod on continuous time signal will also be analyzed. Commands to be used: • plot • real • exp • imag • diff • sin/cos • fft • fftshift • hold on/off Task 1: Let your m-file be named DTFT as in this part we are generating a function that can be used in future. a. Syntax for generating functions: function [output parameters]=name_such_as_DTFT (input parameters) b. Let us consider the DTFT Formula 𝑋( ) = ∑ c. Let variable w represent 𝝎 and its limits be −2𝜋 < 𝜔 < 2𝜋 d. Let the discrete signal retrieved from step 3 be x[n]. Then, with help of transpose multiplication implement the above formula given in step 4.b.
  • 3. Matlab Coding: DTFT Function: function [w, X] = DTFT(x) w = -2*pi:0.01:2*pi; n = 0:length(x)-1; temp = w'*n; temp = -1i*temp; e = exp(temp); X = e*x'; end Coding: clc clear all; close all; load signal fs=1000; samp_freq=2*sf; [w,Z]=DTFT(z); subplot(231) stem(z) ylabel('x[n]') title(['Original Signal sf=' num2str(sf) 'Hz']) xlabel('n') subplot(232) plot(w,abs(Z)) title('FFT of x[n]') ylabel('|X(e^j^ omega)|') xlabel('omega')
  • 4. Task 2:  Let Tr be the reconstruction time period, and let it value be 1/100. (Fr=1/ Tr)  Now generate a signal sinc(πn/T𝑟) using the command sinc & pi where n=[0:length(x)*Fr]./Fr. ‘n’is normalized because a sinc function always generate a zero on all integer multiples of pi. In order to generate a sinc(πn/T𝑟) , it is required that zero crossing occurs on only 1/Tr.  For convolution you can use conv command but then you will not be able to understand the step by step analysis. Therefore, we would use the following steps to execute convolution in a step wise visualmanner: 1. Let x be our standing signal and sinc be the moving. 2. Flip sinc but as sinc is symmetric on ‘0’ so flipping will result in the same step. 3. Let x_r be 0 & there be a loop with integer value k. And let it be initialized by 0. 4. Shift the sinc function to by n(Fr k+1) & dot multiply by x by shifted sinc and add into x_r. 5. Let step 7.d be repeated for k values, where is maximum equal to length of x. Use plot, hold & waitforbuttonpress to view each step of convolution visually.  Now change the value of Fr to the actual sampling frequency as taken in Lab 2, and analyze the reconstruction.  Alter the Fr, to different scales of actual sampling frequency as taken in Lab 2 and analyze the reconstructed signal. Matlab Coding: fr=samp_freq; Tr=1/fr; len=length(z)-1; n=(0:len*fr)/fr; x=zeros(1,len*fr+1); for i=0:len x(1,i*fr+1)=z(i+1); end
  • 5. %Sinc Function And Zero Padding: s=sinc(pi*n); %sin(2 pi t/2 Tr) subplot(233) stem(n,x) title('zero padded signal') xlabel('nT_r') ylabel('x[nT_r]') subplot(234) plot(n,s) title('sinc function') ylabel('s(t)=sinc(2* pi /Tr *t)') xlabel('t(msec)') %Convolution Step by Step x_rec=0; for i=0:length(z)-1 u=z(i+1)*sinc(pi*(n-n(i*fr+1))/2); x_rec=x_rec+u; subplot(235) stem(n,x) hold on plot(n,z(i+1)*sinc(pi*(n-n(i*fr+1))/2),'r') hold off grid on subplot(236) plot(n,x_rec) title(['Tr=' num2str(fr/samp_freq) 'Ts & T actual is 20 msec' ]); xlabel 't(ms)' ylabel 'x_r(t)' grid on waitforbuttonpress end
  • 7. Q1): Provide a full analysis of reconstruction process and effect of different sampling rates onreconstruction using your MATLAB outputs, (Fr=Fs, Fr> Fs, Fr< Fs). Ans: The sampling frequency or sampling rate, Fs, is the average number of samples obtained in one second (samples per second) and Fs = 1/Ts. If Fr>=Fs then our reconstructed signal is approximately equals to the original signal but if Fr<Fs then our signal differs from the original signal. Conclusion: In this lab I learnt to reconstruct the original signal from samples. If Reconstruction signal frequency (Fr) is greater then the sampling frequency we can reconstruct our original signal quite well so we have more information about the signal.