The polyfit function in MATLAB uses a linear least squares fitting technique. In other words, it always finds the global minimum (or should, in theory). This means that if polyfit is giving you an unsatisfactory fit for both low and high order polynomials, you need to try some other type of...
Not in MATLAB, to the best of my knowledge. Try Mathematica, or write your own quadrature function - it's not that difficult, especially if the trapezoidal rule is accurate enough.
Hi All,
I use Matlab extensively for plotting, but I have always had a problem exporting LaTeX symbols (like \mu) in the labels on graphs. They typically won't scale with the other fonts, and you wind up with a very small symbol. This happens with tiff and jpeg exports, in particular.
I have...