Creating circles in matlab

조회 수: 2 (최근 30일)
Tyler Bond
Tyler Bond 2020년 5월 8일
댓글: Tyler Bond 2020년 5월 8일
I want to create two circles which represent circular conductors. I want all points inside the circles to have constant value which represent voltage.
Cirlce 1:
center (-5,0), radius 4 cm, voltage at all points inside circle = 10 V
Circle 2:
center (3,0), radius 2 cm, voltage at all points inside circle = 3 V
Circlues should be within boundaries x = (-10,10) and y = (-10,10).
How can I achieve this?
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 5월 8일
Hints:
cricle MATLAB function, later conditioning for viltage levels
or
plot(sin,cos)
Tyler Bond
Tyler Bond 2020년 5월 8일
Thanks!

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

답변 (1개)

KSSV
KSSV 2020년 5월 8일
You can draw a circle using:
th = linspace(0,2*pi) ;
R = 1 ; % Radius
C = [1. 1.] ; % center
x = C(1)+R*cos(th) ;
y = C(2)+R*sin(th) ;
plot(x,y)

카테고리

Help CenterFile Exchange에서 Sensors and Transducers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by