|
"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
|