Xs{1}=[ 0 1 1 1 0 1]Ys{1}=[1.0000 1.0000 0.0101 0 0 0.5000][xr,yr]=poly2cw( Xs{1} , Ys{1} )for i=1:length(xr)plot(xr(i),yr(i),'or')hold ondrawnowpauseend
MATLAB: Poly2cw doesn’t work for this simple rectangle. I have an example here. Could you please check this code
Mapping ToolboxMATLAB
Best Answer