problem with unit circle
Mostrar comentarios más antiguos
hi all,
how can Create a 2-by-n matrix with n equally distanced points on the unit circle?
thanks in advance
Respuestas (2)
Rick Rosson
el 30 de Ag. de 2012
Editada: Rick Rosson
el 30 de Ag. de 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
Image Analyst
el 30 de Ag. de 2012
0 votos
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
Categorías
Más información sobre Numeric Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!