title: Need to fit polynomial using chebyshev polynomial basis
body: <p>I have been fitting linear least-squares polynomials to data using the <code>polyfit</code> function in matlab. From what I read, this uses standard polynomial basis (monomial basis). I have read that using Chebyshev polynomial basis to fit leads to greater numerical stability so I would like to do this. Does matlab have this option?</p>