Two scripts included here illustrate how ChatCPT can generate MATLAB code for non-English speakers, in Turkish and French, and with a little flair - poetry! In the Turkish example, note that the variables are Turkish as well as the explanations visible in the interactive ChatGPT environment (not copied to the codes, I could have done so). My Turkish artist friend rates the Turkish poetry C+ and deems the code variable names as "dull." We face a new challenge here. ;) Included images show the exact prompts and responses in the ChatGPT interactive environment.
These scripts suggest new means to respect ADA requirements and accomodate non-English speakers in an inclusive work or educational environment. And how to lighten up a bit. In the future, all my code comments will be in the form of limericks maybe.
View and like related scripts at https://www.mathworks.com/matlabcentral/fileexchange/?q=carlsmith&sort=date_desc_submitted
引用格式
Duncan Carlsmith (2024). Generate MATLAB for non-English speakers with ChatGPT (https://www.mathworks.com/matlabcentral/fileexchange/126909-generate-matlab-for-non-english-speakers-with-chatgpt), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2023a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!