Using a Jocobi Matrix in a State-space model

3 ビュー (過去 30 日間)
Stephan Karelly
Stephan Karelly 2020 年 6 月 18 日
コメント済み: Ameer Hamza 2020 年 6 月 19 日
So i am trying to linearize a System using a Jakobi Matrix. The linearization works fine but when i try to use the results with sys = ss(A,B,C,D) the Matrix A as well as the Vektor C seem not to be the right type or rather form.
This is how the Matrix looks like
A =
[ 0, 1]
[ -3/100, -1]
And this is how it should look like
A =
-0.1250 0
0.1250 -0.1250
witch results in this Error Message
Error using ss (line 274)
The value of the "a" property must be a numeric array without any Inf's or NaN's.
Error in Aufgabe_2 (line 20)
sys = ss(A, b, cT, d);
Any suggestions on how to change the Matrix around?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 6 月 19 日
Convert A to floating-point type before passing to ss()
sys = ss(double(A), b, cT, d);
  2 件のコメント
Stephan Karelly
Stephan Karelly 2020 年 6 月 19 日
Fantastic, thanks a lot. My first project in Mathlab so im still quite lost
Ameer Hamza
Ameer Hamza 2020 年 6 月 19 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by