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

Lab 1 MatLab Basics

ewfdafwafrrwgrwg

Uploaded by

shanefdevera
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)
17 views

Lab 1 MatLab Basics

ewfdafwafrrwgrwg

Uploaded by

shanefdevera
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/ 7

Name Signals Spectra

Date Performed: August 27,


& Signal
: Processing
2024 Score:
Group Instructor: Engr. Jonathan
Lim
:

Parayno. Ren EXPERIMENT #


Andrei
David, Emmanuel
De Vera, Shane
1
MATLAB BASICS
I. Overvie
w

This experiment introduces you to the world of MATLAB, a powerful software


for mathematical computations. We'll explore basic syntax for solving mathematical
problems,
including working with matrices, finding roots of equations, and solving systems of
equations.

II. Objectives

 Understand how to define and manipulate matrices in MATLAB.


 Utilize built-in functions to solve linear equations and find roots of polynomial
equations.
 Gain experience in writing basic MATLAB code to solve mathematical
problems.

III. Materials

Computer with MATLAB installed (or access to MATLAB


Online)

IV. Procedure

Part 1: Starting Up
1. Open MATLAB.
2. Familiarize yourself with the workspace window and the command
prompt.

Part 2: Arithmetic Operations


1. Perform arithmetic operations in the Command Window.
Part 3: Variables and Functions
1. Assign values to variables and perform operations with them.

2. Assign values to variables and create simple functions.

Part 4: Matrix Operations

1. Create matrices and perform basic matrix operations


2. Find the transpose of a matrix

3. Calculate the inverse of a matrix (if it exists).

Part 5: Finding Roots of Equations

1. Find the roots of a polynomial equation

2. Evaluate and find the roots of higher-order polynomial equations.

Part 6: Solving Systems of Equations

1. Using Matrix Method, solve a system of linear equations using

matrices
V. Questions / Problems

1. Perform the following operations and write down the results using MATLAB:
a. 10 + 23
b. 124 - 85
c.16 x 23
d. 186 ÷ 3

961 𝑥5
)2 −
e.
(100−75
75−25

2. Create the following matrices and perform the specified operations

3 2 1 9 8 7
Matrices: 𝐴 = [4 5 6] , 𝐵 = [6 5 4]
7 8 3 2 1
9
a. Find
A+B
b. Find
A-B
c.Perform element-wise multiplication of A and B
d. Calculate the determinant of A
e. Find the eigenvalues of A

3. Solve the polynomial. Find all the roots


a. x3 – 4x2 + 6x – 4
b. x2 - 5x + 6
c.2x – x4 + 3x3 – 8x2 + 6x – 14
5

4. Refer to number 3. Evaluate the polynomial with the given x


a. x=3
b. x = -2
c.x = 4
5. Solve the system of equations
RESULTS

1.

2.

3.
4.

5.

You might also like