I was hoping someone could help me with conducting my discretization in MATLAB. I have a linear system with known data: sampling interval $T$, system matrix $\mathbf{A}$, input matrix $\mathbf{B}$, output matrix $\mathbf{C}$ and direct feed-through $\mathbf{D}$.
Now I need to manually compute the discrete system in MATLAB, I know that: $x[k+1] = \phi x[k]+\gamma u[k]$
Now the question is how to compute $\phi$ and $\gamma$ in MATLAB, I hope someone can help me there, I know that $\phi = e^{\mathbf{A}T}$ and $\gamma = \int_0^T e^{\mathbf{A}x}\mathbf{B}dx$. I am not very familiar anymore with MATLAB syntax, it would be huge help if someone could show me how to type this in MATLAB, then I can start analyzing the system for myself. Thanks in advance :)
dscr
; some of those function names are the same between Matlab and Scilab. $\endgroup$