What happened to errors

49 views (last 30 days)
Warren
Warren on 8 Jan 2026 at 16:33
Answered: Warren about 5 hours ago
I use MATLAB in my 3rd year course. I use live scripts (mlx), as they are best for teaching. In v2024, the following code would output a clear error "Not enough input arguments." But, in v2025, I just get no error information. How do I turn error explanations back on?
%% A simple bugged code usage
function seq=RUNME(a,b)
seq(1)=a;
for i=2:b
seq(i)=seq(i-1)/b;
end
end
RUNME(1)
  2 Comments
Dyuman Joshi
Dyuman Joshi 6 minutes ago
Starting from R2025a, (local) functions can be defined anywhere in a script. They don't necessarily have to be at the end of the script code anymore.
"How do I turn error explanations back on?"
You will have to revert to an older version of MATLAB.
Warren
Warren 3 minutes ago
Well that's disappointing. Perhaps the next release will reinstate the feature, as it was extremely useful in the classroom.

Sign in to comment.

Answers (2)

Star Strider
Star Strider about 9 hours ago
It works correectly here (R2025b). I cannot find anything specifically in 'Settings' (or anything else) that controls this, even with a Web search.
%% A simple bugged code usage
function seq=RUNME(a,b)
seq(1)=a;
for i=2:b
seq(i)=seq(i-1)/b;
end
end
RUNME(1)
Not enough input arguments.

Error in solution>RUNME (line 4)
for i=2:b
^^^^^^^^^
Uninstalling and reinstalling could be an option, although if something is set in your 'preferences' file, that might not change anything.
It would likely be best to Contact Support.
.
  6 Comments
Star Strider
Star Strider 13 minutes ago
My pleasure!
Star Strider
Star Strider 6 minutes ago
@Matt J -- Thank you! (I had this open when I posted my previous Comment, and didn't see your Comment until now.)

Sign in to comment.


Warren
Warren 14 minutes ago
Fixes from IT arrived (and worked). In case anyone else has this problem...
  • Go to Home → Environment → Settings
  • Navigate to MATLAB → Editor/Debugger → Display
  • Ensure Live Editor Default view is set to Output on the right.
  • Make sure the view space is sufficiently wide to view outputs.

Categories

Find more on Programming in Help Center and File Exchange

Tags

Products


Release

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!