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

1 次查看(过去 30 天)
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 个评论
Koichi Sameshima
Koichi Sameshima 2022-10-27
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.

请先登录,再进行评论。

采纳的回答

Koichi Sameshima
Koichi Sameshima 2022-10-27
编辑:Koichi Sameshima 2022-10-27
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by