Is it possible to publish MATLAB code that can be executed online?

5 ビュー (過去 30 日間)
Snoopy
Snoopy 2020 年 9 月 2 日
コメント済み: Snoopy 2022 年 1 月 27 日
I have simple .m file. It contains a simulation that demonstrates the law of large numbers with a figure. What I want to do is to publish this code on a page online that can be executed online. So suppose a student is trying to understand the law of large numbers and looking for a simulation that demonstrates it. I want this strudent to find my page where he can push the run button to execute the code that generates the figure demonstrating the law of large numbers. For some reason I thught GitHub allows to do this. That is, I thought I could upload my .m file on GitHub and people visiting my GitHub page could see the code and run it online on GitHub to see what the code does, like they run it on their desktop MATLAB application. Is not this possible? Important is that public should be able to access the page. So MATLAB Online does not seem suitable as those with no MATLAB license wil not be able to run the code.
  1 件のコメント
Mario Malic
Mario Malic 2020 年 9 月 2 日
If the user would only push a run button, then video/gif might be the better option.

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

回答 (2 件)

Gareth D Souza
Gareth D Souza 2021 年 6 月 18 日
  1 件のコメント
Snoopy
Snoopy 2021 年 6 月 18 日
I will try as soon as I can and comment back for future reference for others. Thanks a lot.

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


Snoopy
Snoopy 2022 年 1 月 24 日
編集済み: Snoopy 2022 年 1 月 26 日
However, this is not what I want. What I want is that the third party from the public runs the code online himself. That is, he uses a link to that brings him to MATLAB online, sees my m file, and runs it. Is this possible?
  4 件のコメント
Adam Danz
Adam Danz 2022 年 1 月 26 日
I wouldn't know about that. Sometimes I come across my answers from years past that claim something isn't possible and then it becomes possible so I'm careful about my wording (sometimes).
Snoopy
Snoopy 2022 年 1 月 27 日
Yes, I understand. Thanks once again.

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by