How can I draw a circle in matlab using parametric ecuations or the circle ecuation?
조회 수: 2 (최근 30일)
이전 댓글 표시
I need this for my homework and I managed to do it but the end result wasn't that smooth. Can somebody give me a simple, short code that gets the job done?
댓글 수: 0
답변 (2개)
Youssef Khmou
2014년 3월 14일
hi, correct the word 'ecuations' for future searching. Parametric method is the easiest one :
t=0:0.1:2*pi;
x=cos(t);
y=sin(t);
plot(x,y);
댓글 수: 0
Image Analyst
2014년 3월 14일
Code examples are in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F Increase the number of samples if you want a smoother circle.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!