tf function doesn't work

31 visualizzazioni (ultimi 30 giorni)
EL BIARI AYOUB
EL BIARI AYOUB il 26 Set 2020
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 Commento
lounis chehrit
lounis chehrit il 10 Giu 2021
It seems that the Control system toolbox is not installed !
You have to install It first !

Accedi per commentare.

Risposta accettata

Ameer Hamza
Ameer Hamza il 26 Set 2020
Modificato: Ameer Hamza il 26 Set 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 Commenti
Walter Roberson
Walter Roberson il 5 Mag 2022
You might need to reinstall .
Fernanda
Fernanda il 11 Mar 2024
Muchas gracias!!

Accedi per commentare.

Più risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by