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

2 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 27 de Feb. de 2025
You should submit feedback like this directly to MathWorks.

Más respuestas (1)

jkr
jkr el 28 de Feb. de 2025
Editada: Walter Roberson el 28 de Feb. de 2025

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by