Problem using tf to perform a transfer function.

4 ビュー (過去 30 日間)
Leaysia Lampkin
Leaysia Lampkin 2023 年 8 月 31 日
回答済み: Sam Chak 2023 年 8 月 31 日
I was trying to mimic an m-script file for completing a transfer function from my textbook. I ran into an issue where I receive an error "Undefined functin 'tf' for input arguments of type 'double'."
My code is as follows:
numg=[6 0 1];
deng=[1 3 3 1];
sysg=tf(numg,deng);
Undefined functin 'tf' for input arguments of type 'double'.
It is important to know that the code comes from the textbook. Could I be missing a package?

採用された回答

Star Strider
Star Strider 2023 年 8 月 31 日
You need to have the Control System Toolbox licensed and installed.
With that, the code works appropriately —
numg=[6 0 1];
deng=[1 3 3 1];
sysg=tf(numg,deng)
sysg = 6 s^2 + 1 --------------------- s^3 + 3 s^2 + 3 s + 1 Continuous-time transfer function.
.
  2 件のコメント
Leaysia Lampkin
Leaysia Lampkin 2023 年 8 月 31 日
Thank you
Star Strider
Star Strider 2023 年 8 月 31 日
As always, my pleasure!

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

その他の回答 (1 件)

Sam Chak
Sam Chak 2023 年 8 月 31 日
If you are unable to obtain the Control System Toolbox, many useful MATLAB-compatible functions can still be executed on Octave Online. These functions include ss, tf, zpk, damp, pole, zero, rlocus, bode, nyquist, pid, feedback, minreal, dcgain, step, initial, impulse, lsim, place, lqr, lyap, etc.

カテゴリ

Help Center および File ExchangeDynamic System Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by