how to associate MATLAB files in Linux

3 ビュー (過去 30 日間)
Rajasekaran
Rajasekaran 2012 年 7 月 25 日
コメント済み: Jon Wittmer 2018 年 11 月 26 日
I am using MATLAB R2011b in Ubuntu 12.04. By default MATLAB files are not associated with it. When I click the files, it was opened in the text editors. Each time i have to open the MATLAB and then i need to use file->open to view any files. How to associate the m and mdl files to MATLAB.?
Thanks in advance.
regards,
Rajasekaran V.

回答 (1 件)

Mark
Mark 2017 年 10 月 28 日
編集済み: Mark 2017 年 10 月 28 日
For Ubuntu 16.04 this is different so.
What worked for me is appending %F to the end of Exec=some/path which is in my matlab.desktop file.
Locate the matlab.desktop file its either in
~/.local/share/applications
or
~/usr/share/applications
I found the solution here Also if you don't have a matlab.desktop file then you may want to create one link to some relevant help to create launcher icon
  1 件のコメント
Jon Wittmer
Jon Wittmer 2018 年 11 月 26 日
This answer is mostly correct, however, it should be noted that the second directory should be
/usr/share/applications
and not
~/usr/share/applications
as the "~" in front makes the path relative to the users home directory.
This is equivalent to:
/home/my_username/usr/share/applications
The first directory is correct.

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

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by