How can I find the coefficient of trasfer function in detail? (more than 4 unit)

3 ビュー (過去 30 日間)
Hi everyone. I want to find the coefficient of my transfer function, more than 4 unit...
script is like this.
--------------------------------------------------------------
fs = 4300;
sys1 = tf([100 10000], [10 0]);
sys2 = c2d(sys1, 1/fs)
--------------------------------------------------------------
and MATLAB shows like this
--------------------------------------------------------------
Transfer function:
10 z - 9.767
------------
z - 1
Sampling time: 0.00023256
--------------------------------------------------------------
than, I want to check the coeffcient 9.767 more than 4 unit.. like a 9.767123456
Could you help me plz? :)

採用された回答

Laurens Bakker
Laurens Bakker 2012 年 3 月 7 日
Hy Hyetan,
sys2 is an object that has fields num and den, for numerator and denominator, so
sys2.num{:}(2)
is the value you want, and you can print it with more digits by using
fprintf( '%.9f\n', sys2.num{:}(2) );
Cheers,
Laurens
  1 件のコメント
Hyetan Lee
Hyetan Lee 2012 年 3 月 7 日
hi Bakker.
That's exactly what I want.
Thank you so much! ^^

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Model Identification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by