a problem using the roots function
1 次查看(过去 30 天)
显示 更早的评论
hello… I couldn't use the roots function...does anyone have an idea what the problem is?
1 个评论
Stephen23
2018-9-21
@Eliraz Nahum: please show us the complete output of this command:
which roots -all
采纳的回答
Matt J
2018-9-21
编辑:Matt J
2018-9-21
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 个评论
James Tursa
2018-9-21
... and the solution is to rename your version of roots.m to something else so it doesn't shadow the MATLAB roots function.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!