Table Of Contents

polyval

Version:
    Last Modified: March 15, 2017

    Evaluates a polynomial at values you specify. polyval works element-wise for matrices.

    Syntax

    c = polyval(a, b)

    Inputs

    a

    Coefficients in descending order of power of the polynomial you want to evaluate. a is a vector.

    b

    Values at which you want to evaluate a. b is an array of any dimension.

    Outputs

    c

    Evaluated values of a MathScript uses the following equation for calculating c: c = a[1]*b^n+ ...+a[n]*b+a[n+1]*I, where n is the degree of a and I is the identity matrix. c is a matrix of the same size as b.

    A = [1, 1, 1];
    B = [1, 2; 3, 4];
    C = polyval(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics