Error: Not Enough Input Arguments
1 回表示 (過去 30 日間)
古いコメントを表示
Im not that experinced in matlab yet, and Im facing a problem. When I write roots command like that:
roots([3 -2 -4])
or
p = [3 -2 -4];
roots(p)
Whenever I run the program I get the following:
Not enough input arguments.
Error in roots (line 2)
Delta = b^2 - 4*a*c ;
Error in Untitled3 (line 1)
roots([3 -2 -4])
0 件のコメント
採用された回答
KALYAN ACHARJYA
2020 年 11 月 29 日
編集済み: KALYAN ACHARJYA
2020 年 11 月 29 日
Once, I tried to reproduce the same error, I could not
>> p = [3 -2 -4];
roots(p)
ans =
1.5352
-0.8685
One Suspect: Is there any other file name as roots.m in the same working directory?
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!