I am getting the following error

22 visualizaciones (últimos 30 días)
Yared
Yared el 24 de Oct. de 2025 a las 2:33
Respondida: Walter Roberson el 24 de Oct. de 2025 a las 3:51
Error in solution: Line: 55 Column: 1
Illegal use of reserved keyword "end".

Respuestas (2)

Matt J
Matt J el 24 de Oct. de 2025 a las 2:40
Editada: Matt J el 24 de Oct. de 2025 a las 2:41
There are many ways to generate that error. One of them is that you may be using 'end' as the name of a variable, e.g.,
end=1
Illegal use of reserved keyword "end".

Walter Roberson
Walter Roberson el 24 de Oct. de 2025 a las 3:51
Most likely, you have one too many end statements
I recommend using the editor facility "Smart Indent", which I believe has shortcut alt-i (⌘-I on Mac)

Categorías

Más información sobre Get Started with MATLAB 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