I need help graphing these simple functions. I keep getting a blank graph

2 次查看(过去 30 天)
Question: Plot the maximum power absorbed in a resistor if the voltage across the resistor. Equations: v= (r/(r+100))*10 p= (v*(r)^2)/r
r=linspace(0,100,101);
v=(r/(r+100))*10;
p=(v*(r).^2)/r;
grid
plot(r,p);

采纳的回答

David Hill
David Hill 2023-9-27
Need a few more dots.
r=linspace(0,100,101);
v=(r./(r+100))*10;
p=(v.*(r).^2)./r;
grid
plot(r,p);

更多回答(1 个)

Torsten
Torsten 2023-9-27
移动:Torsten 2023-9-27
Replace all matrix divisions (/) by elementwise divisions (./).

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by