After installing MATLink, I tried the running the following cells in Mathematica:
Needs["MATLink`"]
OpenMATLAB[]
and
MEvaluate["mat = magic(4)"]
But nothing showed up in the output cell.
Then I tried
mat = MGet["mat"]
and the output says
$Failed
Does anyone know why this might happen?
I think I have properly installed MATLink. I followed the steps mentioned here https://mathematica.stackexchange.com/questions/307780/installing-matlink, and I have registered the default MATLAB version by running regmatlabserver in MATLAB. I'm using Mathematica14.3 and MATLAB R2025b, both of which are 64-bit.