a problem using the roots function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
![](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 Commento
Stephen23
il 21 Set 2018
@Eliraz Nahum: please show us the complete output of this command:
which roots -all
Risposta accettata
Matt J
il 21 Set 2018
Modificato: Matt J
il 21 Set 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 Commento
James Tursa
il 21 Set 2018
... and the solution is to rename your version of roots.m to something else so it doesn't shadow the MATLAB roots function.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!