フィルターのクリア

Changing the default version of MATLAB for opening files

90 ビュー (過去 30 日間)
Penny
Penny 2019 年 2 月 22 日
コメント済み: nitzan lubi 2022 年 5 月 25 日
I have MATLAB 2016a and 2018b installed on the same machine. We don't want to uninstall 2016 yet because we have significant amounts of code written for 2016a which might not work on 2018b. The problem is, everything defaults to opening with 2016a. I have tried to fix this though going into the Windows options of changing what programme opens files, but the problem is that when I browse to the 2018b executeable it just notes that it is also MATLAB and leaves it as 2016a. So this is probably more a bug in Windows than strictly a MATLAB issue. But does anyone know how to fix it? I know of workarounds like opening 2018a first then doing file > open, but we want it to work properly.

回答 (2 件)

Hakan Basargan
Hakan Basargan 2020 年 6 月 18 日
Please note that this solution for the Windows.
  1. Run the Terminal.
  2. Go to the matlab root by using cd command (until you find matlab.exe)
  3. Then matlab.exe/register
Thats all.
  4 件のコメント
Hakan Basargan
Hakan Basargan 2021 年 3 月 19 日
Please make sure that you have located the matlab root (bin).
Adam Danz
Adam Danz 2021 年 3 月 19 日
> Please make sure that you have located the matlab root (bin).
Find it using,
r = matlabroot()

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


Adam Danz
Adam Danz 2021 年 3 月 18 日
For windows 10, follow these instructions (I've used this method recently with r2021a)
If there are still problems, use this function on the file exchange,
  1 件のコメント
nitzan lubi
nitzan lubi 2022 年 5 月 25 日
I have tried using both options, and to manually change the default matlab path on the system variables.
Nothing works... I currently have both 2018 and 2020b, and still the default version when pressing on a .m file or via cmd prompt, 2018 comes up.
Does anyone has any idea how to solve this?

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by