Write a function with header [X] = myFixedPoint (f,g,tol,maxIter), where f and g are function handles and tol and maxIter are strictly positive scalars. The input argument, maxIter, is also an integer. The output arguments, X, should be a scalar satisfying f(X)=g(X) <tol; that is, X is a point that (almost) satisfies f(X)=g(X). To find X, you should use the Bisection method with error metric, |F(m)<tol. The function myFixedPoint should ‘giveup’ after maxIter number of iterations and return X=[] if this occurs

답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

댓글:

2015년 12월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by