3.9k views
1 vote
Write a program that creates a plot of the power consumed by a 1000 resistor as the voltage across it is varied from 1 V to 200 V. Create two plots: one showing power in watts and one showing power in dBW (dB power levels with respect to a 1 W reference).

User Lauren Yim
by
7.9k points

1 Answer

5 votes

Answer:

Program to Plot the power in Watts

voltage=1:200;

resistance=1000;

current=voltage/resistance;

power=current.*voltage;

plot(voltage,power);

xlabel('Voltage in Volts');

ylabel('Power in Watts'); //plot of this program is attached

Program for power in dBW

voltage=1:200;

resistance=1000;

current=voltage/resistance;

power=current.*voltage;

powerdB=10*log10(power);

plot(voltage,powerdB);

xlabel('Voltage in Volts');

ylabel('Power in dBW'); // plot output is also attached

I hope it will help you!

Write a program that creates a plot of the power consumed by a 1000 resistor as the-example-1
Write a program that creates a plot of the power consumed by a 1000 resistor as the-example-2
User Suran
by
7.8k points