I am solving an advection-diffusion equation \begin{equation} u_{t}=au_{x}+Du_{xx} \end{equation} by some numerical method in matlab, the numerical solution matrix is denoted by Ynum, while the exact solution matrix is denoted by Ytru, and both of them have the same dimension, how can I calculate the order of accuracy of this numerical method ?.
Thank you in advance.