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

2 visualizzazioni (ultimi 30 giorni)
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);

Risposta accettata

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

Più risposte (1)

Torsten
Torsten il 27 Set 2023
Spostato: Torsten il 27 Set 2023
Replace all matrix divisions (/) by elementwise divisions (./).

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by