Use of AI to Generate Matlab Code

Paul am 22 Dez. 2025 um 22:23
Letzte Aktivität Antwort von Duncan Carlsmith am 6 Jan. 2026 um 16:10

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?
Duncan Carlsmith
Duncan Carlsmith am 6 Jan. 2026 um 16:10
I find AI-assisted coding amazing,expecially now with an MCP server connecting AI directly to MATLAB so the AI can test and debug, pivot stratagies/approaches, while you simply watch the process. See How to set up and use AI Desktp Apps with MATLAB and MCP servers and my other recent posts at the Generative AI discussion forum.
James
James am 23 Dez. 2025 um 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 am 23 Dez. 2025 um 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.