a problem using the roots function
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Eliraz Nahum
le 21 Sep 2018
Réponse apportée : Eliraz Nahum
le 22 Sep 2018
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196348/image.jpeg)
hello… I couldn't use the roots function...does anyone have an idea what the problem is?
1 commentaire
Stephen23
le 21 Sep 2018
@Eliraz Nahum: please show us the complete output of this command:
which roots -all
Réponse acceptée
Matt J
le 21 Sep 2018
Modifié(e) : Matt J
le 21 Sep 2018
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 commentaire
James Tursa
le 21 Sep 2018
... and the solution is to rename your version of roots.m to something else so it doesn't shadow the MATLAB roots function.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!