Hi Hamza,
You should spend some time getting acquainted with the new rcomb command and what it can do. You can add or subtract matrices, convert them from RGB to Y, multiply two matrices, and quite a few other things. It is part of the latest 6.0a release found here.
The man page is included in the release, and I am linking a PDF of it, below.
Cheers,
-Greg