필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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 CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by