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

2 visualizaciones (últimos 30 días)
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);

Respuesta aceptada

David Hill
David Hill el 27 de Sept. de 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);

Más respuestas (1)

Torsten
Torsten el 27 de Sept. de 2023
Movida: Torsten el 27 de Sept. de 2023
Replace all matrix divisions (/) by elementwise divisions (./).

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by