Matlab依据圆心,半径画圆

function plotcircle(x,y,r)
    theta=0:0.01:2*pi+0.01;  
    Circle1=x+r*cos(theta);  
    Circle2=y+r*sin(theta);   
    plot(Circle1,Circle2,'g','linewidth',1);  
    axis equal
end

你可能感兴趣的:(Matlab画图,matlab,几何学,矩阵)