Why doesn’t the Simulink Editor window open automatically when I double-click a .slx file on Windows?

3 views (last 30 days)
When I double-click any Simulink .slx file, MATLAB opens, but it only stays in the Command Window without launching the Simulink Editor window to display the model.
I’ve already made sure that MATLAB is set as the default program to open .slx files in the Windows settings. The file icon also shows the MATLAB logo, and when I double-click, it does open MATLAB — but it doesn’t automatically open the Simulink model in the Simulink Editor.
How can I fix this behavior and make .slx files open directly in the Simulink Editor when double-clicked, as expected?
I’m using MATLAB R2022b on Windows, with MATLAB installed on a drive other than C:\, but all cache and preferences are still located in C:\Users\<user>\AppData\Local\MathWorks\ as usual.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 3 Jul 2025
I tried R2022b on a Windows machine, double clicking a .slx file will open MATLAB and then the Simulink model is opened.
Try re-setting it on your computer. On Windows File Explorer, right click a .slx file, select "Open with", select "Choose another app", choose MATLAB R2022b, check "Always".

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!