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!