poly2cw doesn't work for this simple rectangle. I have an example here. Could you please check this code?
Afficher commentaires plus anciens
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 on
drawnow
pause
end
Réponse acceptée
Plus de réponses (1)
KSSV
le 9 Août 2016
Xs=[ 0
1
1
1
0
1] ;
Ys=[1.0000
1.0000
0.0101
0
0
0.5000] ;
[xr,yr]=poly2cw( Xs,Ys) ;
plot(xr,yr)
2 commentaires
Kaveh Gharibi
le 9 Août 2016
Modifié(e) : Kaveh Gharibi
le 9 Août 2016
Kaveh Gharibi
le 9 Août 2016
Catégories
En savoir plus sur Bounding Regions dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
