0% found this document useful (0 votes)
9K views26 pages

Group 61lab

The document describes activities completed by Group 6 for an ECEP351L class. It includes: 1) Creating vectors and performing operations on them like division, exponentiation, and multiplication. 2) Generating a random matrix and calculating its inverse, transpose, determinant, size, and submatrix. 3) Plotting functions on the same figure and adding a title/labeling axes. 4) Graphing discrete-time functions using the stem command. 5) Finding and graphing the even and odd parts of various functions. 6) Computing and graphing the convolution of sequences.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9K views26 pages

Group 61lab

The document describes activities completed by Group 6 for an ECEP351L class. It includes: 1) Creating vectors and performing operations on them like division, exponentiation, and multiplication. 2) Generating a random matrix and calculating its inverse, transpose, determinant, size, and submatrix. 3) Plotting functions on the same figure and adding a title/labeling axes. 4) Graphing discrete-time functions using the stem command. 5) Finding and graphing the even and odd parts of various functions. 6) Computing and graphing the convolution of sequences.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

Group 6

ECEP351L Activity 1
1. Create a vector 𝑎=[0,0.1,0.2,…,10] and a vector 𝑏=[cos(0),cos(0.2),cos(0.4),
…,cos(20)) and compute the ff: c=a/b, d=a4, the product of a and b
>> a=[0:0.1:10];
>> b=[cos(0:0.2:20)];
>> c=a./b
>> d=a.^4
>> e=a*b

2. Create a 3x3 matrix A whose elements are random numbers uniformly distributed in
[0,1] and determine the ff:
>> r=rand(3)
a. The inverse matrix
>> inv(r)
b. The transpose of the matrix
>> transpose(r)
c. The determinant of the matrix
>> det(r)
d. The size of the matrix
>> size(r)
e. The second column of the matrix
>> z=r(2,1:3)
f. Create a submatrix B with the elements containing the first and third rows of A.
>> sub_matrix=r(1:3,3:3)

Group 6:
Corcuera, Khyle Ardie
Fernandez, Gilbert
Dela Torre, Krishia Mae
Marigmen, Neil
Soriano, Rizza Mae

ECEP351L Activity 2
I. Generate a row vector of 500 linearly equally spaced points between 0 and 2p.
II. Plot on the same figure in the interval [0 2p] the functions
a. 𝑓(𝑥)=𝑥𝑒𝑥
b. 𝑦(𝑥)=2cos𝑥
III. Add a title (of your choice) to the graph. Label the two axes of the graph.
IV. Insert a legend for all function that appears in the graph.
V. Plot the above function at a second figure in two different sub figures.
GROUP 6

CORCUERA, Khyle Ardie

DELA TORRE, Krishia Mae

FERNANDEZ, Gilbert

MARIGMEN, Neil

SORIANO, Rizza Mae

ECEP351L Activity 3

Graph the following discrete-time functions using the stem command from
MATLAB.

( )
2 πn
a. x [ n ] =4 cos 12 −3 sin( 8 )
2 π ( n−2 )
,−24 ≤ n< 24
b. x [ n ] =3 n e−|n/ 5|,−20 ≤n< 20
2
n
c. x [ n ] =21( ) +14 n3 ,−24 ≤ n<24
2
ECEP351L Activity 4

2 πn n
2

Let x 1 [ n ]=5 cos () and x [ n ]=−8 e−( 6 ) . Graph the following combinations of those two signals
8 2

over the range −20 ≤ n<20 . If a signal has some defined and undefined values, omit the undefined

values.

a. x [ n ] =x1 [ n ] x 2 [ n ]
b. x [ n ] =4 x 1 [ n ] +2 x 2 [ n ]

c. x [ n ] =x1 [ 2n ] ¿ x 2 [ −n ]

GROUP 6

CORCUERA, Khyle Ardie


DELA TORRE, Krishia Mae

FERNANDEZ, Gilbert

MARIGMEN, Neil

SORIANO, Rizza Mae

ECEP351L Activity 5
Find and graph the even and odd parts of these functions:
a. g [ n ] =u [ n ] −u [ n−4 ]

b. g [ n ] =e−n / 4 u [n]
2 πn
c. g [ n ] =cos ( 4 )
( ) 2 πn
d. g [ n ] =sin 4 u [n]
N=4
N=3
N=40
N=42
GROUP 6

CORCUERA, Khyle Ardie

DELA TORRE, Krishia Mae

FERNANDEZ, Gilbert

MARIGMEN, Neil

SORIANO, Rizza Mae

ECEP351L Lab Activity 7

Use MATLAB to compute and graph the convolution of the following sequences

1.
2.
ECE351L Activity 8

You might also like