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

2 Ansichten (letzte 30 Tage)
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 Kommentar
Koichi Sameshima
Koichi Sameshima am 27 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Koichi Sameshima
Koichi Sameshima am 27 Okt. 2022
Bearbeitet: Koichi Sameshima am 27 Okt. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by