필터 지우기
필터 지우기

tf toolbox not recognized function

조회 수: 488 (최근 30일)
Yuanju Chao
Yuanju Chao 2019년 11월 26일
답변: enescan 2024년 5월 15일
Hi
I have signal processing toolbox installed but when I type tf transfer function, it said unrecognized function

답변 (2개)

Star Strider
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
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
Star Strider 2019년 11월 26일
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.

댓글을 달려면 로그인하십시오.


enescan
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;

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by