MATLAB: How to draw a circle in a log-log plot circleloglog plot Hello guys, I need to make a graph that shows two concentric circles of very different sizes. I need to draw a concentric circles in a log-log plot. How can I do? Best Answer Use the FAQ to draw a circle, then exponentiate:http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3FxCenter = 12;yCenter = 10;theta = 0 : 0.01 : 2*pi;radius = 5;x = radius * cos(theta) + xCenter;y = radius * sin(theta) + yCenter;xe = exp(x);ye = exp(y);loglog(xe, ye, 'LineWidth', 2);axis square;grid on;hold on;% Draw second circleradius = 3;x = radius * cos(theta) + xCenter;y = radius * sin(theta) + yCenter;xe = exp(x);ye = exp(y);loglog(xe, ye, 'LineWidth', 2); Related SolutionsMATLAB: 2D Circle 3D Plot. r=1teta=-pi:0.01:pix=r*cos(teta);y=r*sin(teta)plot3(x,y,zeros(1,numel(x))) MATLAB: Need a script to plot a circle with given radius and center See the FAQ for code examples: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3FHere's one way from the FAQ that is most similar to yours:xCenter = 5;yCenter = 7;theta = 0 : 0.01 : 2*pi;radius = 3;x = radius * cos(theta) + xCenter;y = radius * sin(theta) + yCenter;plot(x, y);axis square;xlim([0 10]);ylim([0 12]);grid on;axis equal; Related QuestionHow to plot left semi_circle in matlab? (Given, x(origin), y(origin) and r(radius) of the circle)Drawing a semi-circle in Matlab about a pointTo plot an ellipseRecognize the center and diameter of a circle
Best Answer