フィルターのクリア

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

2 ビュー (過去 30 日間)
Brendan
Brendan 2023 年 9 月 27 日
回答済み: David Hill 2023 年 9 月 27 日
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 Center および File ExchangeDirected Graphs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by