How to write a Transfer Function

조회 수: 4 (최근 30일)
Alex yarker
Alex yarker 2020년 9월 27일
이동: Sam Chak 2023년 10월 29일
I am trying to setup understand how to setup a transfer function, I input:
>> num = [1 1];
>> den = [1 2 1 5];
>> system = tf(num,den)
And expect the below answer but I keep getting an error message after inputting the system line:
'tf' requires one of the following:
Control System Toolbox
DSP System Toolbox
Model Predictive Control Toolbox
Signal Processing Toolbox
>>Transfer function: s + 1 ------------------- s^3 + 2 s^2 + s + 5
Any help would be appreciated
  댓글 수: 1
Suttirak
Suttirak 2023년 10월 29일
이동: Sam Chak 2023년 10월 29일
Open=tf([500],[1 32 340])

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 9월 27일
You need to have the control system toolbox: https://www.mathworks.com/help/control/index.html for using tf() function. It seems that you haven't installed this toolbox. Check the output of
ver control
If you get a warning, it means that the toolbox is not installed.
  댓글 수: 2
Alex yarker
Alex yarker 2020년 9월 27일
I got a warning message so I downloaded the Control Toolbox, the formulas now work as expected and I've stopped tearing my hair out, thanks very much.
Ameer Hamza
Ameer Hamza 2020년 9월 27일
I am glad to be of help!!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by