tf toolbox not recognized function
488 次查看(过去 30 天)
显示 更早的评论
Hi
I have signal processing toolbox installed but when I type tf transfer function, it said unrecognized function
0 个评论
回答(2 个)
Star Strider
2019-11-26
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 个评论
Star Strider
2019-11-26
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
2019-11-26
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.
enescan
2024-5-15
% 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;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!