tf function doesn't work

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 Comment

It seems that the Control system toolbox is not installed !
You have to install It first !

Sign in to comment.

 Accepted Answer

Ameer Hamza
Ameer Hamza on 26 Sep 2020
Edited: Ameer Hamza on 26 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 have the toolbox installed, it will display the version of toolbox otherwise you don't have the toolbox.

4 Comments

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!!

Sign in to comment.

More Answers (1)

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

1 Comment

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

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!