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:
https://www.mathworks.com/discovery/mupad.html
For information on the differences and troubleshooting the issues arising due to these differences, please refer to the following links:
Difference between MATLAB and MuPAD syntax:
https://mathworks.com/help/releases/R2023b/symbolic/differences-between-matlab-and-mupad-syntax.html
Troubleshoot MuPAD to MATLAB Translation Errors:
https://mathworks.com/help/releases/R2023b/symbolic/troubleshooting-translation-errors.html