Area calculation for overlapping region

4 ビュー (過去 30 日間)
Khadija Khan
Khadija Khan 2016 年 4 月 24 日
回答済み: Khadija Khan 2016 年 4 月 26 日
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

採用された回答

Image Analyst
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)
  1 件のコメント
Khadija Khan
Khadija Khan 2016 年 4 月 24 日
編集済み: Khadija Khan 2016 年 4 月 24 日
yeah sorry pi*Ri^2. i need to evaluate As=A1-(A2+A3)

サインインしてコメントする。

その他の回答 (2 件)

Khadija Khan
Khadija Khan 2016 年 4 月 24 日
編集済み: Khadija Khan 2016 年 4 月 24 日
My Question is still there. How to calculate As=A1-(A2+A3) like I input R and Calculate A inside loop. But How to Calculate AS using equation As=A1-(A2+A3). how can I take these values of A1,A2 and A3 from loop. Plz help
  1 件のコメント
Image Analyst
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);

サインインしてコメントする。


Khadija Khan
Khadija Khan 2016 年 4 月 26 日
Thanks Image Analyst I solved it. Thanks for your help.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by