Question
I. Using Matlab conv command to expand a polynomial. Consider the polynomial with 3 factors. P(z) = (z^2+2z-1)(z-2)(2z-1) a. In Matlab, enter the first polynomial
I. Using Matlab conv command to expand a polynomial.
Consider the polynomial with 3 factors.
P(z) = (z^2+2z-1)(z-2)(2z-1)
a. In Matlab, enter the first polynomial as row vector of coefficients as you have been doing so far. Call it P1. Paste the matlab command in your homework.
b. Enter the second polynomial. Call it P2. Paste the matlab command in your homework.
c. Enter the second polynomial. Call it P3. Paste the matlab command in your homework.
d. To expand the first 2 factors, enter the matlab command as follows.
PP1=conv(P1, P2)
Show the result of PP1 from matlab.
e. Finally, to obtain the coefficients of the expansion, enter the command
P=conv(PP1, P3)
Show the result of P from matlab.
f. Write the expanded polynomial P(z) using the coefficients obtained in I.d)
Notes: The conv command take 2 polynomials at a time. If you want to expand multi factor polynomial, you have to do it 2 by 2 as you have just done in this example. You are going to use that method in the upcoming problems.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started