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 日

1 投票

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 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

リリース

R2018a

タグ

質問済み:

2018 年 9 月 21 日

回答済み:

2018 年 9 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by