Determining area considering nodes arranged in space in an almost circular shape
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alberto Acri
am 16 Jan. 2024
Beantwortet: Dyuman Joshi
am 16 Jan. 2024
Hi. I have the attached nodes arranged in space. I would like to calculate the area having the nodes as boundaries.
I'm trying this way but it doesn't seem to work (the blue line does not follow the red nodes).
figure
x = plane_new(:,1);
y = plane_new(:,2);
k = boundary(x(:),y(:));
plot(x,y,'.-r')
line(x(k),y(k))
A = polyarea(x(k),y(k));

0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 16 Jan. 2024
load('plane_new.mat')
x = plane_new(:,1);
y = plane_new(:,2);
plot(x,y,'.-r')
A = polyarea(x,y)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!