Use of AI to Generate Matlab Code

Paul on 22 Dec 2025 at 22:23
Latest activity Reply by James on 23 Dec 2025 at 15:15

Inspired in part by Christmas Trees, I'm curious about people's experience using AI to generate Matlab code.
1. Do you use AI to generate production code or just for experimentation/fun code?
2. Do you use the AI for a complete solution? Or is it more that the AI gets you most of the way there and you have to apply the finishing touches manually?
3. What level of quality would you consider the generated code? Does it follow "standard" Matlab coding practices? Is it well commented? Factored into modular functions? Argument checking? Memory efficient? Fast execution? Etc.?
4. Does the AI ever come up with a good or clever solution of which you wouldn't have thought or maybe of which you weren't even aware?
5. Is it easy/hard to express your requirements in a manner that the AI tool effectively translates into something useful?
6. Any other thoughts you'd care to share?
James
James on 23 Dec 2025 at 15:15
I only use AI as a search engine, because that is basically all that current AI does. It is an advanced search enginer that can write sentences instead of lists. Because of that it appears to write code. It is not true AI and because it does not learn from its mistakes.
xingxingcui
xingxingcui on 23 Dec 2025 at 12:18
AI-generated code is getting better and better and has become indispensable at work. However, the native MATLAB Copilot™ experience in the MATLAB desktop ENV is much worse than using Copilot in VS Code, so I have to strike a balance between the two.