Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
inclusion exclusion rule code

Subject: inclusion exclusion rule code

From: Shaddy

Date: 3 Dec, 2010 20:55:05

Message: 1 of 2

I a trying to write a code wish calculate the probability of multi variable event based on
the inclusion exclusion rude defined here
http://en.wikipedia.org/wiki/Inclusion%E2%80%93exclusion_principle

Does anyone know about a matlab code that does this?
I tried to write my code but I had a hard time doing so after the 3rd term.

Thank you

Subject: inclusion exclusion rule code

From: Sean de

Date: 3 Dec, 2010 21:05:09

Message: 2 of 2

"Shaddy" <shaddyab@gmail.com> wrote in message <idblf9$av7$1@fred.mathworks.com>...
> I a trying to write a code wish calculate the probability of multi variable event based on
> the inclusion exclusion rude defined here
> http://en.wikipedia.org/wiki/Inclusion%E2%80%93exclusion_principle
>
> Does anyone know about a matlab code that does this?
> I tried to write my code but I had a hard time doing so after the 3rd term.
>
> Thank you

A few hints:
help ismember
help setdiff
help union
help intersect

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us