Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab
Date: Thu, 11 Mar 2010 19:18:38 +0000 (UTC)
Organization: Mitre Corp
Lines: 12
Message-ID: <hnbfme$ah2$1@fred.mathworks.com>
References: <hnbe1f$l25$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1268335118 10786 172.30.248.38 (11 Mar 2010 19:18:38 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Mar 2010 19:18:38 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2318
Xref: news.mathworks.com comp.soft-sys.matlab:616052

"Kevin Sze" <kevin_sze9@hotmail.com> wrote in message <hnbe1f$l25$1@fred.mathworks.com>...
> Write a function m-file with input a,b that outputs the first 20 iterations of the Bisection Method to find a root of the equation f(x)=0. The m-file should output the root to 15 decimal places.(include a short comments on each line to explain the commands used)
> How to do this question? If anyone know, please help me. Thank you.

Take a look at this link (for the pseudo code):

http://en.wikipedia.org/wiki/Bisection_method

Then code it in MATLAB.
If you still need help see the MATLAB "Getting Started" Documentation at:

http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/bqr_2pl.html