How can i draw a previously specified dimensions lattice ?
1 回表示 (過去 30 日間)
古いコメントを表示
if i have a center point (xo, yo) and i want to draw a lattice of crossed circles similar to the following figure where the radius of the circle is (r)
0 件のコメント
回答 (1 件)
Robert
2016 年 7 月 12 日
Using x as your list of x coordinates and y as your list of y coordinates of the circle centers:
R = 1; % or whatever you like...
t = linspace(0,2*pi,100);
cx = R*cos(t);
cy = R*sin(t);
figure
hold all
for ii = 1:length(x)
plot(cx+x(ii),cy+y(ii))
end
hold off
axis equal
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!