How to set the phase offset when using Margin Command

Hello,
I try to use the marging command, but the resulting curves has alwyas an offset.
I don't know how to make it start at "0".
When using the two command Bode, and bodeplot i can get the desired result.
Can any one help please ?
Thank you and have a nice day.
EL Mehdi

 Respuesta aceptada

Star Strider
Star Strider el 11 de Oct. de 2020
They appear to me to actually be the same. The difference is that margin appears to use the unwrap function, and bodeplot does not. The reason for that choice reflects what each function does.

6 comentarios

El Mehdi HARRAS
El Mehdi HARRAS el 11 de Oct. de 2020
Editada: El Mehdi HARRAS el 11 de Oct. de 2020
First thank you form your reponse.
From mathematcical and physical point of view, yes it's exactly the same thing. I agree with you.
My problem here is, a would like to use the margin function and to get the same response as the bode or bodeplot function from graphical point of view (Which is figure 2).
Like you know, the margin functon calculate the phase & gain margin and to show them in the graphics. The bode or bodeplot do not have this fnctionality, i think (perhaps i am mistaking)
My pleasure!
The two functions simply present the same information in a slightly different graphical format. The margin function depicts the phase as it does because of the intended purpose of the function.
Another question please.
Does the margin function has a fonctionnality like PhaseWrapping & PhaseWrappingBranch ?
The margin function does not appear to have any options. If you want amplitude and phase information, you would have to use bodeplot with the appropriate outputs.
I have never used those (I usually just use the defaults), so I had to look it up in bodeoptions. I would assume it uses the unwrap function, although I have never specified that when I have used bodeplot. The PhaseWrappingBranch option simply defines the angle where it wraps the accumulated phase.
Ok, Thank you so much.
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2019b

Preguntada:

el 11 de Oct. de 2020

Comentada:

el 11 de Oct. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by