title: Matlab minimize norm to find coefficients using fminsearch
body: <p>I am trying to use minimization to calculate coefficients of the polynomial <code>p(x) = 1 + c(1)x + c(2)x^2</code> to approximate <code>e^x</code>. I need to use points <code>xi = 1 + i/n</code> for natural numbers <code>i</code> on <code>[1,n]</code>, first for <code>n=5</code>, then <code>n=10</code>, etc. The approach is to minimize the <code>1</code>, <code>2</code>, and <code>inf norm(p(x) - e^x)</code> using <strong>fminsearch</strong>. So the output should be the 2 coefficients for the 3 <code>p(x)</code>'s. Any suggestions is appreciated.</p>