0% found this document useful (0 votes)
13 views

Assignment 1

The document provides instructions for Assignment 1. Students must: 1) Name files with their roll number and name and include their roll number and name on plot titles. 2) Generate various continuous and discrete time signals including unit impulse, step, ramp, signum, sampling, sawtooth, triangular, and sinc functions with optional time shifts. 3) Include appropriate axis labels and formatting. 4) Submit in a Microsoft document without screenshots. 5) Write the problem statement and include comments for each program.

Uploaded by

Pranav Pawar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Assignment 1

The document provides instructions for Assignment 1. Students must: 1) Name files with their roll number and name and include their roll number and name on plot titles. 2) Generate various continuous and discrete time signals including unit impulse, step, ramp, signum, sampling, sawtooth, triangular, and sinc functions with optional time shifts. 3) Include appropriate axis labels and formatting. 4) Submit in a Microsoft document without screenshots. 5) Write the problem statement and include comments for each program.

Uploaded by

Pranav Pawar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Assignment 1

1. Your file name must be your Roll Number Name.


for example, 1102109001_Aditya Agre
2. Title of all plots must be as follow:
Main Title Roll Numebr_Name (use sgtitle(‘roll number your name’)
function)
Main title

Grids

Axis labels
Titles for each subplot

3. Each axis must have the appropriate labels.


4. Use axis() function for appropriate space.
5. Your submission must be in on Microsoft document.
6. Do not paste any screenshots in document.
7. Write the problem statement for each program, also write the comments for
each function.
8. For discrete time signal the index n is an integer.
Write program for

1. Generate continuous time unit impulse function δ(t)


Also generate the delayed impulse function δ(t – a) and advanced impulse
function δ(t + a). Where ‘a’ is last digit of your roll number. If last digit of
your roll number is 0 then use a = 6.
Generate a unit impulse function δ(n)
Also generate discrete time the delayed impulse function δ(n – a) and
advanced impulse function δ(n + a). Where ‘a’ is last digit of your roll
number. If last digit of your roll number is 0 then use a = 6.
[Suggestion use t==0]

2. Generate continuous time unit step function u(t)


Also generate the delayed step function u(t – a) and advanced step function
u(t + a). Where ‘a’ is last digit of your roll number. If last digit of your roll
number is 0 then use a = 6.
Generate a discrete time unit impulse function u(n)
Also generate the delayed step function u(n – a) and advanced step function
u(n + a). Where ‘a’ is last digit of your roll number. If last digit of your roll
number is 0 then use a = 6.
[Suggestion use n==0]

You may use step_t = t>=0; or step1_t = heaviside(t) functions

3. Generate continuous time unit ramp function r(t)


[Suggestion use (t>=0).*t]
Generate discrete time unit ramp function r(n)
[Suggestion use (n>=0).*n]

4. Generate signum function sgn(t).


Also generate the delayed signum function sgn(t – a) and advanced signum
function sgn(t + a). Where ‘a’ is last digit of your roll number. If last digit of
your roll number is 0 then use a = 6.
Generate signum function sgn(n).
Also generate the delayed signum function sgn(n – a) and advanced signum
function sgn(n + a). Where ‘a’ is last digit of your roll number. If last digit of
your roll number is 0 then use a = 6.

[sgn(t) = -1 + 2u(t)]

5. Generate continuous time sawtooth and triangular waveform.


Also generate delayed continuous time sawtooth and triangular waveform by
‘a’ and advanced continuous time sawtooth and triangular waveform by ‘a’.
Where ‘a’ is last digit of your roll number. If last digit of your roll number is
0 then use a = 3.

Generate discrete time sawtooth and triangular waveform.


Also generate delayed discrete time sawtooth and triangular waveform by ‘a’
and advanced discrete time sawtooth and triangular waveform by ‘a’. Where
‘a’ is last digit of your roll number. If last digit of your roll number is 0 then
use a = 3.

[Use function sawtooth()]

6. Generate the continuous time sampling function Sa(t)


Also generate delayed continuous time sampling function Sa(t – a) by ‘a’ and
advanced continuous time sampling function Sa(t + a) by ‘a’. Where ‘a’ is
last digit of your roll number. If last digit of your roll number is 0 then use a
= 7.
Generate the discrete time sampling function Sa(n)
Also generate delayed discrete time sampling function Sa(n – a) by ‘a’ and
advanced discrete time sampling function Sa(n + a) by ‘a’. Where ‘a’ is last
digit of your roll number. If last digit of your roll number is 0 then use a = 7.
[Sa(t) = {sin (t)}/t]

7. Generate the continuous time sinc function sinc(t)


Also generate delayed continuous time sinc function sinc(t – a) by ‘a’ and
advanced continuous time sampling function sinc(t + a) by ‘a’. Where ‘a’ is
last digit of your roll number. If last digit of your roll number is 0 then use a
= 6.
Generate the discrete time sinc function sinc(n)
Also generate delayed discrete time sampling function sinc(n – a) by ‘a’ and
advanced discrete time sampling function sinc(n + a) by ‘a’. Where ‘a’ is last
digit of your roll number. If last digit of your roll number is 0 then use a = 6.
[sinc(t) = {sin (πt)}/ πt]

You might also like