This worked for me:
However, for linux (In the link above you will find for all operating systems:):
By default the MATLAB installer will create a symbolic link in /usr/local/bin/. This means you should be able to invoke MATLAB by typing “matlab” the command prompt.
If you see an error saying that the command “matlab” was not found, you can launch MATLAB from the MATLAB installation directory.
By default this is located here:
/usr/local/MATLAB/R20XXx/bin/matlab
For example, to launch MATLAB R2021b first navigate to the bin directory inside the MATLAB installation directory:
cd /usr/local/MATLAB/R2021b/bin/
Then run matlab:
./matlab