Access Mathematica and ChatGPT-generate MATLAB code via APIs
Version 1.0.1 (587 KB) von
Duncan Carlsmith
Access Wolfram Alpha and ChatGPT-generate corresponding MATLAB code.
This Live script illustrates how to query Wolfram Alpha via its API and examine plain text and MathML responses with MATLAB. It also passes Mathematica plain text formulae to ChatGPT via OpenAI's API to generate MATLAB scripts and unit tests them, automating an otherwse laborious manual process.
This script incorporates code from Generate unit-tested ChatGPT MATLAB codes on Mathworks File exchange to consume Wolfram Alpha query responses.
To get started, you must first register and obtain an AppID from Wolfram Alpha. To generate MATLAB code, you will need a ChatGPT access key as well. Wolfram Alpha API access is described at https://products.wolframalpha.com/api/documentation. Place your keys in local files as described in the code.
View and like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted
Zitieren als
Duncan Carlsmith (2024). Access Mathematica and ChatGPT-generate MATLAB code via APIs (https://www.mathworks.com/matlabcentral/fileexchange/126310-access-mathematica-and-chatgpt-generate-matlab-code-via-apis), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2022b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Quellenangaben
Inspiriert von: Generate unit-tested ChatGPT MATLAB codes, Generate MATLAB Code Using ChatGPT API
Inspiriert: Drag and drop PDF to MATLAB conversion with ChatGPT, 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.
AccessMathematicaAndChatGPT-GenerateMaATLABcodeUsingAPIs
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.1 | Add link. |
||
1.0.0 |