필터 지우기
필터 지우기

Help me draw the region in matlab ?

조회 수: 4 (최근 30일)
Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 24일
댓글: Image Analyst 2013년 12월 24일
For the region ,draw the region D and color the region D. a) D : x^2 + y^2 = 2x, x^2 + y^2 = 2y b) x^2 + y62 <= 2y, 0<=x<=y*sqrt(3) thanks very much.
  댓글 수: 2
Image Analyst
Image Analyst 2013년 12월 24일
Is this homework?
Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 24일
for this homework, I have never seen before

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2013년 12월 24일
Why don't you solve the equation for y, then use linspace() to create a vector for x? Plug that vector into your equation to get values for y, and then plot them with plot(x, y, 'ro-') and see what you have and what regions get formed. Then use patch() or fill() to color the region.
  댓글 수: 3
Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 24일
Oh, I have done it and I see the problem. thanks you very much.
Image Analyst
Image Analyst 2013년 12월 24일
You could use plot(), which you probably did. Can you mark the Answer as Accepted to close it out?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by