MATLAB: Generating large circles using scircle

circleMapping Toolboxscircle

Hello. I have a question about scircle2 function. Basically I am using that function to generate a circle given centre and radius like this
[lat, lon] = scircle2(centreX,centreY,centreX+rad,centreY);
and then i plot this using
plot(lat,lon);
For small values of cen and rad, i can see the circle no problem. But for large values say over 100, the lat and lon are messed up and the circle is messed up too. Is there a problem with large values with this function? If so, how can i generate a matrix that contains the circle so i can plot it?

Best Answer

I don't think scircle2 wants x or y values, it wants lats and lons. I wrote a circlem function that streamlines the process of plotting circles of a given radius on a map. Perhaps that is what you're looking for?