MATLAB: 2D Circle 3D Plot. circle Hello, How can i draw a circle in a 3d plot? thanks, Best Answer r=1teta=-pi:0.01:pix=r*cos(teta);y=r*sin(teta)plot3(x,y,zeros(1,numel(x))) Related SolutionsMATLAB: How to draw a circle in a log-log plot 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); MATLAB: Sphere with center and radius How about this?[x,y,z] = sphere;x = x*650000;y = y*650000;z = z*650000;figuresurf(x+650000,y+650000,z+650000) Related Question
Best Answer