Signal Analysis in MATLAB
BY, MR. DIGAMBAR PURI
Polynomial in SCILAB
Overview
• Polynomials
• Determinants of Polynomials
• Derivatives in SCILAB
• Solution to Linear Equations
• Definite Integration
Polynomials in SCILAB
Polynomials
• Examples:
Polynomials
• A polynomial can be
expressed directly after
declaring variable
Polynomials
• Examples in SCILAB
• 1] 3]
• 2] 4]
Polynomials
• A polynomial can be created in two ways. One way is to define the
polynomial in terms of its roots and the other way is to define it in
terms of its coefficients.
Polynomials
Other commands in Polynomial
Polynomial Arithmetic
Polynomial Matrix
• A polynomial can be
expressed in matrix form
Determinants of
Polynomials in SCILAB
Determinants of Matrix
•
Determinants of Polynomial Matrix
•
Derivatives of
Polynomials in SCILAB
Derivatives of Polynomial Matrix
• A polynomial can be expressed in matrix form
Plotting of Polynomials
Polynomial Plotting
Polynomial Plotting
Solutions of Linear
Equations in SCILAB
Linear Equations
• A system of n linear equations and m variables is given by,
Linear Equations
• This system of Linear equations can be written as Matrix
Equations,
• If we define the following Matrices as,
Linear Equations
• Case 1: A system with same number of equations and unknowns:
Unique Solution Exists
• Example:
Linear Equations
Linear Equations
• The null space returned for A is empty, indicating unique solution
Linear Equations
• Exercise Problems
1) 2)
3) 4)
Linear Equations
• Case 2: A system with same number of equations and unknowns:
No unique Solution Exists
• Example:
Linear Equations
•
• The first two rows are same indicate same parallel lines (det=0)
Linear Equations
• Case 3: A system with more number of unknowns than equations:
More than one Solution Exists
• Example:
• We can write a matrix equation.
Linear Equations
• By Appling the function linsolve to this system,
Linear Equations
• Case 4: A system with more equations than unknowns:
No results
Linear Equations
•
Magic Square
• The function test matrix can also produce matrices corresponding
to magic squares.
• Matrices such that sum of rows and columns, as well as it’s
diagonals, produce the same results.
Definite Integration
in SCILAB
Definite Integration
evaluates the definite integral from a to b of f(t)dt. The
function f(t) should be continuous.
Y= integrate(‘sin(x)’,’x’,0,2);
Y= integrate(‘x*x,’x’,0,1);
Some basic functions
in SCILAB
Basic Functions
Thank You...

Polynomials in scilab