Creating circles in matlab

3 vues (au cours des 30 derniers jours)
Tyler Bond
Tyler Bond le 8 Mai 2020
Commenté : Tyler Bond le 8 Mai 2020
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 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 8 Mai 2020
Hints:
cricle MATLAB function, later conditioning for viltage levels
or
plot(sin,cos)
Tyler Bond
Tyler Bond le 8 Mai 2020
Thanks!

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 8 Mai 2020
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)
  1 commentaire
Tyler Bond
Tyler Bond le 8 Mai 2020
Thank you!

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by