How to publish html in matlabcentral?

2 ビュー (過去 30 日間)
cui,xingxing
cui,xingxing 2021 年 9 月 26 日
編集済み: cui,xingxing 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!
  1 件のコメント
cui,xingxing
cui,xingxing 2021 年 9 月 26 日
I want to like this to show my "*.html" file

サインインしてコメントする。

採用された回答

Stephen23
Stephen23 2021 年 9 月 26 日
編集済み: Stephen23 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 件のコメント
Stephen23
Stephen23 2021 年 9 月 26 日
編集済み: Stephen23 2021 年 9 月 26 日
@cui:
As I wrote earlier, your latest upload to FEX here worked fine. Here is the URL that you seem to want:
Your file looks like this:
So far:
  1. I explained how to upload the HTML folder correctly, which you have now done.
  2. I showed how to view the HTML file within the FEX browser window.
  3. I showed a screenshot of what your own file looks like in the FEX browser window.
  4. I also explained and shown how to get the URL for the uploaded HTML file
  5. I have now given a screenshot of how your own file looks like in its own tab (which as far as I can tell is the "effect" you are requesting).
What is missing? Please explain in precise terms.
cui,xingxing
cui,xingxing 2021 年 9 月 26 日
編集済み: cui,xingxing 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 件)

yanqi liu
yanqi liu 2021 年 9 月 26 日
may be you should update the help document
  1 件のコメント
cui,xingxing
cui,xingxing 2021 年 9 月 26 日
What do you mean by that?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by