フィルターのクリア

How can I associate my load() function with my own file extension when double-clicked in MATLAB?

3 ビュー (過去 30 日間)
I have a few custom binary file types, and associated functions for loading them into the MATLAB workspace. I would like the convenience of associating my m-file with the custom extension, so that it is automatically called if you double-click the file icon from within the MATLAB desktop. Is this possible?
I have seen a similar question and answer at http://www.mathworks.com/matlabcentral/answers/12212, which is very clever, but I'm looking for something to work just within MATLAB, not the entire Windows environment.
  2 件のコメント
Jan
Jan 2013 年 2 月 6 日
Double click the file icon from within the MATLAB desktop? Where are icons, which can be double-clicked, in the MATLAB desktop? And what exactly is "the Matlab Desktop"?
Carl
Carl 2013 年 2 月 8 日
編集済み: Walter Roberson 2013 年 2 月 8 日
I'm somewhat confused. Do you have *.yourextension files that you want to open by double clicking them in the matlab desktop? Then you would just have to create a openyourextension.m file in %userprofile%\Matlab\ which has the following content:
function openyourextension(file)
yourscript(file);
end

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

回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 2 月 8 日
You should contact support with regards to this. It definitely sounds like a good enhancement request, if not possible in a documented way now.

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by