https://ubuntuask.com/blog/how-to-unfold-a-matrix-on-matlab