How to write a Transfer Function
101 views (last 30 days)
Show older comments
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 Comment
Answers (1)
Ameer Hamza
on 27 Sep 2020
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 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!