Circle1 MATLAB 원 그리기. center=[0 0]; %중심점r=200; %반지름N=1000; %개수theta=linspace(0,2*pi,N); %원(라디안)x=r*cos(theta)+center(1); y=r*sin(theta)+center(2); plot(x,y); axis equal; %좌표축. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%운동장 모양 설마 이건 헛진거리 한건 아니겠지 ㅠㅠ clear allclc center=[0 0]; %중심점r=70; %반지름N=1000; %원의 점 개수NL = 600; %선의 점 개수*2 theta=linspace(0,2*pi,N); %원(라디안)x=r*cos(theta)+center(1); y=r*sin(theta)+center(2);.. 2009. 11. 6. 이전 1 다음