sorry to interrupt you again.
i want to ask something about discretize a LTI model, dx/dt=Ax(t)+Bu(t)+W, Y=Cx(t)+Du(t), where A,B,C,D,W are constant.
here i have some methods,will they all be ok?(The main problem is that i don't know how to deal with W)
1.x(k+1)-x(k)=Ts*Ax(k)+Ts*Bx(k)+Ts*W =>x(k+1)=(Ts*A+I)x(k)+Ts*Bx(k)+Ts*W
2.x(k+1)-x(k)=(Ts*A+I)x(k)+Ts*Bx(k)+W ??
3.dmodel=c2d(A,B,C,D),Ad=dmodel.A,Bd=dmodel.B =>x(k+1)=Adx(k)+Bdx*u(k)+W
4.dx/dt=Ax(t)+Bu(t)+W=>dx/dt=Ax(t)+Bu(t)+I*W=>dx/dt=Ax(t)+[B I]*[u(t) W]'=>c2d(A,[B I],C,D) (where I is the unit matrix)=>split discretized matrice [B I] to get the discretize matrice of B,W
Thanks