how to solve polygon subtract problem?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sierra
el 17 de Oct. de 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1159218/image.png)
I subtracted green circle from blue circle. and it returned second polygog like a moon.
but what i want to plot is thrid polygon.
how to subtract polygon liks this?
Thanks
0 comentarios
Respuesta aceptada
Matt J
el 17 de Oct. de 2022
Editada: Matt J
el 17 de Oct. de 2022
but what i want to plot is thrid polygon.
Plot the original polygon overlaid on top of the crescent (moon), but make the original polygon transparent.
p1=nsidedpoly(1000);
p2=nsidedpoly(1000,'Center',[1,0]);
p3=subtract(p1,p2);
plot(p3); hold on
plot(p1,'FaceAlpha',0)
0 comentarios
Ver también
Categorías
Más información sobre Elementary Polygons en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!