How to separate function files from script (examples) files for submission to FileExchange?

1 view (last 30 days)
Please look at our submission at https://www.mathworks.com/matlabcentral/fileexchange/116290-asymppdc-package. On submission from GitHub, FileExchange site automatically separated our m-files into two categories: Functions and Examples files. However substantial part of core function files of our package and other auxiliary functions ended up wrongly categorized as Examples.
Actually we could not find a proper instructions, so we tried (1) several m-files style formatting following the instruction in the MATLABmanual, as well as copied the example's style from other submissions in the FileExchange, and (2) some possibilities in Edit Publish option choosing Functions as Publishing settings option, for instance
to no avail. Am I missing something? Any help will be greaterly appreciated.
  1 Comment
Koichi Sameshima
Koichi Sameshima on 27 Oct 2022
This was easy to find out. It was a matter of trials and errors. It does not matter whether an m-file is actually a function or a script if it will go classified into Functions or Examples in the File Exchange site. It simply depends on whether an html-file was generated or not using Publish > Publish. Those m-files with html-files Published whether as a "User Default" or as a "Functions" will be classified as Examples, and those without html-files as Functions.
This functinality seems to be a bug in the FileExchange site, as often times one might want to have a well-formatted html-files for help for function f-files.

Sign in to comment.

Accepted Answer

Koichi Sameshima
Koichi Sameshima on 27 Oct 2022
Edited: Koichi Sameshima on 27 Oct 2022
This was easy to find out. It was a matter of trials and errors. It does not matter whether an m-file is actually a function or a script if it will go classified into Functions or Examples in the File Exchange site. It simply depends on whether an html-file was generated or not using Publish > Publish. Those m-files with html-files Published whether as a "User Default" or as a "Functions" will be classified as Examples, and those without html-files as Functions.
This functinality seems to be a bug in the FileExchange site, as often times one might want to have a well-formatted html-files for help for function m-files.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by