and if I interpret what you really want to do, you want to setup a parameteried problem where
(I-0.5*dt*Akm1(:,:,t))\((I+0.5*dt*Akm1(:,:,t-1))*y(:,t-1)+0.5*dt*B*(u(:,t)+u(:,t-1)))
and
T_max*exp(-zkm1(t))*(1-(z(t)-zkm1(t)))
are dealth with by paramterizing the problem in Akm1 and zkm1. However, that will not work, as the inverse operator isn't supported for sdpvars (the resulting expression would be horrible), and parameters in nonlinear functions isn't supported.
What you would have to do is to see the epxressions as H{t}*y(:,t-1)+G{t}*(u(:,t)+u(:,t-1)) and Q{t}*(1-(z(t)-zkm1(t))) where H, G and Q are the new parameters. However, there would be a massive amount of parameters as H{t} is 5x5, and I doubt it would be much faster than setting up from scratch in every iteration.