How to solve "There was a problem sending the command to the program."

5 ビュー (過去 30 日間)
zahra rashidi
zahra rashidi 2022 年 3 月 8 日
回答済み: Naga 2025 年 4 月 9 日
Hi,
I installed MATLAB version 2021b on Windows 7 Service Pack 1 (64-bits).
when I try to double clicking an MATLAB m-file and open it, system gives the error "There was a problem sending the command to the program."
How to solve "There was a problem sending the command to the program."?
Thanks.
  1 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 3 月 8 日
Does MATLAB open from the Start Menu? If so, you can navigate to the location of your M file in MATLAB and edit the M file in MATLAB to open it.

サインインしてコメントする。

回答 (1 件)

Naga
Naga 2025 年 4 月 9 日
This is a file association problem for MATLAB on Windows. A potential solution is the "MATLAB File Association Fix" available on File Exchange. Users report it resolves the issue by writing a Windows registry file. You can try it here:
If this doesn't work, consider these alternatives:
Solutions for MATLAB R2014a and earlier:
1. Launch MATLAB and try opening the MATLAB code files from the MATLAB GUI.
2. Follow the below steps:
- Right-click on the MATLAB icon.
- Click on properties.
- Go to the compatibility tab and select “Run this program in compatibility mode” and then select the appropriate OS.
3. Upgrade to a version more recent than R2014b.
For MATLAB R2014b and later:
Manually select the MATLAB executable in the bin subfolder as the executable to run when selecting .m files. This has been reported on R2015b for Windows 10.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by