Area calculation for overlapping region
2 次查看(过去 30 天)
显示 更早的评论
I have three overlapping network in a service area with Radius=600,200 and 200. the networks with Radius 200 are inner networks in the service area of radius 600. I use for loop to input radius , and then calculate area. But I don't know how to calculate
As=A1-(A2+A3). where
A1=pi*600^2,
A2=pi*200^2, and
A3=pi*200^2.
please help me
0 个评论
采纳的回答
Image Analyst
2016-4-24
That's the formula for circumference, not area! You need to square the radius
A1 = pi * 600^2
A2 = pi * 200^2
A3 = pi * 200^2
As = A1 - (A2 + A3)
更多回答(2 个)
Khadija Khan
2016-4-24
编辑:Khadija Khan
2016-4-24
1 个评论
Image Analyst
2016-4-24
Just like I showed you in my answer. If you want to save all of them, then give As an index:
As(loopIndex) = A1-(A2+A3);
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!