Someone help me do this question
이전 댓글 표시
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
Jan
2021년 5월 14일
답변 (1개)
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?
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!