MATLAB File Association & Shortcut Fix

Fixes trouble with MATLAB file associations and missing shortcuts in Windows
Updated 19 Mar 2021

View License

Editor's Note: Popular File 2018 2019 2020

This file was selected as MATLAB Central Pick of the Week

Writes a Windows registry file that fixes problems with MATLAB file associations in Windows, e.g., that m-files doesn't open up in MATLAB or opens up in a new instance. Can also be used to switch file associations between different installed versions of MATLAB. Detailed help is included in the file. Has been tested on Windows 7 for MATLAB R2012a and R2015a and on Windows 10 for MATLAB R2020a.

Also included is a program to add missing MATLAB shortcuts to the Windows desktop and start menu and a small Windows batch file to start MATLAB (for example if the installer fails to add shortcuts). Have been tested on Windows 10 for MATLAB R2020a.

Cite As

Patrik Forssén (2024). MATLAB File Association & Shortcut Fix (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Bug fixed for old style keys


Bug fixed for '-delete' option


- Added support for .rtw, .tlc, .tmf .cdr, .prj, .rpt, .v and .vhd files and optionally for .ads, .adb, .c, .cpp, .h, .mk files.
- Only files related to installed products are now associated with MATLAB as default.

Small error in help...

Added support for .mlproj, .mlx, .sbproj, .sfx, .slmx, .slreqx and .slxc files.
Now uses file icons stored in DLL files if these are present.
Added programs to create shortcuts and to start MATLAB.