フィルターのクリア

How to create a badge to open repository in MATLAB online

8 ビュー (過去 30 日間)
Hugo Tadashi Kussaba
Hugo Tadashi Kussaba 2023 年 2 月 18 日
コメント済み: Rajeev 2023 年 3 月 3 日
In the README file of the repository MathWorks-Teaching-Resources/Virtual-Controls-Laboratory there is a badge "Open in MATLAB Online" that redirects to MATLAB online and automatically opens a dialog asking if the user wants to clone the repository to their workspace in MATLAB online.
I tried to reproduce this behaviour in my repository by using the markdown
[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=[my_repo_address]&project=MY_REPO.prj)
and adding the file MY_REPO.prj with the same contents of VirtualControlsLaboratory.prj:
<?xml version="1.0" encoding="UTF-8"?>
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"/>
However, when I click in the link in my repository, it only redirects to MATLAB online and does not open the dialog.
What is the correct way to achieve the same behaviour of Virtual-Controls-Laboratory?
  2 件のコメント
Rajeev
Rajeev 2023 年 2 月 20 日
Can you once cross-check if the file MY_REPO.prj is in the root directory of your GitHub repository?
Hugo Tadashi Kussaba
Hugo Tadashi Kussaba 2023 年 2 月 20 日
@Rajeev Thanks for your reply. I cross-checked and it is in the root of the repo.

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

採用された回答

Hugo Tadashi Kussaba
Hugo Tadashi Kussaba 2023 年 3 月 2 日
移動済み: Walter Roberson 2023 年 3 月 2 日
Hi @Rajeev. I found the problem: my repository is private.

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by