GUI Scale Using Matrix

hello,
i want to scale my gui elements using matrix by clickiing a gui and another clicking it will go it’s first stage , pls help me.

  • thanks

GUI.Matrix = Matrix4X4.TRS(Vector3.zero , Quaternion.Identity, new Vector3(scaleFactorInX, scaleFactorInY, 1) )