필터 지우기
필터 지우기

How to associate .fig file in linux?

조회 수: 28 (최근 30일)
Paul
Paul 2012년 2월 27일
편집: prateek raj gautam 2020년 2월 16일
I am trying to associate .fig files with matlab in linux (Ubuntu 10.10), such that I can open them by double-clicking the file.
I'm able to open files from the command line with "matlab -r "open('filename.fig')"".
The closest I've been able to get with the "open with" configuration is to have matlab start, the figure pop up, and then matlab and the figure shutdown. This was with the file being associated with "matlab -r "open(%f)""
Any tips would be appreciated.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 3월 22일
Please keep in mind that if you open() a .fig file by double-clicking, you cannot run its associated code. .fig files have associated .m files and you must run the .m file in order to do initialization needed by the .fig file.

댓글을 달려면 로그인하십시오.

채택된 답변

Andreas
Andreas 2012년 3월 22일
Hi Paul!
You are on the right track.
The right command for "open with" is matlab -desktop -r "open(%f)"
Cheers Andreas
  댓글 수: 1
Paul
Paul 2012년 3월 23일
Worked great, thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

prateek raj gautam
prateek raj gautam 2019년 11월 19일
The right command for "open with" is matlab -desktop -r "open(%f)"
It worked after installing matlab-support from package manager.
but Each m file is opened in separate window. How to make it open is same running instance.
  댓글 수: 1
prateek raj gautam
prateek raj gautam 2020년 2월 16일
편집: prateek raj gautam 2020년 2월 16일
matlab -desktop -r "open(%f)
after installing matlab-support and configuring it properly.
any update related to not opening each file in seprate matlab window?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by