HI i need help with how to find roots of a function using bisection method in matlab?
can anyone help me?
the question is:
1.write a matlab function Bisection.m which takes as input a function f(x) and a bracketing interval[a b] and outputs the root of the function f(x). Hint: you will find the matlab function feval.m useful here.
2. Use Bisection.m created in question 1 to find the smallest positive root of the equation:
verify your result by
1. Plotting the function in Matlab.
2.by using the inbuilt matlab fzero function
Submit in addition to your code ,plot of the error. How many iterations are required forthe error to be in order of 10^-3.
It would be greatful to anyone who can provide me with a solution to this problem.i have tried doing this problem in matlab many times,but somewhere i m going wrong. it would be great if anyone can post the Matlab code to the solution of this problem along with the code for the graphs.
Its very urgent.
Thanks in advance.