OpenAI's ChatGPT can generate working or nearly working MATLAB code in response to 'plain English' prompts, and translate mathematics into code as well as translate between natural languages. [1]. Recently Google's Bard is available on a trial basis [2] and comparisons of their code generation capabilities are possible. This script provides some illustrations of ChatGPT and Bard responses to prompts for some simple MATLAB codes.
View at like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted
引用格式
Duncan Carlsmith (2024). Code Generation Comparison for MATLAB - ChatGPT versus Bard (https://www.mathworks.com/matlabcentral/fileexchange/127179-code-generation-comparison-for-matlab-chatgpt-versus-bard), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2023a
兼容任何版本
平台兼容性
Windows macOS Linux标签
致谢
参考作品: ChatGPT Generated MATLAB program, Generate unit-tested ChatGPT MATLAB codes, Generate MATLAB for non-English speakers with ChatGPT, Explain MATLAB code with ChatGPT, Generate MATLAB Code Using ChatGPT API, Access Mathematica and ChatGPT-generate MATLAB code via APIs, Translate Python To MATLAB With ChatGPT Programmatically, Drag and drop PDF to MATLAB conversion with ChatGPT
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!