Roots function not working

2 views (last 30 days)
Patrick
Patrick on 15 Jun 2011
Hi, When i use the roots command i receive an error:
??? Input argument "b" is undefined.
Error in ==> roots at 4 rad=sqrt(b^2-4*a*c);
Error in ==> p7 at 6 roots(b)
and when i use "help roots" it returns:
comments comments

Accepted Answer

the cyclist
the cyclist on 15 Jun 2011
Have you defined your own function called "roots"? Try the command
>> which roots
  1 Comment
Patrick
Patrick on 15 Jun 2011
thank you! im still a rookie at this and my professor made us make a "roots" program

Sign in to comment.

More Answers (0)

Categories

Find more on Author Block Masks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!