` Y=polyvalm(c,X)`

Inputs | |

`c` |
The vector of coefficients of the polynomial to be evaluated. |

`X` |
A square matrix. |

Outputs | |

`Y` |
A square matrix of the same size as `X` . |

The function evaluates the polynomial

`c[1]*X.^(m-1)+c[2]*X.^(m-2)....+c[m]`

, where `m`

is the size of `c`

.