how to use the Bode matlab function to plot only the magnitude of a transfer function
35 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
kay Dee
am 19 Nov. 2018
Kommentiert: Janagan Papperi Devarajulu Deenadayalan
am 10 Nov. 2020
Hello i woul like to know how to use the Bode matlab function to plot only the magnitude of a transfer function .not both the magnitude and and the phase
0 Kommentare
Antworten (2)
Star Strider
am 19 Nov. 2018
If you only want the magnitude, call bode as:
[mag,phase,wout] = bode(sys);
then plot ‘mag’ as a funciton of ‘wout’:
figure
plot(wout,,squeeze(mag))
1 Kommentar
Janagan Papperi Devarajulu Deenadayalan
am 10 Nov. 2020
Hello. I am facing a problem which is other way around. I have only the magnitude plot and I would like to extract the transfer function of the system. Is this possible by any chance?
Junfei Tang
am 17 Apr. 2019
The "bodeoptions" page of the MATLAB Documention lists the options of Bode Plot: https://se.mathworks.com/help/ident/ref/bodeoptions.html
To turn off the subplot of the phase, you can use
opts = bodeoptions('cstprefs');
opts.PhaseVisible = 'off';
before you use the "bode" function to create the plot.
Cheers and good luck! :-)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Analyze Data 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!