Question: what is c2d function in matlab?
Answer: [ sysd , G ] = c2d(___) , where sysc is a state-space model, returns a matrix, G that maps the continuous initial conditions x0 and u0 of the state-space model to the discrete-time initial state vector x[0].