how to use polyarea
Show older comments
hello,
I would need some help using the 'polyarea' function..
lets say: x=[1.5 1.25]; y=[570 363];
Plot(x,y) gives me a clear line, when is use area(x,y) I can visualize the area I want to calculate, but when I use polyarea(x,y), the answer is always 0 ... Can anyone help me out ?
1 Comment
John D'Errico
on 28 Apr 2016
What area is it that you want to calculate? Be clear, as it is difficult for us to know what you are visualizing. The crystal ball can be so foggy.
For example, what if the line crosses the x-axis?
Accepted Answer
More Answers (0)
Categories
Find more on Elementary Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!