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

Experiment 3: To Perform Basic MATLAB Operations On Basic Functions

This MATLAB experiment involves generating and manipulating basic signal functions including unit impulse, unit step, and unit ramp functions. It contains 9 questions that have students generate these basic functions using MATLAB code, plot the results, and provide explanations. The questions cover topics like generating delayed versions of the basic functions, summing and subtracting combinations of functions, and multiplying, dividing, and deriving one function from another. Students are evaluated on a rubric assessing their ability to correctly perform the different MATLAB operations on signals and sequences.

Uploaded by

Mohsin Raza
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Experiment 3: To Perform Basic MATLAB Operations On Basic Functions

This MATLAB experiment involves generating and manipulating basic signal functions including unit impulse, unit step, and unit ramp functions. It contains 9 questions that have students generate these basic functions using MATLAB code, plot the results, and provide explanations. The questions cover topics like generating delayed versions of the basic functions, summing and subtracting combinations of functions, and multiplying, dividing, and deriving one function from another. Students are evaluated on a rubric assessing their ability to correctly perform the different MATLAB operations on signals and sequences.

Uploaded by

Mohsin Raza
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

EXPERIMENT 3 Date Perform: ________________

To Perform Basic MATLAB Operations on Basic Functions

 Introduction
In this Matlab lab, you will learn how to:
 Generate unit impulse delay (shift) function
 Generate unit step delay (shift) function
 Generate unit ramp delay (shift) function
 Summing unit step and unit ramp function
 Subtracting unit step and unit ramp function
 Multiplication of the unit step and unit ramp function
 Division of unit step and unit ramp function
 Generate unit impulse from unit step functions
 Generate unit step from unit ramp function

 Tools used:
MATLAB

Lab Exercise
Perform the given tasks:

Question 3.1

Generate unit impulse delay (shift) function?

Code:
t=-2:1:2;
y=[zeros(1,2), ones(1,1), zeros(1,2)];
subplot(2,2,1);
stem(t,y);
ylabel('d(n)');
xlabel('unit impulse');

Plot:
Explanation:

Question 3.2

Generate unit step delay (shift) function?

Code:
n=input('Enter n values');
t=0:1:n-1;
y1=ones(1,n);
subplot(2,2,2);
stem(t,y1);
ylabel('Amplitude');
xlabel('unit step');

Plot:

Explanation:

Question 3.3

Generate unit ramp delay (shift) function?

Code:
n=input('Enter n values');
t=0:1:n-1;
subplot(2,2,3);
stem(t,t);
ylabel('Amplitude');
xlabel('unit ramp');
Plot:

Explanation:

Question 3.4

Summing unit step and unit ramp function?

Code:

< Insert program code here. Copy from m-file(s) and paste. >

Plot:

< Insert program plot here. Copy from Matlab figure and paste. >

Explanation:

< Insert your explanation here>

Question 3.5

Subtracting unit step and unit ramp function?

Code:

< Insert program code here. Copy from m-file(s) and paste. >

Plot:

< Insert program plot here. Copy from Matlab figure and paste. >

Explanation:

< Insert your explanation here>

Question 3.6
Multiplication of the unit step and unit ramp function?

Code:

< Insert program code here. Copy from m-file(s) and paste. >

Plot:

< Insert program plot here. Copy from Matlab figure and paste. >

Explanation:

< Insert your explanation here>

Question 3.7

Division of unit step and unit ramp function?

Code:

< Insert program code here. Copy from m-file(s) and paste. >

Plot:

< Insert program plot here. Copy from Matlab figure and paste. >

Explanation:

< Insert your explanation here>

Question 3.8

Generate unit impulse from unit step functions?

Code:

< Insert program code here. Copy from m-file(s) and paste. >

Plot:

< Insert program plot here. Copy from Matlab figure and paste. >

Explanation:

< Insert your explanation here>

Question 3.9
Generate unit step from unit ramp function?

Code:

< Insert program code here. Copy from m-file(s) and paste. >

Plot:

< Insert program plot here. Copy from Matlab figure and paste. >

Explanation:

< Insert your explanation here>

Score→ Developing Beginning


CLO Exemplary (5) Proficient (4) Novice (1)
Statement↓ (3) (2)

To perform Correctly With minor Partially With major Does not


different basic performs all mistakes performs the mistakes work
MATLAB the tasks performs the tasks performs
1 operations on tasks. either q1.1
matrices, or q1.2
sequences and
signals

CLO MARKS OBTAINED


1
Instructor’s Signatures: __________________________

You might also like