How to Convert Bode plot - Magnitude (DB) to Resistance

9 views (last 30 days)
Gus
Gus on 29 Mar 2025
Edited: Gus on 30 Mar 2025
Hi,
The followng circuit was created in Electrical Simscape.
I have the voltage sensor output to Scope 2 is set to 'Output Measurement' and the signal generator line is set to 'Input Perturbation'.
So the intent is with the transfer function, I plot the resistance in magnitdue portion of the plot.
I select from the top menu 'Analysis' > 'Control Design' > 'Linear Analysis' and then from the pop-up menu, I select 'Bode Plot'.
So I expect to see the magnitude in resistance along the Y-axis (V / I). However, I see the magnitude plot in db instead.
How can I convert the bode plot 'Magnitude' to resistance and not in db?
I think I have to use something like the 'db2mag function'. But how do I implement that in the circuit?
If I change the Y-xaxis to absolute using log scale, the values are not consistent with what I expect.
Any suggestions are appreciated.
  1 Comment
Gus
Gus on 30 Mar 2025
Moved: Star Strider on 30 Mar 2025
I changed the plot from db to abs to illustrate that 'Mag (abs)' is also not consistent with what I would expect the resistance plot to be.
It should settle at around 48 ohms. Perhaps, there is an error somewhere in the circuit.

Sign in to comment.

Answers (1)

Gus
Gus on 30 Mar 2025
Edited: Gus on 30 Mar 2025
It's fine. I sorted out the issue. A termination resistor was missing from the circuit.
And I realize now that the 'db2mag'function can be realized just by right clickiing on the bode plot and then going to the appropriate menu, changing the Y-axis from dB to Mag.
Still learingn each day.

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!