The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to find the area for two overlapped pattern?
Replies: 6   Last Post: May 3, 2012 6:14 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruno Luong

Posts: 9,822
Registered: 7/26/08
Re: How to find the area for two overlapped pattern?
Posted: May 3, 2012 2:09 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Sheng Yuan" wrote in message <jnsnrb$off$>...
> Hello all,
> I have a 60mm X 48 mm area with transmissive and absorbing little squares (1mm in x and y size), like a black and white checkboard (the white as sqaure as transmissive)
> I have another pattern which is an open circle (transmissive) with 3mm in diameter.
> I now overlap the two patterns (puting the circle at the upleft corner of the checkboard pattern) and drag the 3mm diameter circle accorss the checkboard along the 60mm long direction, in 640 steps, from one end to the other end.
> I want to know as I draw the open circle accorss the blank and white little sqaures, at each step, what is the total transmissive area (will be a single number) on the checkboard fall into the 3mm diameter clear circle I am draging?
> Anyone can help on how to do this coding in matlab?
> Thanks!

You can discretize the circle as a polygon with fine edges, then use tool such as this to compute the overlap area

Then use polyarea() to compute the surface.

If you don't own mappin toolbox, you can find a replacement on FEX such as


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.