a problem using the roots function

hello… I couldn't use the roots function...does anyone have an idea what the problem is?

1 comentario

@Eliraz Nahum: please show us the complete output of this command:
which roots -all

Iniciar sesión para comentar.

 Respuesta aceptada

Matt J
Matt J el 21 de Sept. de 2018
Editada: Matt J el 21 de Sept. de 2018

1 voto

Yes, you have another file named roots.m at the location shown in the error message. Matlab thinks you are trying to execute that one.

1 comentario

James Tursa
James Tursa el 21 de Sept. de 2018
... and the solution is to rename your version of roots.m to something else so it doesn't shadow the MATLAB roots function.

Iniciar sesión para comentar.

Más respuestas (1)

Eliraz Nahum
Eliraz Nahum el 22 de Sept. de 2018

0 votos

Thanks everyone for replying. The problem was indeed existence of another file with a name "roots".
by the way, is there any recommendation to where I save and run my files? as for now, I do it on a local folder on my desktop. if there is any problem with that, please let me know.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 21 de Sept. de 2018

Respondida:

el 22 de Sept. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by