Top Banner
Signal Processing Using Scilab Manas Das Indian Institute of Technology Bombay FOSSEE, IIT Bombay March 5, 2012
21

Signal Processing Using · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Mar 23, 2018

Download

Documents

trinhbao
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Signal Processing Using Scilab

Manas DasIndian Institute of Technology Bombay

FOSSEE, IIT Bombay

March 5, 2012

Page 2: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Introduction

What is a signal?

A signal is any time-varying or spatial-varying quantity.

Manas Das IITB Signal Processing Using Scilab

Page 3: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Learning Objectives

In this tutorial we will learn:

To show the operations on or analysis of signals, in eitherdiscrete or continuous time domain.

Manas Das IITB Signal Processing Using Scilab

Page 4: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Different types of Signals

Plotting continuous and discrete sine wave.

Plotting Step function.

Plotting Ramp function.

Manas Das IITB Signal Processing Using Scilab

Page 5: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Convolution

In this slide i am going to describe Convolution

Linear convolution of two vectors by using theinbuilt command convol().

Manas Das IITB Signal Processing Using Scilab

Page 6: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Discrete Fourier Transform

In this slide i will be describing Discrete fouriertransform for a discrete sequence by using theinbuilt command dft().Calling Sequence[xf]=dft(x,flag);

x :input vector

flag: value is -1 for DFT.

xf: output vector

Manas Das IITB Signal Processing Using Scilab

Page 7: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Inverse Discrete Fourier Transform

In this slide i will be describing Inverse Discretefourier transform for a discrete sequence by usingthe inbuilt command dft().Calling Sequence[x]=dft(xf,flag);

xf :input vector.

flag: value is 1 for IDFT.

x: output vector.

Manas Das IITB Signal Processing Using Scilab

Page 8: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

FFT

In this slide i will be describing how to calculatediscrete fourier transform and inverse discretefourier transform by using the inbuilt functionfft().Calling Sequence[x]=fft(a);

Manas Das IITB Signal Processing Using Scilab

Page 9: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Correlation

In this slide i will be showing how to calculate thecorrelation between two vectors by using inbuiltcommand corr()Calling SequenceRx1x2 = corr(x1,x2,n)

x1,x2:Input vectors

n:No.of correlation terms.

Manas Das IITB Signal Processing Using Scilab

Page 10: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Sampling

In this slide i will be demonstrating Resampling of agiven signal using intdec()Calling Sequence[y]=intdec(x,lom)

x :input data sequence.

lom: This is a scalar that gives a rate change.

Manas Das IITB Signal Processing Using Scilab

Page 11: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Signal basics and how to plot continuous and discrete sinewave,step and ramp signal.

Linear convolution of two vectors by using the inbuiltcommand convol().

Manas Das IITB Signal Processing Using Scilab

Page 12: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Signal basics and how to plot continuous and discrete sinewave,step and ramp signal.

Linear convolution of two vectors by using the inbuiltcommand convol().

Manas Das IITB Signal Processing Using Scilab

Page 13: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 14: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 15: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 16: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 17: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 18: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 19: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Summary

In this tutorial we learnt:

Discrete fourier transform for a discrete sequence by using theinbuilt command dft().

The inverse discrete fourier transform can be found by usingthe same inbuilt command dft().

Correlation between two signals by using inbuilt commandcorr().

Resampling of a given signal using intdec().

Manas Das IITB Signal Processing Using Scilab

Page 20: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Textbook Companion

You already know Textbook Companion Project

There are books on Signal Processing using Scilab under thisproject

Refer to the link: http://www.scilab.in/Completed Books

Manas Das IITB Signal Processing Using Scilab

Page 21: Signal Processing Using  · PDF fileIntroduction What is a signal? A signal is any time-varying or spatial-varying quantity. Manas Das IITB Signal Processing Using Scilab

Textbook Companion

You already know Textbook Companion Project

There are books on Signal Processing using Scilab under thisproject

Refer to the link: http://www.scilab.in/Completed Books

Manas Das IITB Signal Processing Using Scilab