For loop and coordinates
古いコメントを表示
hello,
the gencircle function generates the coordinate for an inscript polygon. But off course in the for loop i obtain only the last iteration. how can i store the results of each loop in a matrix?
xo=[1 2];
yo=[-1 -0.5];
r=0.01;
N=10;
theta=2*pi/N*(1:N+1);
th=0.00235;
for i=1:length(xo)
[xout, yout]=gencircle(xo(i),yo(1),r,N);
[xin, yin]=gencircle(xo(i),yo(1),r-th,N);
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Computational Geometry についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!