Plotting a an equation as function of radius .

I want to plot ,
utheta= -k*ln(ro/r)
where k=10 and ro=1000
for angle theta = pi/2 and theta = 3*pi/2 only where theta is measured from negative y axis.
How do I plot this. I am not getting , please help me.

답변 (1개)

KSSV
KSSV 2020년 7월 4일

0 개 추천

t = linspace(pi/2,3*pi/2) ;
k = 10 ; r0 = 1000 ;
r = r0*exp(t/k) ; % on solving the give equation for r
plot(t,r)

댓글 수: 5

utheta is a separate function of r . and theta is not varying . I need the plot only for theta equal to pi/2 and theta =3*pi/2.
KSSV
KSSV 2020년 7월 4일
Do you have ranges of utheta and r? Have a look on ezplot. https://in.mathworks.com/help/matlab/ref/ezplot.html
no range for theta. utheta is a function of r only.
KSSV
KSSV 2020년 7월 4일
utheta and theta are same right?
no utheta is a dispalcement in theta direction which is a function of r only.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Holidays / Seasons에 대해 자세히 알아보기

태그

질문:

2020년 7월 4일

댓글:

2020년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by