problem with unit circle

hi all,
how can Create a 2-by-n matrix with n equally distanced points on the unit circle?
thanks in advance

回答 (2 件)

Rick Rosson
Rick Rosson 2012 年 8 月 30 日
編集済み: Rick Rosson 2012 年 8 月 30 日

0 投票

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
Image Analyst
Image Analyst 2012 年 8 月 30 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeNumeric Types についてさらに検索

タグ

質問済み:

2012 年 8 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by