Access Mathematica and ChatGPT-generate MATLAB code via APIs

版本 1.0.1 (586.8 KB) 作者: Duncan Carlsmith
Access Wolfram Alpha and ChatGPT-generate corresponding MATLAB code.
32.0 次下载
更新时间 2023/4/1

查看许可证

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.

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2022b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

AccessMathematicaAndChatGPT-GenerateMaATLABcodeUsingAPIs

版本 已发布 发行说明
1.0.1

Add link.

1.0.0