plot absolute frequency response
13 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Vinay
on 20 Nov 2024 at 7:01
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);
0 Comments
See Also
Categories
Find more on Hydraulics and Pneumatics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!