MATLAB Answers

How to publish html in matlabcentral?

조회 수: 7(최근 30일)
cui 2021년 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!
  댓글 수: 1
cui 2021년 9월 26일
I want to like this to show my "*.html" file

댓글을 달려면 로그인하십시오.

채택된 답변

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 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 2021년 9월 26일
What do you mean by that?

댓글을 달려면 로그인하십시오.




Community Treasure Hunt

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

Start Hunting!

Translated by