a problem using the roots function

조회 수: 1 (최근 30일)
Eliraz Nahum
Eliraz Nahum 2018년 9월 21일
답변: Eliraz Nahum 2018년 9월 22일
hello… I couldn't use the roots function...does anyone have an idea what the problem is?
  댓글 수: 1
Stephen23
Stephen23 2018년 9월 21일
@Eliraz Nahum: please show us the complete output of this command:
which roots -all

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
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
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개)

Eliraz Nahum
Eliraz Nahum 2018년 9월 22일
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.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by