is there a function that receives 3 coordinates in X-Y as a matrix and calculates its Area and environment ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Shervin Akbari
il 21 Nov 2021
Commentato: Shervin Akbari
il 21 Nov 2021
is there a function that receives 3 coordinates in X-Y as a matrix and calculates its Area and perimeter and coordinates of Center area?
Please Help
0 Commenti
Risposta accettata
Più risposte (1)
Walter Roberson
il 21 Nov 2021
If you use the second output of boundary() then it will return the area.
The coordinates of the center of a set of 2D points, is the same as the mean() of each of the coordinates -- unless there is a non-uniform "weight" associated with the coordinates (for example if the core is denser then the edges.)
I do not know what "environment" means for the purpose of your question ?
Vedere anche
Categorie
Scopri di più su Computational Geometry in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!