how can i plot a circle using plot function?
19 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
i
1 Commento
Pushpa Neupane
il 31 Gen 2023
This code is showing some error. can you please upload the corrected one.
Risposte (1)
Massimo Zanetti
il 5 Ott 2016
Look here
r = 2; %radius
xc = 4; %x center
yc = 3; %y center
theta = linspace(0,2*pi);
x = r*cos(theta) + xc;
y = r*sin(theta) + yc;
plot(x,y)
axis equal
0 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!