{"id":1373,"date":"2023-07-20T07:38:16","date_gmt":"2023-07-20T11:38:16","guid":{"rendered":"https:\/\/blogs.mathworks.com\/matlab\/?p=1373"},"modified":"2023-07-20T07:38:16","modified_gmt":"2023-07-20T11:38:16","slug":"open-science-and-reusable-research-with-matlab-online-and-github","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/matlab\/2023\/07\/20\/open-science-and-reusable-research-with-matlab-online-and-github\/","title":{"rendered":"Open science and reusable research with MATLAB Online and GitHub"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>You\u2019ve<\/span><span> written a <\/span><span>research <\/span><span>paper and you have some MATLAB code that <\/span><span>supports it.<\/span><span> How do you <\/span><span>disseminate<\/span><span> this to make it accessible to as many people as possible<\/span><span>?  <\/span><span>Here\u2019s<\/span><span> the new <\/span><span>w<\/span><span>orkflow.<\/span><span> <\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>Step 1: Put your MATLAB code <\/span><span>onto<\/span><span> GitHub<\/span><span> <\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>Step 2: <\/span><span>From the repo, <\/span><span>c<\/span><span>reate<\/span><span> <\/span><span>a <\/span><span>link that lets us <\/span><span>open up<\/span><span> directly in MATLAB Online <\/span><span>and <\/span><span>share it anywhere. <\/span><span>One<\/span><span> way <\/span><span>to<\/span><span> do this is to add a<\/span><span> badge<\/span><span> to the repo. Like this one:<\/span><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span> <\/span><a href = \"https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=raacampbell\/shadedErrorBar\"><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/matlab\/files\/2023\/07\/oiml_1.png\" width = \"136\" height = \"21\" alt = \"\" style = \"vertical-align: baseline; width: 136px; height: 21px;\"><\/img><\/a><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>That\u2019s it! Now, if someone wants to run or modify your code, they just click on \u2018Open in MATLAB Online\u2019 and start <\/span><span>interacting with your work<\/span><span>.  <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-weight: bold;'>In many <\/span><span style=' font-weight: bold;'>cases, t<\/span><span style=' font-weight: bold;'>his <\/span><span style=' font-weight: bold;'>also<\/span><span style=' font-weight: bold;'> works when <\/span><a href = \"https:\/\/www.mathworks.com\/products\/matlab-online\/matlab-online-versions.html\"><span style=' font-weight: bold; text-decoration: underline;'>they don\u2019t have a MATLAB license<\/span><\/a><span style=' font-weight: bold;'>!<\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/matlab\/files\/2023\/07\/oiml_2.gif\" width = \"252\" height = \"175\" alt = \"Mic Drop\" style = \"vertical-align: baseline; width: 252px; height: 175px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>I wanted to end this article there. This is a development that I find so exciting that I\u2019ve been begging to publish something about it ever since I first learned of it. Some of my friends around here, however, suggested that maybe I add a little more detail. So here goes\u2026. <\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span>Put your <\/span><span>MATLAB and Simulink<\/span><span>-based <\/span><span>research <\/span><span>code on <\/span><span>GitHub<\/span><span> <\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>For many years now, I have been promoting better practices in research software along with colleagues from the <\/span><a href = \"https:\/\/society-rse.org\/\"><span style=' text-decoration: underline;'>Research Software Engineering community<\/span><\/a><span>.  A huge amount of modern research critically relies on computational software but <\/span><a href = \"https:\/\/mikecroucher.github.io\/reproducible_ML\/\"><span style=' text-decoration: underline;'>Is Your Research Software Correct?<\/span><\/a><span> is a question I <\/span><span>like<\/span><span> to ask my research colleagues. A large part of my career has been devoted to helping the answer to that question be \u2018yes\u2019 for as many people as possible<\/span><span>.  <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In <\/span><a href = \"https:\/\/mikecroucher.github.io\/reproducible_ML\/\"><span style=' text-decoration: underline;'>\u2018Is your Research Software Correct?<\/span><span style=' text-decoration: underline;'>\u2019<\/span><\/a><span>, one of the <\/span><span>earliest <\/span><span>pieces of advice I give to researchers <\/span><a href = \"https:\/\/walkingrandomly.com\/?p=6653\"><span style=' text-decoration: underline;'>is \u2018use version control\u2019<\/span><\/a><span>\u2026.always! <\/span><span>I prefer and recommend git and <\/span><span>GitHub<\/span><span> but other <\/span><span>version control <\/span><span>systems <\/span><span>are fine if you insist.<\/span><span> <\/span><span>In this new workflow, however, MathWorks have initially targeted GitHub due to its massive popularity. <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Once your research code is on GitHub, <\/span><span>it\u2019s<\/span><span> \u2018out there\u2019 and available for other people to us<\/span><span>e<\/span><span>.<\/span><span>  <\/span><span>It\u2019s<\/span><span> an extremely important first step in the practice of open science<\/span><span> and, once <\/span><span>you\u2019ve<\/span><span> made it,<\/span><span> you are free to add on all kinds of<\/span><span> things<\/span><span> to level up your game<\/span><span>. From simple moves such as a well-written Readme file a<\/span><span>nd a demo of your code <\/span><span>in a Live Script <\/span><span>right up to unit testing,<\/span><span> continuous integration and getting a DOI. <\/span><span> <\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span>Add an \u2018Open in MATLAB Online\u2019 <\/span><span>badge<\/span><span> <\/span><span>to the repo.<\/span><span> <\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>MATLAB Online is <\/span><span>a browser-based version of MATLAB running on the cloud and <\/span><span>was<\/span><span> used by over <\/span><span>1.5 million<\/span><span> people <\/span><span>last year<\/span><span>.  <\/span><span>Read <\/span><a href = \"https:\/\/www.mathworks.com\/products\/matlab-online.html\"><span style=' text-decoration: underline;'>more about it here<\/span><\/a><span> or, better yet, <\/span><span>go and have<\/span><span> a play with it<\/span><span> at <\/span><a href = \"https:\/\/matlab.mathworks.com\/\"><span style=' text-decoration: underline;'>https:\/\/matlab.mathworks.com\/<\/span><\/a><span> <\/span><span> <\/span><span>)  <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>GitHub helps make your <\/span><span>code available. <\/span><span>MATLAB Online <\/span><span>helps <\/span><span>makes<\/span><span> it <\/span><span>easier to use. <\/span><span>Of course, your users are free to download your code from GitHub or use command line git to clone the rep<\/span><span>ository<\/span><span>.  <\/span><span>They can then make use of their desktop <\/span><span>version<\/span><span> of MATLAB to <\/span><span>work with your research.<\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Adding an <\/span><span>\u2018Open in MATLAB Online<\/span><span>\u2019<\/span><span> badge<\/span><span> <\/span><span>makes it even easier for <\/span><span>those interested to p<\/span><span>lay with your research<\/span><span>.<\/span><span>  All you need to do is <\/span><span>form the link based on your repo\u2019s URL<\/span><span>.  <\/span><span>For example:<\/span><span> <\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>GitHub URL: <\/span><a href = \"https:\/\/github.com\/slevin48\/liveapp\"><span style=' text-decoration: underline;'>https:\/\/github.com\/slevin48\/liveapp<\/span><\/a><span> <\/span><span> <\/span><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>URL to open<\/span><span> in <\/span><span>MATLAB Online (created with <\/span><a href = \"https:\/\/www.mathworks.com\/products\/matlab-online\/git.html\"><span>this webpage<\/span><\/a><span>): <\/span><a href = \"https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=slevin48\/liveapp&amp;file=SolarPanelEstimator.mlx\"><span style=' text-decoration: underline;'>https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=slevin48\/liveapp&amp;file=SolarPanelEstimator.mlx<\/span><\/a><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>In the above link <\/span><span>we\u2019ve<\/span><span> also encoded the fact that we want the file <\/span><span style=' font-family: monospace;'>SolarPanelEstimator.mlx<\/span><span> to be loaded <\/span><span>when we enter MATLAB Online.<\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>When someone clicks on the above link, <\/span><span>MATLAB Online will open, the repo will be cloned to their MATLAB drive and the requested file will be opened.<\/span><span> The gif below shows what this looks like in practice. <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/matlab\/files\/2023\/07\/oiml_3.gif\" width = \"919\" height = \"613\" alt = \"oiml.gif\" style = \"vertical-align: baseline; width: 919px; height: 613px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Notice that the Live Script that was opened was a simple application that was made using Live Controls.  The code behind it, for those who want it, is available to view and edit with a single click. <\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span>Any <\/span><span>public r<\/span><span>epo, any time<\/span><span>, one-click clone<\/span><span> <\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>What I like about this new workflow is that the owner of the GitHub repo <\/span><span>doesn\u2019t<\/span><span> need to do anything for me to be able to make use of <\/span><span>their code<\/span><span> in this way<\/span><span>.  <\/span><span>I could find <\/span><span style=' font-weight: bold;'>any<\/span><span> GitHub repo <\/span><span>containing<\/span><span> MATLAB code, form the link<\/span><span> and make it <\/span><span>available to my readers<\/span><span>, <\/span><span>students<\/span><span> or collaborators. <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>At the time of writing, this <\/span><span>great <\/span><span>repo<\/span><span> from Rob Campbell<\/span><span> <\/span><span>doesn\u2019t<\/span><span> have an \u2018Open in MATLAB Online\u2019 <\/span><span>b<\/span><span>adge<\/span><span>:<\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/github.com\/raacampbell\/shadedErrorBar\"><span style=' text-decoration: underline;'>https:\/\/github.com\/raacampbell\/shadedErrorBar<\/span><\/a><span> <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Following the instructions <\/span><a href = \"https:\/\/www.mathworks.com\/help\/matlab\/matlab_env\/open-github-repositories-in-matlab-online.html\"><span style=' text-decoration: underline;'>in the documentation<\/span><\/a><span>, I<\/span><span> <\/span><span>form the URL <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=raacampbell\/shadedErrorBar\"><span style=' text-decoration: underline;'>https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=<\/span><span style=' text-decoration: underline;'>raacampbell\/shadedErrorBar<\/span><\/a><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>and we are done.  Alternatively, you can simply feed the GitHub repo <\/span><a href=\"https:\/\/www.mathworks.com\/products\/matlab-online\/git.html\">to this webpage<\/a><span> and it will do it for you automatically. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Of course, as the owner of a repo, I could make it easier for my users to <\/span><span>open my code by adding <\/span><span>some<\/span><span> <\/span><span>MarkDown<\/span><span> to the ReadMe file<\/span><span>.  <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-family: monospace;'>[![Open in MATLAB Online](https:\/\/www.mathworks.com\/images\/responsive\/global\/open-in-matlab-online.svg)](https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=raacampbell\/shadedErrorBar) <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This produces<\/span><span> a badge that looks like this<\/span><span> <\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/matlab.mathworks.com\/open\/github\/v1?repo=raacampbell\/shadedErrorBar\"><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/matlab\/files\/2023\/07\/oiml_1.png\" width = \"136\" height = \"21\" alt = \"\" style = \"vertical-align: baseline; width: 136px; height: 21px;\"><\/img><\/a><span> <\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span>No MATLAB <\/span><span>license<\/span><span>? No problem.<\/span><span> <\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>A huge number<\/span><span> of universities and research institutions have MATLAB licenses <\/span><span>but what if your collaborators do not<\/span><span>?  <\/span><span>How do they run, <\/span><span>edit<\/span><span> and <\/span><span>generally play<\/span><span> around with your code?<\/span><span> The answer is, they just click on the link and get on with it.<\/span><span> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span> All they need is a <\/span><a href = \"https:\/\/www.mathworks.com\/login\"><span style=' text-decoration: underline;'>free <\/span><span style=' text-decoration: underline;'>MathWorks <\/span><span style=' text-decoration: underline;'>A<\/span><span style=' text-decoration: underline;'>ccount<\/span><\/a><span> and they can make use of MATLAB Online (basic)<\/span><span>.  <\/span><span>There are limitations, to be sure (<\/span><a href = \"https:\/\/www.mathworks.com\/products\/matlab-online\/matlab-online-versions.html\"><span style=' text-decoration: underline;'>details here<\/span><\/a><span>)<\/span><span>,<\/span><span> but<\/span><span> a lot of things are supported and <\/span><span>it\u2019s<\/span><span> <\/span><span>useful for <\/span><span>a large number of<\/span><span> workflows<\/span><span>.  <\/span><span>It all Just Works! <\/span><span> <\/span><span> <\/span><\/div><h3  style = 'margin: 15px 10px 5px 4px; padding: 0px; line-height: 18px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 17px; font-weight: 700; text-align: left; '><span>Add \u2018Open in MATLAB Online<\/span><span>\u2019<\/span><span> to<\/span><span> your repo now<\/span><span> <\/span><\/h3><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>If you have some <\/span><span>MATLAB code and want to make it more accessible to the world, why not add the <\/span><span>badge <\/span><span>to your repo now<\/span><span>?  <\/span><span> <\/span><\/div>\r\n<\/div><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/matlab\/files\/2023\/07\/oiml_3.gif\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>You\u2019ve written a research paper and you have some MATLAB code that supports it. How do you disseminate this to make it accessible to as many people as possible?  Here\u2019s the new workflow. Step 1: Put... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/matlab\/2023\/07\/20\/open-science-and-reusable-research-with-matlab-online-and-github\/\">read more >><\/a><\/p>","protected":false},"author":176,"featured_media":1364,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[68,39,74,71],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/1373"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/users\/176"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/comments?post=1373"}],"version-history":[{"count":6,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/1373\/revisions"}],"predecessor-version":[{"id":1391,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/1373\/revisions\/1391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media\/1364"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media?parent=1373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/categories?post=1373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/tags?post=1373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}