Good day, I am trying to model the following situation.
There is a system, which can be in three states. State M1, M2 and M3. From state M1, it can go into state 2 with probability p1. From state M2 it can go into state 1 with probability p2, and into state 3 with probability p3. From state M3 it can go into state 2 with probability p4.
Now my first attempt at tackling this was by working with a system of three coupled differential equations
But this doesn't really seem to work, as when I try to plot the solutions I'm not really seeing the expected dynamics.
So instead I want to try and solve it in a discrete sense, but I honestly don't know where to begin. My guess is that one of the easier ways of doing so is by using matlab?
As for boundary conditions, I'd like to consider starting in M1.
Now I understand that I am really not giving you much, but I honestly don't have any idea where to begin. So my question basically boils down to how should I start tackling this problem, and is there any closely related problem that I can look up, to see how they handle that?
Kind regards
Edit: It might be useful to note that I am doing this in order to find out how long, on average, the system spends in each state. I want to eventually fit this to data, in order to find the probabilities.