problem with unit circle
4 views (last 30 days)
Show older comments
hi all,
how can Create a 2-by-n matrix with n equally distanced points on the unit circle?
thanks in advance
0 Comments
Answers (2)
Rick Rosson
on 30 Aug 2012
Edited: Rick Rosson
on 30 Aug 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
0 Comments
Image Analyst
on 30 Aug 2012
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 Comments
See Also
Categories
Find more on Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!