title: How to put results from fzero into a column matrix
body: <p>I think I already solved this problem, but how do I upload the <code>x</code> values of each iteration from <code>fzero</code> into a column matrix? I've already found the zero using bisection and the results seem to match up.</p>
  
  <p><img src="https://i.stack.imgur.com/0T0ct.png" alt="enter image description here"></p>
  
  <p>When I run the code:</p>
  
  <pre><code>% second part
  clear all; close all;
  x= 100:0.01:200; % domain
  f = @(x) sqrt((x*9.8)/0.25)* tanh(sqrt((0.25 * 9.8) / x) * 4) - 36;
  
  %x02 = fzero(f, 100, optimset('Tolx', 1*e*(-6))) % What's the point
  %of this?
  x03 = fzero(f, 100, optimset('Display', 'iter')) % 100 is initial starting point
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>Search for an interval around 100 containing a sign change:
   Func-count    a          f(a)             b          f(b)        Procedure
      1             100      -1.22895           100      -1.22895   initial interval
      3         97.1716      -1.34001       102.828      -1.12319   search
      5              96      -1.38767           104      -1.08085   search
      7         94.3431      -1.45679       105.657      -1.02236   search
      9              92      -1.55819           108     -0.942334   search
     11         88.6863      -1.70937       111.314     -0.834198   search
     13              84      -1.94034           116     -0.690568   search
     15         77.3726      -2.30675       122.627     -0.504071   search
     17              68      -2.92417           132     -0.268914   search
     19         54.7452      -4.07851       145.255     0.0168687   search
  
  Search for a zero in the interval [54.7452, 145.255]:
   Func-count    x          f(x)             Procedure
     19         145.255     0.0168687        initial
     20         144.882    0.00947591        interpolation
     21         144.405  -2.82264e-05        interpolation
     22         144.407   8.38448e-08        interpolation
     23         144.407    7.4607e-13        interpolation
     24         144.407  -1.42109e-14        interpolation
     25         144.407             0        interpolation
  
  Zero found in the interval [54.7452, 145.255]
  
  x03 =
  
    144.4067
  </code></pre>
  
  <p>Which compares similarly to 144.4092 using bisection. In addition, I tried to set the tolerance to 10(-6), but I couldn't get it to work, what did I do wrong? Or am I approaching this all wrong?</p>