How can I add a circle to this..
Ältere Kommentare anzeigen
I just started learning mathlab and I wanted to plot a circle on this figure.. more like a car. please how do i do it.. x=[0,0,1,2,3,4,5,5,0] y=[0,1,1,2,2,1,1,0,0]. Thank you

Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 13 Nov. 2015
Or alternatively you could use rectangle() (believe it or not, see the help), or
plot(x,y,'MarkerSize', 100).
3 Kommentare
peter obi
am 13 Nov. 2015
Image Analyst
am 13 Nov. 2015
It looks like you accepted the Answer from the FAQ. But if you just want to put a circle on a graph, you can do it much simpler with rectangle or plot. Just experiment with different MarkerSizes to get the size you want. Typically if you don't specify it, I think it's something like 8 or so. But if you want larger, use bigger numbers. I just guessed at 100 but you could try 20 or 50 or whatever. It's probably faster because you're not plotting an array of a bunch of points like if you use a parameterized circle.
peter obi
am 14 Nov. 2015
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!