Language Switch / 语言选择: 🇨🇳 中文 | 🇬🇧 English
This repository is dedicated to organising and practising the core concepts and functionalities of MATLAB.
Here, you can improve your understanding of MATLAB through examples and exercises, gradually mastering its common operations.
- Beginners who want to learn the basic structure and tools of MATLAB
- Those who want to practice MATLAB functionalities hands-on
- As a reference for daily practice and review
Start exploring, and let's master the basics of MATLAB together!
This application is licensed under the BSD-3-Clause License. You can click the link to read the licence.
- Create a local repository
Create a folder on your computer for your MATLAB project and be ready to initialise it as a Git repository. - Share to GitHub
In MATLAB, go to theSource Control
tab and clickShare to GitHub
to initialise. Follow the prompts to create a corresponding repository on GitHub. - Add new files
If you have new files in your project, clickAdd to Source Control
to stage them for commit. - Commit changes
Click Commit (or Submit) to save your changes locally with a commit message. - Push to GitHub
Click Push to upload your local commits to the GitHub repository.
- Run the command
pyenv
to check the Python version and confirm whether Python is available in MATLAB. - If Python is available, you can call functions from Python files.
- To call a function defined in a Python file, use the syntax:
py.[module_name].[function_name]
- If you add new functions to the Python file, you must run the command
clear classes
to clear the Python module that has been loaded. - If you do NOT run this command, MATLAB may throw errors when calling the updated functions.