Effacer les filtres
Effacer les filtres

if i assign 4 position(x,y) can i make a point and line to connect it together like freehand drawing

2 vues (au cours des 30 derniers jours)
if i assign 4 position(x,y) can i make a point and line to connect it together like freehand drawing ? and i can find the area of this ?

Réponse acceptée

Walter Roberson
Walter Roberson le 26 Jan 2012
X = [x1 x2 x3 x4 x1];
Y = [y1 y2 y3 y4 y1];
plot(X,Y)
polyarea(X,Y)

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by