Chopping elliptical area from a rectangle

2 ビュー (過去 30 日間)
Zubaer
Zubaer 2015 年 2 月 24 日
回答済み: Image Analyst 2015 年 2 月 27 日
Assume I have a rectangle of 15m x 9m. There are balls placed 0.5m away in both directions INSIDE the rectangle. I want to chop up an elliptical area who’s major and minor axes are 15m & 9m. How many balls would there be in that area?
  2 件のコメント
John D'Errico
John D'Errico 2015 年 2 月 24 日
編集済み: John D'Errico 2015 年 2 月 24 日
And what does this have to do with MATLAB?
We try not to do your homework. After all, it was assigned to you, not us, so we won't get credit for any work we do. And while I completely trust that you would give full credit to us as a footnote to your instructor, it would be best if you give us the name and full e-mail address of that person, so we can send any answers directly to them.
In the event that you actually do manage to make an effort here and have a question that is indeed about MATLAB, then post it as a question. Show what you have done, and explain what is your problem.
Zubaer
Zubaer 2015 年 2 月 24 日
Thanks for your reply. I understand it was stupidity of mine. I have been trying for 2 days to crack down the algorithm. I should push a little bit more.

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

採用された回答

Image Analyst
Image Analyst 2015 年 2 月 27 日
It depends on how many balls are in the box. Are there 2? Are there 200? More? Should you randomly place them? Should you do a Monte Carlo experiment? Is the answer simply
numberOfBalls = 300; % Whatever...
ballsInEllipse = numberOfBalls*(pi*a*b) / (2*a * 2*b)
which is the area fraction as given by geometry times the number of balls in the ellipse? Show us your code so we can help.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDesign of Experiments (DOE) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by