Create and Clone GitHub Repository
We first created a brand new GitHub repository with a README file. We cloned this repository in MATLAB On-line, which copied all of the recordsdata from the repository to a folder in our working listing.
Animated Determine: Create a GitHub repository and clone it with MATLAB On-line. We generated a private entry token to make use of instead of a password. We’re going to want the token to authenticate with GitHub when pushing our new or up to date recordsdata to the GitHub repository. Animated Determine: Generate private entry token.Import Mannequin from PyTorch in MATLAB On-line
Beginning in MATLAB R2023b, you possibly can import fashions from PyTorch in MATLAB On-line. To indicate this performance, we reused the code from the doc instance Import Community from PyTorch and Classify Picture. As soon as we confirmed that the code runs as anticipated (that’s, the PyTorch mannequin is efficiently imported and the check picture is accurately labeled), in three fast steps we uploaded the code to our GitHub repository.
- We added the reside script to Supply Management.
- We dedicated the script.
- We pushed the script to the GitHub repository.
Add MATLAB On-line Button to Repository
Lastly, we added an “Open in MATLAB On-line” button to our GitHub repository. By clicking on the button, the GitHub repository opens immediately in MATLAB On-line (independently from the Git-tracked folder that we beforehand created). This makes it straightforward to share your code along with your staff or neighborhood. To be taught extra, see Open in MATLAB On-line from GitHub.
Animated Determine: Open code from GitHub repository with MATLAB On-line.