plot absolute frequency response

조회 수: 5 (최근 30일)
arash rad
arash rad 2021년 6월 9일
답변: Vinay 2024년 11월 20일
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
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);

Community Treasure Hunt

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

Start Hunting!

Translated by