Access Mathematica and ChatGPT-generate MATLAB code via APIs

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.

引用

Duncan Carlsmith (2026). Access Mathematica and ChatGPT-generate MATLAB code via APIs (https://jp.mathworks.com/matlabcentral/fileexchange/126310-access-mathematica-and-chatgpt-generate-matlab-code-via-apis), MATLAB Central File Exchange. に取得済み.

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.01

Added interactive_examples tag

1.0.1

Add link.

1.0.0