Borrar filtros
Borrar filtros

tf toolbox not recognized function

488 visualizaciones (últimos 30 días)
Yuanju Chao
Yuanju Chao el 26 de Nov. de 2019
Respondida: enescan el 15 de Mayo de 2024
Hi
I have signal processing toolbox installed but when I type tf transfer function, it said unrecognized function

Respuestas (2)

Star Strider
Star Strider el 26 de Nov. de 2019
I have no idea what you are doing.
This works when I run it (in R2019b):
s = tf('s');
transfer_function = (s^2 + 2*s + 5)/(s^3 + 10*s^2 + 5*s + 42);
sys = tf(transfer_function)
and produces:
sys =
s^2 + 2 s + 5
-----------------------
s^3 + 10 s^2 + 5 s + 42
Continuous-time transfer function.
  2 comentarios
Star Strider
Star Strider el 26 de Nov. de 2019
Yuanju Chao’s Answer moved here —
R = 37.56e3;
C = 0.156e-12;
G1 = 1/R; % R2N in schematic
C2 = (C * 46)/2; % C120/2 in schematic
G4 = G1 ; % R3N in schmeatic
G3 = 2 * G1; % R4N in schematic
C5 = 32 * C; % C2N in schemaitc
b0 = - G1*G3;
a2 = C2 * C5;
a1 = C5 * ( G1+ G3 + G4);
a0 = G3*G4;
Ts2ndPZR = tf ( b0, [a2,a1,a0])
Unrecoginzed function of variable 'tf'
Star Strider
Star Strider el 26 de Nov. de 2019
To use the tf function, you must have the Control System Toolbox licensed and installed.
To find out if you do, type:
ver control
in your Command Window or a script.
When I do that it produces:
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.7.0.1247435 (R2019b) Update 2
MATLAB License Number: #####
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 17763)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Control System Toolbox Version 10.7 (R2019b)
For obvious reasons, I have not posted my License Number.

Iniciar sesión para comentar.


enescan
enescan el 15 de Mayo de 2024
% Transfer fonksiyonu parametreleri
K = 1; % Kazanç değeri, bunu isteğinize göre ayarlayabilirsiniz
numerator = K * [1 3 2]; % Pay kısmı (s+1)(s+2)
denominator = [1 4 16 0 0]; % Payda kısmı s^4 + 4s^3 + 16s^2
% Transfer fonksiyonunu oluşturma
G = tf(numerator, denominator);
% Bode diyagramı çizme
figure;
bode(G);
title('Denetimsiz Sistem Bode Diyagramı');
grid on;
% Nyquist diyagramı çizme
figure;
nyquist(G);
title('Denetimsiz Sistem Nyquist Diyagramı');
grid on;

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by