ep track of the whole sequence of approximations. </span></span></div><div class = 'CodeBlock contiguous'><div class = 'inlineWrapper'><div class = "S2 lineNode"><span class = "S3"><span class="S0">g = @(x) x - f(x);</span></span></div></div><div class = 'inlineWrapper'><div class = "S2 lineNode"><span class = "S3"><span class="S0">x = 2.1; </span></span></div></div><div class = 'inlineWrapper'><div class = "S2 lineNode"><span class = "S3"><span class="S7">for </span><span class="S0">k = 1:12</span></span><