3d Matrix To Image Matlab