Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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);

Réponse acceptée

David Hill
David Hill le 27 Sep 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);

Plus de réponses (1)

Torsten
Torsten le 27 Sep 2023
Déplacé(e) : Torsten le 27 Sep 2023
Replace all matrix divisions (/) by elementwise divisions (./).

Community Treasure Hunt

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

Start Hunting!

Translated by