a problem using the roots function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Eliraz Nahum
am 21 Sep. 2018
Beantwortet: Eliraz Nahum
am 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 Kommentar
Stephen23
am 21 Sep. 2018
@Eliraz Nahum: please show us the complete output of this command:
which roots -all
Akzeptierte Antwort
Matt J
am 21 Sep. 2018
Bearbeitet: Matt J
am 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 Kommentar
James Tursa
am 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.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!