On a given day of a flu epidemic, a given percentage Y of the population is ill and (1-Y) is healthy. The probability of remaining healthy on the next day is a, and that of remaining sick is B. The question is, what percentage will be ill after a given number of days as a function of B,a and Y.(adsbygoogle = window.adsbygoogle || []).push({});

Write down the problem as a matrix multiplication of the vector of healthy and ill people. Define a MATLAB function that gives the percentage of ill people after n days for arbitrary B a,and Y.

any hints will be appreciated v much

thank you

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Successive matrix multiplication

**Physics Forums | Science Articles, Homework Help, Discussion**