Double-clicking to open a file on a standalone matlab application

9 Ansichten (letzte 30 Tage)
Marc
Marc am 30 Sep. 2012
I have timeseries files with their own extension (.Z4R). I have compile my matlab GUI that read them.
Right now I load these files from the GUI (look for the path...). I wondering if it's possible to just double-click on the .Z4R in order to load it into my program.
Thank you, Marc

Antworten (2)

Image Analyst
Image Analyst am 30 Sep. 2012
You'd need to associate that extension with your app. In Windows, it's the "Folder Options" where you make that association. Then your app has to be prepared to take in filenames via the command line (the varargin input argument list).

Marc
Marc am 1 Okt. 2012
Thank you, How do you prepare your app to take in filenames ?
  2 Kommentare
Marc
Marc am 1 Okt. 2012
What is the name of the variable that have the path of the double-clicked file ?
Image Analyst
Image Analyst am 1 Okt. 2012
varargin will have the arguments on the command line.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Large Files and Big Data finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by