I tried ,but failed.
But finally realized the problem, Java was not installed in my System.
Installed using,
yay -S jre jdk
Then, ran ```MathWorksProductAuthoriser```, (which I belive needs Java to work), set the user name to ```root```. Then reboot the system,and ran,
sudo prime-run matlab
Worked like a Charm.
P.S. the ```prime-run``` part is included because I needed to run Matlab on my NVIDIA dGPU and was using ```nvidia-prime``` driver. For optimus and bumblee, please refer archwiki.
Also, the reboot is optional.
@Varun Sai Alaparthi Thanks a lot for the timely reply.