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

1 visualización (últimos 30 días)
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 comentario
Koichi Sameshima
Koichi Sameshima el 27 de Oct. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Koichi Sameshima
Koichi Sameshima el 27 de Oct. de 2022
Editada: Koichi Sameshima el 27 de Oct. de 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.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by