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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 26 Sep. 2020
Bearbeitet: Ameer Hamza am 26 Sep. 2020

5 Stimmen

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 Kommentare

EL BIARI AYOUB
EL BIARI AYOUB am 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 am 5 Mai 2022
You might need to reinstall .
Fernanda
Fernanda am 11 Mär. 2024
Muchas gracias!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Nasreddine
Nasreddine am 5 Jan. 2025
Bearbeitet: Walter Roberson am 5 Jan. 2025

0 Stimmen

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

1 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by