Help me draw the region in matlab ?
4 ビュー (過去 30 日間)
古いコメントを表示
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
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 件のコメント
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 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!