%% Root Starting From an Interval
% Find the zero of cosine between 1 and 2.

fun = @cos; % function
x0 = [1 2]; % initial interval
x = fzero(fun,x0)

% Note that \cos(1) and \cos(2) differ in sign.
% Copyright 2015 The MathWorks, Inc.