| Communications Toolbox | ![]() |
Curve fitting is useful when you have a small or imperfect data set but want to plot a smooth curve for presentation purposes. The berfit function in the Communications Toolbox offers curve fitting capabilities that are well-suited to the situation when the empirical data describes error rates at different Eb/N0 values. This function enables you to
Customize various relevant aspects of the curve-fitting process, such as the type of closed-form function (from a list of preset choices) used to generate the fit.
Plot empirical data along with a curve that berfit fits to the data.
Interpolate points on the fitted curve between Eb/N0 values in your empirical data set, to make the plot smoother-looking.
Collect relevant information about the fit, such as the numerical values of points along the fitted curve and the coefficients of the fit expression.
Note The berfit function is intended for curve fitting or interpolation, not extrapolation. Extrapolating BER data beyond an order of magnitude below the smallest empirical BER value is inherently unreliable. |
For a full list of inputs and outputs for berfit, see its reference page.
| Error Rate Plots | Example: Curve Fitting for an Error Rate Plot | ![]() |
© 1994-2005 The MathWorks, Inc.