How can I fix this error defining 's'.

6 visualizaciones (últimos 30 días)
Sergio Muñoz Lorenzo
Sergio Muñoz Lorenzo el 30 de Mayo de 2016
Comentada: Jan el 22 de Jun. de 2017
Everytime I type s=tf('s') appears the following error: Undefined function 'tf' for input arguments of type 'char'. How I can fix this error?
Thanks, Sergio.

Respuesta aceptada

Image Analyst
Image Analyst el 30 de Mayo de 2016
It's possible you don't have the Signal Processing Toolbox, which has the tf() function in it. Type ver on the command line to see if you have that toolbox.
  4 comentarios
John BG
John BG el 21 de Jun. de 2017
who is the question originator, Mr Sergio Muñoz or Mr Francesco Barozzi?
Jan
Jan el 22 de Jun. de 2017
@John BG: As you can see, Sergio asked the question in 2016, and Francesco posted a concerning question in the comment section now.

Iniciar sesión para comentar.

Más respuestas (1)

John BG
John BG el 30 de Mayo de 2016
If you key in the polynomials directly
tf([1 -2 1],[3 -.4] )
ans =
s^2 - 2 s + 1
-------------
3 s - 0.4
tf works fine.
Perhaps you mean
tf([1 0],1)
ans =
s
If you find this answer of any help solving your question,
please click on the thumbs-up vote link,
thanks in advance
John

Categorías

Más información sobre Downloads en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by