1.

The function to evaluate the value of a polynomial,l for a constant value of the independent variable(say a)in the polynomial is ______(a) poly(p,a), p is a row vector(b) polyder(p)(c) polyint(p)(d) polyval(c,a), c is a row vectorThis question was addressed to me during an internship interview.My query is from Algebra topic in division MATLAB Basics of MATLAB

Answer»

The correct ANSWER is (d) polyval(c,a), c is a ROW vector

To elaborate: polyder(p)and polyint(p) produces the differentiation and integration of the polynomial p. Polyval(c,a) is the correct form of the function to evaluate the value of a polynomial whose INDEPENDENT variable is a. The value of a has to be provided FIRST before WRITING the function.



Discussion

No Comment Found

Related InterviewSolutions