How do I zoom in on a certain section of a magnitude bode plot
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have used the bode(g),grid function to plot a magnitude and phase plot from my transfer function, I now wish to zoom in on a specific section of the magnitude plot. Is this possile and if so how do I go about doing it?
Here is my code:
num = [1];
den = [1 0.04946 3.00316 0.0989847 3.00322 0.0494631 1.00006];
g=tf(num, den)
bode(g),grid
Here is an image of my plot< i would like to zoom in of the peak of the magnitude plot of my bandpass filters transfer function.
2 Kommentare
KSSV
am 28 Sep. 2022
num = [1];
den = [1 0.04946 3.00316 0.0989847 3.00322 0.0494631 1.00006];
g=tf(num, den)
bode(g),grid
xlim([0.8 1.2])
Antworten (1)
Chunru
am 28 Sep. 2022
num = [1];
den = [1 0.04946 3.00316 0.0989847 3.00322 0.0494631 1.00006];
g=tf(num, den)
bode(g)
grid on
ax = findobj(gcf, "Type", "Axes");
set(ax, "XLim", [0.8 1.2])
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Control System Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!