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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!