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

Risposte (2)

Rick Rosson
Rick Rosson il 30 Ago 2012
Modificato: Rick Rosson il 30 Ago 2012
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

Categorie

Richiesto:

il 29 Ago 2012

Community Treasure Hunt

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

Start Hunting!

Translated by