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

3 visualizzazioni (ultimi 30 giorni)
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 Commento
Koichi Sameshima
Koichi Sameshima il 27 Ott 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.

Accedi per commentare.

Risposta accettata

Koichi Sameshima
Koichi Sameshima il 27 Ott 2022
Modificato: Koichi Sameshima il 27 Ott 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.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by