How to publish html in matlabcentral?

2 次查看(过去 30 天)
cui
cui2021-9-26
编辑: cui ,2021-9-26
I write formatted code by matlab editor and publish it as html document by "publish", how can this document be displayed in "matlabcentral"? For example, like this1, like this2
How is these links done? That is, I already have the html file, what if I publish it to matlabcentral for display?
Thank you very much in advance to anyone who can help me, I appreciate it!

采纳的回答

Stephen
Stephen 2021-9-26
编辑:Stephen 2021-9-26
This can be done when you upload a submission to File Exchange (aka. FEX). You will need to:
  • publish your M-file to HTML using the PUBLISH command (or button). This generates a folder "html".
  • zip together the following:
  • 1. the M-file,
  • 2. the "html" folder,
  • 3. optional: any other files and folders for that submission.
  • upload the ZIP file to FEX.
If you do not include both the M-file and the "html" folder then it will not work. Do not change the filenames.
Note that multiple HTML files (and their associated images) can be included in the "html" folder!
Tip: download any FEX submssion with HTML examples and unzip it to see the "html" folder.
  13 个评论
cui
cui 2021-9-26
Hopefully the link will not fail in years to come
Now you have 5 terms in great detail! Very good!@Stephen

请先登录,再进行评论。

更多回答(1 个)

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by