MATLAB: How to associate .fig file in linux

figfigure filesfile associationlinuxMATLAB

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.

Best Answer

Hi Paul!
You are on the right track.
The right command for "open with" is matlab -desktop -r "open(%f)"
Cheers Andreas
Related Question