Matrix to Euler; possible in mel?

In mel is there a function to convert a matrix to euler angles? Or is there a way to set a joint rotation to given matrix?

xform.