Question: MATLAB Write a user-defmed function that multiplies two polynomials. Name the function p=polymult (pl1 p2 ). The two input arguments pl and p2 are vectors
MATLAB
Write a user-defmed function that multiplies two polynomials. Name the function p=polymult (pl1 p2 ). The two input arguments pl and p2 are vectors of the coefficients of the two polynomials. The output argument p is the resulting polynomial.
Use the function to multiply the following polynomials:
f1(x) = 2x^6- 3x^4- 9x^3 + llx^2- 8x + 4 and f2(x) = 5x^3 + 7x -10
** Write a comment (using % sign) in front or below each line of code explaining what that Matlab command is doing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
