Added Euler to Matrix function