problem with unit circle
조회 수: 4 (최근 30일)
이전 댓글 표시
hi all,
how can Create a 2-by-n matrix with n equally distanced points on the unit circle?
thanks in advance
댓글 수: 0
답변 (2개)
Rick Rosson
2012년 8월 30일
편집: Rick Rosson
2012년 8월 30일
Please try:
n = 256;
dPhi = 2*pi/n;
phi = (-pi:dPhi:pi-dPhi);
z = exp(1j*phi);
C = [ real(z) ; imag(z) ];
figure;
plot(z);
HTH.
Rick
댓글 수: 0
Image Analyst
2012년 8월 30일
Please read the FAQ for several examples of how to create circles: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!