LLMs with MATLAB updated to support the latest OpenAI Models
Latest activity Reply by Rizwan Khan
on 11 Aug 2025
Large Languge model with MATLAB, a free add-on that lets you access LLMs from OpenAI, Azure, amd Ollama (to use local models) on MATLAB, has been updated to support OpenAI GPT-4.1, GPT-4.1 mini, and GPT-4.1 nano.
According to OpenAI, "These models outperform GPT‑4o and GPT‑4o mini across the board, with major gains in coding and instruction following. They also have larger context windows—supporting up to 1 million tokens of context—and are able to better use that context with improved long-context comprehension."
What would you build with the latest update?

6 Comments
Time DescendingI often need to ask GPT to write matlab code and then i copy/past it in.
The Matlab code writter AI is rubbish to be honest, i used it a few times and it was just rubbish.
So would be great to get GPT plugin so we can use GPT to write our code directly into matlab where it had access to all th efiles in the project, similar to VS and the copilot plugin.
If it were possible to highly customize an LLM model for use in your own copilot plugin to assist programming, that would be ideal. Currently, the official "MATLAB copilot" LLM performance is somewhat lacking!
GPT-4.1 is so good...
Sign in to participate