unhelpful error message when an 'end' is left off, or an extra one is left in while editing

조회 수: 2 (최근 30일)
When editing a matlab function I am writing, I occasionally make an error (gasp). When that involves leaving in an extra or leaving out a needed 'end', the error message is unhelpful. It says:
Local function name must be different from the script name.
I found that baffling until I got used to it (I make mistakes more than once).
Could it not be improved?

채택된 답변

Cris LaPierre
Cris LaPierre 2025년 2월 27일
You should submit feedback like this directly to MathWorks.

추가 답변 (1개)

jkr
jkr 2025년 2월 28일
편집: Walter Roberson 2025년 2월 28일

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by