Find the roots of the equation f(x) = 0 for the following function. Also, create x and y vectors and plot this function in the range from -3 to 3 to visualize the solution. f(x) = 3x2 - 2x - 5
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:14| Question number:14.14
All Answers
total answers (1)
>> x = sym('x');
>> eqn = 3*x^2 - 2*x - 5;
>> root = solve(eqn)
root =
-1
5/3
>> ezplot(eqn,[-3,3])
need an explanation for this answer? contact us directly to get an explanation for this answer