Amplitude and phase of transfer function

조회 수: 15 (최근 30일)
Alexis Miranda
Alexis Miranda 2016년 11월 10일
편집: Zhuxuan 2025년 2월 27일
How do I plot of the amplitude and phase of a transfer function (complex modulus) as a function of frequency (ω) up to 100,000 radians/s. Please use a logarithmic axis for ω when presenting your plot. Given the following equations for amplitude and phase: μ= 5 Pa•s, E= 1 kPa

답변 (2개)

D S Acharya
D S Acharya 2023년 10월 14일
%for magnitude
omega=0:100000; mu=5; E=1000;
numerator=omega*mu;
denominator=sqrt(1+((numerator/E).^2));
tf=numerator/denominator;
%for phase
phase=(pi/2)-atan(numerator/E);
semilogx(omega,tf);
figure;
semilogx(omega,phase);

Zhuxuan
Zhuxuan 2025년 2월 27일
편집: Zhuxuan 2025년 2월 27일
I didn't look at the specific function you need to plot.
But for the bode plot of a transfer function, in general, you can use the function tr (transfer function) and bode (bode plot). The function bode can even generate the plot automatically:
Hope it can help!

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by