Someone help me do this question

回答(1 个)

Consider two different approaches
n = 15; % how many points to plot
r = 2;
th = linspace(pi,2*pi,n);
x = r*cos(th);
y = r*sin(th);
subplot(2,1,1)
plot(x,y); grid on
axis equal
x = linspace(-2,2,n);
y = -sqrt(r^2-x.^2);
subplot(2,1,2)
plot(x,y); grid on
axis equal
Notice anything different?

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

提问:

2021-5-14

回答:

DGM
2021-5-14

Community Treasure Hunt

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

Start Hunting!

Translated by