Error: "Function definitions are not permitted in this context."

I have the same name for function and matlab file, I have started the file with function. What is wrong?

2 comentarios

How are you trying to execute the function?
In command window, to test if it is working, I have seen if I run in script, I receive an "ans".. but Ia don't know if it's correcly because it's the first time when i use functions..

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 7 de Jun. de 2020

Comentada:

el 7 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by