简体   繁体   English

Octave中的Sylvester功能

[英]Sylvester function in Octave

I am trying to run a code in Octave written basically for Matlab. 我正在尝试用Octave运行基本上为Matlab编写的代码。

One of the functions from this code file named - Sylvester(A,B,C) which is documented in Octave-forge as available is failing with following error. 此代码文件中名为Sylvester(A,B,C)的功能之一(已在Octave-forge中记录为可用)失败,并出现以下错误。

error: 'sylvester' undefined near line 14 column 9

The octave version that I am using is 3.8.2. 我正在使用的八度音阶版本是3.8.2。

I am new to Octave. 我是八度的新手。 Can someone suggest what extra I need to do in Octave so as to make this work? 有人可以建议我需要在Octave中做些什么才能使它工作?

Thanks in advance! 提前致谢!

You need to update Octave. 您需要更新八度。 The function sylvester was only added in Octave 4.0.0 . 函数sylvester仅在Octave 4.0.0中添加。

In Octave, for Sylvester function, they have used lyap(A,B,C) function for solving 在Octave中,对于Sylvester函数,他们使用了lyap(A,B,C)函数来求解

AX+XB+C=0 AX + XB + C = 0

type of optimization function. 优化功能的类型。

Though, the original sylvester function is 虽然,原始的sylvester函数是

AX+XB=C AX + XB = C

I am not sure how they call both the functions as sylvester form. 我不确定他们如何将这两个函数称为西尔维斯特形式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM