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

The Islamic University of Gaza Electrical Engineering Department

This MATLAB lab document provides instructions and homework questions to introduce students to basic MATLAB operations like performing mathematical calculations, creating and manipulating matrices, and using functions. The homework includes tasks like computing expressions, extracting columns and rows from matrices, matrix multiplication, inverses, sums, and adding/deleting columns. The objectives are to learn how to use MATLAB for basic math operations on variables, vectors, matrices and complex numbers.

Uploaded by

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

The Islamic University of Gaza Electrical Engineering Department

This MATLAB lab document provides instructions and homework questions to introduce students to basic MATLAB operations like performing mathematical calculations, creating and manipulating matrices, and using functions. The homework includes tasks like computing expressions, extracting columns and rows from matrices, matrix multiplication, inverses, sums, and adding/deleting columns. The objectives are to learn how to use MATLAB for basic math operations on variables, vectors, matrices and complex numbers.

Uploaded by

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

The Islamic University of Gaza

Electrical Engineering Department

Signals and Linear Systems LAB


EELE 3310

Lab. (1): (Introduction to MATLAB)

Prepared by:
Sanabel N. El-Haddad 220170536

Submitted for:
Eng. Hadeel Matar

Gaza, Palestine

OCT 3, 2019
Objectives and Expectations:
This lab is to introduce the basic operations of MATLAB. Read through the handout
sitting in front of a computer that has a MATLAB software.
We learn how to perform basic mathematical operations on simple variables,
vectors, matrices and complex numbers and be familiar with some of basic function
and how to use it.

HOMEWORK:
Question 1: Compute the following expression using MATLAB

Answer:
i. The Code

ii. Running the code (Outputs)


Question 2: Create the variables to represent the following matrices:

a. Assign to the variable x1 the value of the second column of matrix A.


b. Assign to the variable x2 the third column of matrix B.
c. Assign to the variable x3 the third row of matrix B.
d. Assign to the variable x4 the first three values of matrix A as the first
row, and all the values in matrix B as the second, third and fourth rows,
and transposed of C as fifth row
Answer:
i. The Code
ii. Running the code (Outputs)
Question 3:
If matrix A is defined using the MATLAB code A = [1 3 2; 2 1 1; 3 2 3],
which command will produce the following matrix?

Answer :
i. The Code

ii. Running the code (Outputs)


Question 4: create to matrix A and B then answer the following question

1 3 2 2 0 4
A=0 5 1 B=1 5 2
4 2 3 2 4 3

a- C = A*B.
b- Inverse of matrix A.
c- Sum first row of matrix B.
d- Delete second column of matrix A.

2 3
e- Add matrix D = 4 5 to matrix A.
6 7
Answer :
i. The Code

ii. Running the code (Outputs)

You might also like