0% found this document useful (0 votes)
12 views8 pages

MATLAB Programs for Matrix Operations

The document outlines a series of MATLAB programs that perform various mathematical and computational tasks. These tasks include finding determinants, drawing graphs, sorting numbers, searching elements, multiplying matrices, finding inverses, calculating factorials, solving quadratic equations, and performing polynomial multiplication. Each task is accompanied by an expected output.

Uploaded by

amarjyoti9611
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views8 pages

MATLAB Programs for Matrix Operations

The document outlines a series of MATLAB programs that perform various mathematical and computational tasks. These tasks include finding determinants, drawing graphs, sorting numbers, searching elements, multiplying matrices, finding inverses, calculating factorials, solving quadratic equations, and performing polynomial multiplication. Each task is accompanied by an expected output.

Uploaded by

amarjyoti9611
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MATLAB Programs

1. Find the determinant of a matrix

OUTPUT

2. Draw a graph that joins the points (1, 0), (5, 4) and (2, 1).

OUTPUT
3. Arrange n numbers in increasing order using any sorting algorithm

OUTPUT

4. Arrange n numbers in descending order using any sorting algorithm


OUTPUT

5. Search an element from a list of n elements using –


a. Linear Search

OUTPUT

.
b. Binary Search

OUTPUT
6. Multiply two matrices of order 4x4 or 3x3

OUTPUT
7. Find the inverse of a matrix

OUTPUT
8. Find the factorial of a number

OUTPUT

9. Find the roots of the quadratic equation f(x)=x2-2x-3

OUTPUT

10. Calculate 2√2 and assign the value to a variable A

OUTPUT
11. Polynomial Multiplication

OUTPUT

You might also like