MATLAB: Circles with particular radius for latitude and longitude points plotted on map circlegeotaggingMATLABradius I have few points with latitude and longitude on the map. This is what I have now (see image below) and I am interested in creating circles with particular radius, how can I do that? Best Answer R = 1. ; % radius of circle C = rand(2,1) ; % center of circle th = linspace(0,2*pi) ;x = C(1)+R*cos(th) ; y = C(2)+R*sin(th) ;plot(x,y) ; Related SolutionsMATLAB: I need help to plot circle around the points and these points are in a circle. please response n=10; % number of points that you want center = [2 ,2]; % center coordinates of the circle [x0,y0] radius = 10; % radius of the circle angle = 2*pi*rand(n,1); r = radius*sqrt(rand(n,1)); X = r.*cos(angle)+ center(1); Y = r.*sin(angle)+ center(2); plot(X,Y,'.r') hold on %%Draw circle R = 1. ; % radius th = linspace(0,2*pi) ; for i = 1:length(X) x = R*cos(th)+X(i) ; y = R*sin(th)+Y(i) ; plot(x,y,'b') end hold on center = [2 ,2]; % center coordinates of the circle [x0,y0] radius = 10; % radius of the circle angle = 0:.01:2*pi; r = radius; X = r.*cos(angle)+ center(1); Y = r.*sin(angle)+ center(2); plot(X,Y,'.b') MATLAB: Plot a marker in the center of the circle Add this after the fill call: plot(x, y, 'kp', 'MarkerSize',15, 'MarkerFaceColor','k')Also consider separate arguments for the marker colour and size. Related QuestionGenerating cicle instances around circumferenceHow to get coordinates of a markerHow to discover intersecting circles
Best Answer