Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how do i write condition for polyshape oobject overlap by 2 other polyshape object!!!! (poly3 overlaped by poly1 and poly2)

1 vue (au cours des 30 derniers jours)
Prakash Choudhary
Prakash Choudhary le 18 Juin 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
clc
close all
clear variables
poly1 = polyshape([2200 0 0 2200],[130 82 -82 -130]);
poly2 = polyshape([3200 1000 1000 3200],[130 82 -82 -130]);
poly3 = polyshape([4200 2000 2000 4200],[130 82 -82 -130]);
plot(poly1)
hold on
plot(poly2)
plot(poly3)
if overlaps(poly1,poly2)
disp('Yes')
else disp('No')
end
if overlaps((poly1,poly2),poly3)
disp('Yes1')
else disp('No1')
end

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by