For all aother multiplications you used the elementwise product. Therefore I guess, this is meant hear also:
z9 .* Tb
fTb = @(t,Tp,Tb,Tt,Ti) z8 .* Tp + z9 .* Tb + z10 .* Tt + z11 .* Ti;
If this is the solution: Think twice. If a foreign user in a forum, who has not idea about what you are doing, can guess the problem, something went wrong.
Insert spaces around the operators. Add a lot of meaningful comments, which allow to reconsider, what the code should do. It looks like you have inserted the calculations hard coded in a RK integrator. This is a very bad idea. Better write an integrator and test it exahustively at first. Then you can trust the integration and the actual calculations are provided as separate code.
Best Answer