The "convertMuPADNotebook" function can be used to convert MuPAD notebooks (.mn) to MATLAB live scripts (.mlx) starting from MATLAB R2016a. MATLAB live scripts support most of the MuPAD functionality, though there are some differences.
Please refer to the following link to migrate MuPAD Notebooks to live scripts:
Best Answer