Skip to main content
12-Amethyst
November 9, 2020
Question

How to make a bode plot from a transfer function

  • November 9, 2020
  • 2 replies
  • 10163 views

Hello guys,

 

please help me to solve this problem.

I would like to plot the magnitude and phase over a logarithmic frequency axis for a given transfer function.

In the first picture I create the transfer function with symbolic mathematics.

In the second picture I declare some parameters (but without units !) and I tried to plot the magnitude ...  

The single point in the graph is unclear to me with a value of approx. 20 ?? All the values on the y-axis must be < 1 ... or < 0db

 

Thanks in advance

 

DM_9707339_0-1604924783555.png

 

DM_9707339_1-1604924822784.png

 

2 replies

23-Emerald IV
November 9, 2020

Please attach your Prime worksheet, not just a picture!

 

It will help us to help you in the best way.

 

Success!
Luc

xyz12312-AmethystAuthor
12-Amethyst
November 9, 2020

Hello guys,

 

@LucMeekes :

I did not upload my sheet because I know there are compability problems with different mathcad-versions. I am using mathcad prime 3.0 

 

Anyway, I attached my sheet, I hope it helps!

 

@Fred_Kohlhepp:

Unfortunately it didnt work ... , but good idea with the variable i - in my case k -

Since s = 2*pi*k* I also dont like the steps with 2*pi = approx. 6Hz ... 

How would you scale the steps of the x-axis to 1Hz, 2Hz, 3Hz, ...

Or even better: How do I scale the x-axis logarithmically? In that case the steps would be 1Hz, 10Hz, 100Hz, 1kHz, ...

 

Thanks in advance and best regards,

Dimitri

23-Emerald I
November 9, 2020

The attached pdf was created in Prime 4.0 Express.  Since you're using 3.0, the Mathcad file won't do much, but you can type the expressions--they should run in 3.0.  (The grid plot is a special, not part of what PTC sells, but you can have a logarithmic scale from the plot menu.

23-Emerald I
November 9, 2020

Look for the differences:

Fred_Kohlhepp_0-1604926164480.png