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

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 日

0 投票

Replace all matrix divisions (/) by elementwise divisions (./).

カテゴリ

タグ

質問済み:

2023 年 9 月 27 日

回答済み:

2023 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by