tf function doesn't work

23 次查看(过去 30 天)
when I try to use tf function this is what I get :
>> s = tf('s')
Unrecognized function or variable 'tf'.
Did you mean:
>> s = tfe('s')
  1 个评论
lounis chehrit
lounis chehrit 2021-6-10
It seems that the Control system toolbox is not installed !
You have to install It first !

请先登录,再进行评论。

采纳的回答

Ameer Hamza
Ameer Hamza 2020-9-26
编辑:Ameer Hamza 2020-9-26
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 have the toolbox installed, it will display the version of toolbox otherwise you don't have the toolbox.
  4 个评论
Walter Roberson
Walter Roberson 2022-5-5
You might need to reinstall .

请先登录,再进行评论。

更多回答(1 个)

Nasreddine
Nasreddine 2025-1-5
编辑:Walter Roberson 2025-1-5
clear all ;
close all ;
clc ;
s=tf('s');
G=0.8/(0.5*s+1);
H=feedback(G,1);
step(H);
grid
  1 个评论
Walter Roberson
Walter Roberson 2025-1-5
I do not understand how this answers the question about tf() not being found?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by