An open API service indexing awesome lists of open source software.

https://github.com/tztsai/matopy

Matlab to Python 3 Translator.
https://github.com/tztsai/matopy

lexer matlab parser python python3 syntax-analysis translation

Last synced: about 1 year ago
JSON representation

Matlab to Python 3 Translator.

Awesome Lists containing this project

README

          

# Matlab to Python Translator

MatoPy is a project that translates Matlab code to Python 3. It is an updated version of [smop](https://github.com/victorlei/smop), fixing various issues and updating the translated code from Python 2 to 3.

## Table of Contents

- [Matlab to Python Translator](#matlab-to-python-translator)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Recent Changes](#recent-changes)

## Installation

To install MatoPy, follow these steps:

1. Clone the repository:
```sh
git clone https://github.com/tztsai/MatoPy.git
```
2. Navigate to the project directory:
```sh
cd MatoPy
```
3. Install the required Python packages:
```sh
pip install -r requirements.txt
```

## Usage

To use MatoPy, follow these steps:

1. Ensure that both Python and MATLAB are installed on your system.
2. Run the main script:
```sh
bash translate.sh SOURCE_FILES OUTPUT_DIRECTORY
```

## Contributing

We welcome contributions to MatoPy! If you would like to contribute, please follow these steps:

1. Fork the repository.
2. Create a new branch:
```sh
git checkout -b feature-branch
```
3. Make your changes and commit them:
```sh
git commit -m "Description of your changes"
```
4. Push to the branch:
```sh
git push origin feature-branch
```
5. Create a Pull Request detailing your changes.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Recent Changes

The recent changes for this repository can be found on the [commits page](https://github.com/tztsai/MatoPy/commits).