Adjust the phase offset when using data from 'bode'
Mostra commenti meno recenti
I'm trying to look at the phase and gain margin of an openloop system. Due to presentation/publications, I had to designa function to plot my amplitude and phase response with good font, font dimensions etc. To do so, I'm using the bode function to extract the data from my state space systems. But I have a problem with a phase offset (value at 0Hz). I know we can remove it from the properties editor avalaible in the classical bode plot but is there a solution to correct it when using this syntax [mag,phase,wout] = bode(sys,w) ?
Risposta accettata
Più risposte (1)
Robert U
il 4 Apr 2019
0 voti
Hi Romain Liechti,
in order to customize the frequency response plot you could use bodeplot() instead of bode(). There, you can match phase as an option.
The method is described in documentation:
In difference to bode(), bodeplot() is not suitable to output system analysis data but suits as plotting tool only.
Kind regards,
Robert
Categorie
Scopri di più su Plot Customization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!