Hello,
i m trying to obtain a set of coordinates for this:
function [x, y] = gencircle(xo,yo,r,N)x=(xo+r*cos(theta))';y=(yo+r*sin(theta))';clear allxo=[1 2 3 4 5 6 7 8];yo=[-1 -0.5];r=0.01;N=10;theta=2*pi/N*(1:N+1);th=0.00235;for j=1:length(yo) for i=1:length(xo) [xout(:,i), yout(:,j)]=gencircle(xo(i),yo(j),r,N) [xin(:,i), yin(:,j)]=gencircle(xo(i),yo(j),r-th,N) endendfor j=1:length(yo) for i=1:length(xo) aa=[xout(:,i),yout(:,j)] endend
how can i store the vector aa for each loop?
Thanks
Best Answer