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 个评论

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 个评论

Thank you very much !
I have it, but it seems : Warning: No properly formatted Contents.m file was found for 'control'.
> In ver (line 58) .................. at the final
You might need to reinstall .
Muchas gracias!!

请先登录,再进行评论。

更多回答(1 个)

clear all ;
close all ;
clc ;
s=tf('s');
G=0.8/(0.5*s+1);
H=feedback(G,1);
step(H);
grid

1 个评论

I do not understand how this answers the question about tf() not being found?

请先登录,再进行评论。

类别

帮助中心File 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