Why everytime I am trying to write the values for num and den in the transfer function block I get num(s)/den(s)?
102 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Why everytime I am trying to write the values for num and den in the transfer function block I get num/den? I see videos online and they just do the same that I do and they get their transfer function on the block.am i missing something?
4 Kommentare
Benjamin Thompson
am 20 Jan. 2024
@Kurniawan This question is almost four years old. You can write up a new question and attach sample files to help the community understand your problem.
Antworten (2)
Sam Chak
am 23 Jan. 2024
Let's say we want to input a third-order critically-damped system into the Transfer Function block. In the field below the Denominator Coefficients, we enter [1 3 3 1] and click 'OK'. Since the polynomial in the denominator is quite long, the block icon will display as the default. To ensure that the entire transfer function is properly displayed within the block icon, the block needs to be resized. To resize the block systematically, hold down the 'Ctrl' key and drag the corner horizontally until the polynomial is satisfactorily visible.
0 Kommentare
messaoudi
am 30 Mai 2024
t=0:0.1:5;
k=20;
m=5.187;
b=12.223;
wn=sqrt(k/m);
z=b*wn/(2*k);
num=[1/k];
den=[m/k b/k 1];
fct=tf(num,den);
% réponse à une implusion
y1=impulse(fct,t);
figure(1)
plot(t,y1)
title('réponse à une impulsion')
%réponse à un échelon
figure(2)
y2=stepplot(2*fct,t);
title('réponse à échelon')
tau=1/(z*wn);
tr=3*tau;
tm=2.2*tau;
tp=2*pi/(sqrt(1-z^2)*wn);
D=100*exp((-pi*z/(1-z^2)^0.5));
wn=1.965;
den1=[1/wn^2 (2*1)/wn 1];
den2=[1/wn^2 (2*0.4)/wn 1];
den3=[1/wn^2 (2*0.7)/wn 1];
figure(3)
hold on
fct1=tf(num,den1);
y21=stepplot(2*fct1,t);
fct2=tf(num,den2);
y22=stepplot(2*fct2,t);
fct3=tf(num,den3);
y23=stepplot(2*fct3,t);
legend(strcat('z=1'),strcat('z=0.4'),strcat('z=0.7'));
title('reponse a echelon unitaire')
hold off
% reponse rampe
figure (4)
hold on
u=2*t;
y3=lsim(fct,u,t);
plot(t,y3);
plot(t,u);
legend('sortie','entrée')
title('reponse a rampe')
0 Kommentare
Siehe auch
Kategorien
Mehr zu General Applications finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!