Help me draw the region in matlab ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nguyen Trong Nhan
am 24 Dez. 2013
Kommentiert: Image Analyst
am 24 Dez. 2013
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 24 Dez. 2013
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 Kommentare
Image Analyst
am 24 Dez. 2013
You could use plot(), which you probably did. Can you mark the Answer as Accepted to close it out?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!