0
$\begingroup$

I used BodePlot to plot the magnitude and phase plots for a transfer function Gp1 and I figured out how to add a point to the magnitude (top) plot that is on/follows the curve with: {x,20 Log10@Abs[Gp1/.s->I x]} but how can I do this for the phase (bottom) plot?

enter image description here

The transfer function I used is:

Gp1 = kc*kp*Exp[-t*s]*(tauI*s + 1)*(tauD*s + 1)/((tauP*s + 1)*tauI*s);
Gp2=TransferFunctionModel[{{Gp1}},s];
t = 1; tauP = 2; tauI = 1; tauD = 3; kp = 8.6; kc = 1;
$\endgroup$
2
  • 1
    $\begingroup$ Can you include the exact code that generated your plots? $\endgroup$
    – MarcoB
    Jul 24 '17 at 18:33
  • 1
    $\begingroup$ possible duplicate Q/A: Draw line and point into a BodePlot $\endgroup$
    – kglr
    Jul 24 '17 at 19:26
1
$\begingroup$

Modifying this answer in this possible duplicate Q/A:

BodePlot[Gp2, {.1, 100}, GridLines -> {{{1}, None}, {{1}, None}}, 
 GridLinesStyle -> Red, Mesh -> {{{1}}, {{1}}}, 
 MeshStyle -> PointSize[Large], ImageSize -> 400]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.