Someone help me do this question

1 回表示 (過去 30 日間)
Ho Phuc
Ho Phuc 2021 年 5 月 14 日
回答済み: DGM 2021 年 5 月 14 日
let (C) be the part of the circle x^2 + y^2 = 4 that lies below the line y = x. Plot (C) in the plane xOy.

回答 (1 件)

DGM
DGM 2021 年 5 月 14 日
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?

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by