Bode Plot options to graph
Ältere Kommentare anzeigen

Id like to have absolute gain as it generates the plot instead of having to do it manually. I was able to change frequency from rad to hz. not sure about the db to absolute. Thank you
1 Kommentar
rockstar49
am 12 Okt. 2022
Antworten (2)
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
[mag,phase,wout] = bode(H);
subplot(211); plot(wout, squeeze(mag(1,1,:)))
subplot(212); plot(wout, squeeze(phase(1,1,:)))
figure;
bode(H)
6 Kommentare
rockstar49
am 12 Okt. 2022
Verschoben: Chunru
am 12 Okt. 2022
rockstar49
am 12 Okt. 2022
H = tf([1 0.1 7.5],[1 0.12 9 0 0]);
[mag,phase,wout] = bode(H);
subplot(211); plot(wout/(2*pi), squeeze(mag(1,1,:)))
subplot(212); plot(wout/(2*pi), squeeze(phase(1,1,:)))
xlabel('f(Hz)')
rockstar49
am 12 Okt. 2022
rockstar49
am 12 Okt. 2022
Kategorien
Mehr zu Plot Customization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



