Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: The MathWorks, Inc.

Rating No ratings yet

No description

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical, example-driven manual for anyone who needs to fit curves and surfaces to data in MATLAB—from quick interactive exploration to production-grade programmatic fitting. Best suited to engineers, scientists, and analysts who already know basic MATLAB and want to turn noisy measurements into defensible models. 【Book Arc】 - **Opening (~0%–10%)**: Orients you to the toolbox's two entry points—the interactive Curve Fitting app (`cftool`) and the programmatic `fit`/`fittype` functions—and establishes the spline-fitting vocabulary used throughout. - **Early (~10%–32%)**: Walks through interactive fitting workflow: creating, duplicating, and comparing multiple fits, refining settings, excluding outliers, and generating reusable code from a session. Then introduces the library of built-in models (polynomial, exponential, Gaussian, Fourier, power, rational, sin, distribution) and custom equations. - **Middle (~32%–48%)**: Moves into interpolation and smoothing, robust least squares (LAR and bisquare) for outlier resistance, and fit postprocessing—confidence/prediction bounds, coefficient inspection, and diagnosing overfitting. - **Late (~48%–end of sampled range)**: Extends to advanced spline work: tensor-product splines for gridded N-D data, least-squares approximation by cubic splines, Chebyshev splines, and solving nonlinear ODEs via spline approximation spaces. - **Ending (beyond sampled range)**: Excerpts indicate a spline glossary and reference appendices; the excerpts do not cover the closing reference material in detail. 【Book Arc note】The progression is deliberate: get a fit working interactively, understand the model families, then learn to judge and refine fits statistically before tackling spline mathematics. 【Key Takeaways】 - **Two parallel workflows—GUI and code—are treated as one** (Early): the app lets you explore and compare fits visually, then "Generate Code" reproduces the whole session as a script, bridging exploration and reproducibility. - **Model choice is a menu, not a mystery** (Early): the library spans polynomial (to degree 9), exponential, Gaussian peaks, Fourier, rational, and distribution models, each with named inputs to `fit`, `fitoptions`, and `fittype`. - **Custom models are first-class** (Early): you can supply a MATLAB expression, `.m` file, anonymous function, or cell array of linear terms—enabling piecewise and physically motivated equations. - **Goodness-of-fit must be read graphically and numerically** (Middle): residuals plots are the first check, but confidence bounds crossing zero and wide prediction intervals reveal overfitting that statistics alone can hide. - **Outliers demand robust methods** (Middle): least squares squares residuals and amplifies extremes; LAR and bisquare weighting reduce that influence, and the app supports interactive outlier exclusion and range-based rules. - **Extrapolation is a judgment call** (Middle): the toolbox will plot beyond the data range, but prediction bounds widen sharply where data is sparse—evidence you need more data, not a higher-degree model. - **Splines scale to surfaces and N-D grids** (Late): tensor-product splines fit gridded multivariate data with the same construction commands, and vector-valued splines handle multiple outputs. - **Advanced spline theory is included for the curious** (Late): least-squares cubic spline approximation, Chebyshev splines via Remez iteration, and ODE solving show the toolbox's mathematical depth. 【Reading Tips】 - **Skim the table of contents and glossary first** to map terminology (knots, basis maps, stform) before diving in; the manual is reference-structured, not narrative. - **Deep-read Chapters 2, 4, and 7** (interactive fitting, model library, postprocessing)—these carry the practical payoff; treat the advanced spline chapter as optional unless you need N-D or theoretical work. - **Work the examples in MATLAB as you read**; the manual teaches by runnable snippets, and the code-generation feature means you can capture your own experiments. - **Watch the overfitting discussion closely**—the polynomial-degree and prediction-bound examples are the book's most transferable lesson for real data work. - **Keep it as a lookup companion** rather than a cover-to-cover read; the model-name tables and coefficient-ordering functions are the parts you'll return to. 【Coverage Limits】 This guide is based on stratified excerpts covering roughly the first half of the manual plus the table of contents; later reference chapters, appendices, and the full spline glossary are only partially represented, so specifics there are not summarized.
Page 12
. . . . . . . . . 11-7 Linear System to Be Solved . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7 Iteration . . . . . . . . . . . . . . . ....
View in text
Excerpt 2
ne (with your original data or new data as input arguments). In this case, your original variables still appear in the workspace. 2-32 Curve and Surface Fitt...
View in text
Excerpt 3
Fitting app, select x and y in the X data and Y data lists. 4 Use your piecewiseLine function in the Curve Fitting app by selecting the Custom Equation fit t...
View in text
Excerpt 4
very method that you can use with the fit. methods(surffit) Methods for class sfit: argnames dependnames indepnames predint sfit category differentiate islin...
View in text
Excerpt 5
edom in the choice of centers, very flexible and adaptable. On the negative side, the most attractive choices for a radial basis function share with the thin...
View in text
Excerpt 6
error, and the root mean squared error. This information is automatically returned by the fit function and contained within fitresult. If coefficients are bo...
View in text
Excerpt 7
is a scalar, a vector, a matrix, or a character vector, as follows. Scalar Multiply the function by that scalar. Vector Add that vector to the function's val...
View in text
Excerpt 8
extrapolation order in the second variable. order = [3,-1]; extrSpline = fnxtr(spline,order); fnplt(extrSpline) 12-163 franke franke Franke's bivariate test...
View in text
Tags
AI categories
DataMatlabProgramming
Publisher: The MathWorks, Inc.
Publish Year: 2020
Language: English
Pages: 630
File Format: PDF
File Size: 8.3 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…