Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский
Scilab Help >> Polynomials > coeff

# coeff

coefficients of matrix polynomial

### Syntax

`[C]=coeff(Mp [,v])`

### Arguments

Mp

polynomial matrix

v

integer (row or column) vector of selected degrees

C

big matrix of the coefficients

### Description

`C=coeff(Mp)` returns in a big matrix `C` the coefficients of the polynomial matrix `Mp` . `C` is partitioned as `C=[C0,C1,...,Ck]` where the `Ci` are arranged in increasing order `k = max(degree(Mp))`

`C=coeff(Mp,v)` returns the matrix of coefficients with degree in `v` . (`v` is a row or column vector).

### Examples

```s=poly(0,'s');
w=s*rand(10,10);
determ(w)
coeff(w,1)

r = poly([0 -1+%i -1-%i],'s',"roots");
coeff(r)

r = poly([-1-%i -1+2*%i 0],'s',"roots");
coeff(r)```

### See also

• poly — Polynomial definition from given roots or coefficients, or characteristic to a square matrix.
• degree — degree of polynomial matrix
• inv_coeff — build a polynomial matrix from its coefficients

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << cmndred Polynomials coffg >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Thu Feb 14 14:57:17 CET 2019