"Function definitions are not permitted in this context."

1 visualización (últimos 30 días)
alpedhuez
alpedhuez el 15 de Abr. de 2018
Respondida: David Fletcher el 15 de Abr. de 2018
I use R2017a and I got the above error message when trying to define a function in a script. Please advise.

Respuestas (1)

David Fletcher
David Fletcher el 15 de Abr. de 2018
If you have a function in a script (allowed from R2016 onwards I think), it must go at the end, after all the script code

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by