What happened to errors

조회 수: 63 (최근 30일)
Warren
Warren 2026년 1월 8일 16:33
답변: Warren 2026년 1월 9일 15:30
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
Dyuman Joshi
Dyuman Joshi 2026년 1월 8일 16:55
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 2026년 1월 8일 17:21
Well that's disappointing. Perhaps the next release will reinstate the feature, as it was extremely useful in the classroom.

댓글을 달려면 로그인하십시오.

답변 (1개)

Warren
Warren 2026년 1월 9일 15:30
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.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

제품


릴리스

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by