MATLAB-Tutorial 2 MATLAB-Tutorial 2: Class ESA251
MATLAB-Tutorial 2 MATLAB-Tutorial 2: Class ESA251
Class ECES-304 Class ESA251 Presented b: : Sh bh P t d Shubham Bh Bhat Presented bybyElmi Abu Bakar t
Contents
Polynomials Functions Programming
I. Polynomials - Functions
Polynomial functions : in the MATLAB polyfun directory
yp pp y Type help polyfun
I : identity matrix
I. Polynomials Roots
roots function calculates the roots of a polynomial:
I. Polynomials Derivatives
polyder function computes the derivative of any polynomial.
I. Polynomials Convolution
conv computes convolution operation
d t t i i the d data to be fitted, d is x and y are vectors containing th x and y d t t b fitt d and n i the degree of the polynomial to return
I. Polynomials - Examples
Example
10
I. Polynomials - Examples
Example
11
I. Polynomials
Example
12
13
14
15
16
17
Nested Functions
one or more functions within another function in MATLAB
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Thank you
34