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

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 Commento

Gus
Gus il 30 Mar 2025
Spostato: Star Strider il 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.

Accedi per commentare.

Risposte (1)

Gus
Gus il 30 Mar 2025
Modificato: Gus il 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.

Prodotti

Release

R2017a

Richiesto:

Gus
il 29 Mar 2025

Modificato:

Gus
il 30 Mar 2025

Community Treasure Hunt

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

Start Hunting!

Translated by