Extract data points from bodemag plot
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
jrz
am 25 Sep. 2022
Beantwortet: Star Strider
am 25 Sep. 2022
Looking for a way to extract the data points of the magnitude from a bodemag plot. How can this be done?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 25 Sep. 2022
it would likely be easier to use the approach bode in Obtain Magnitude and Phase Data. (Remember to use the squeeze function with those, if necessary.)
This seems to work —
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
bodemag(H)
Ax = gca;
% get(Ax)
Lines = findobj(Ax, 'Type','Line');
% L1 = Lines(1);
L2 = Lines(2);
X = L2.XData
Y = L2.YData
.
0 Kommentare
Weitere Antworten (0)
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!