Generate MATLAB for non-English speakers with ChatGPT
Version 1.0.1 (874 KB) by
Duncan Carlsmith
Illustrates French and Turkish scripts generated with OpenAI's ChatGPT
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
Cite As
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. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.