Scilab等同于Matlab的“ charpoly”

问题描述

请帮助我弄清楚Scilab中的等价性(在Matlab中存在)。 或者,如果存在其他方法,请告诉我如何在scilab中计算矩阵的特征方程。

解决方法

使用poly函数:

--> a=[1 2;3 4]
 a  = 

   1.   2.
   3.   4.

--> poly(a,"s")
 ans  =

  -2 -5s +s²