Translate Python To MATLAB With ChatGPT Programmatically
Version 1.0.2 (623 KB) von
Duncan Carlsmith
Reads python code from a url and generates MATLAB code using OpenAI's ChatGPT.
This Live Script applies the code Generate MATLAB Code Using ChatGPT API to translate python code to executable MATLAB code using OpenAI's ChatGPT. The python code translated is an example read from a matplotlib url. By scraping all of the examples from that respository, or a similar repository, entire python libraries might in principle be translated.
To use this script, open a free account and and receive an API secret key at https://platform.openai.com/account/api-keys and save your key to a text file in the path of the script. The .m file generated may be opened in MATLAB and saved as Live Script.
View and like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted
Zitieren als
Duncan Carlsmith (2024). Translate Python To MATLAB With ChatGPT Programmatically (https://www.mathworks.com/matlabcentral/fileexchange/126734-translate-python-to-matlab-with-chatgpt-programmatically), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2023a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Quellenangaben
Inspiriert von: Generate MATLAB Code Using ChatGPT API
Inspiriert: MATLAB Code Generation - ChatGPT versus Bard
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
TranslatePythonToMATLABWithChatGPTProgrammatically
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.2 | Add link |
||
1.0.1 | cosmetic |
||
1.0.0 |