Conditionally import matlab_magic