plot absolute frequency response
이전 댓글 표시
hi
I have this code
clc
clear all
close all
s = tf('s');
t1 = 1;
pade1 = (1-((s*t1)/2))/(1+((s*t1)/2))
t2 = 0.3;
pade2 = (1-((s*t2)/2))/(1+((s*t2)/2))
t3 = 1.8;
pade3 = (1-((s*t3)/2))/(1+((s*t3)/2))
t4 = 0.35;
pade4 = (1-((s*t4)/2))/(1+((s*t4)/2))
G = [(-21.6*pade1)/(8.5*s+1) (1.26*pade2)/(7.05*s+1);...
(-2.75*pade3)/(8.2*s+1) (-4.28*pade4)/(9.0*s+1)]
G_hat = inv(G)
RGA = (G.*(G_hat)')
and I want to plot a frequency response for RGA(1,1)
and i want to plot absolute magnitude of this tf
can anyone help me
Thank you
답변 (1개)
Vinay
2024년 11월 20일
You can plot the Relative Gain Array (RGA) frequency response using the `bode` function, which provides both the magnitude and phase response of the system.
To visualize the magnitude, you can extract it from the `bode` function's output and plot it on a semilogarithmic axis.
[mag, ~, w] = bode(RGA(1,1));
semilogx(w,mag);
카테고리
도움말 센터 및 File Exchange에서 Time-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!