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 commentaire

lounis chehrit
lounis chehrit le 10 Juin 2021
It seems that the Control system toolbox is not installed !
You have to install It first !

Connectez-vous pour commenter.

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 26 Sep 2020
Modifié(e) : Ameer Hamza le 26 Sep 2020

5 votes

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 commentaires

EL BIARI AYOUB
EL BIARI AYOUB le 29 Sep 2020
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
Walter Roberson
Walter Roberson le 5 Mai 2022
You might need to reinstall .
Fernanda
Fernanda le 11 Mar 2024
Muchas gracias!!

Connectez-vous pour commenter.

Plus de réponses (1)

Nasreddine
Nasreddine le 5 Jan 2025
Modifié(e) : Walter Roberson le 5 Jan 2025
clear all ;
close all ;
clc ;
s=tf('s');
G=0.8/(0.5*s+1);
H=feedback(G,1);
step(H);
grid

1 commentaire

Walter Roberson
Walter Roberson le 5 Jan 2025
I do not understand how this answers the question about tf() not being found?

Connectez-vous pour commenter.

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by