Skills

Matlab Fit Curve

Fit curves and surfaces interactively with the Curve Fitter app for a complete no-code...

Install

npx skills add matlab/matlab-agentic-toolkit --skill matlab-fit-curve -g -a claude-code -y
Category
Engineering
Updated
8d ago
License
See repository
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Fit curves and surfaces interactively with the Curve Fitter app for a complete no-code fitting workflow. Invoke this skill when the Curve Fitter app, cftool, curveFitter, or "curve fitting tool/app" is mentioned in any way. Also use when exploring or comparing fit types (regression, interpolation, smoothing, splines, custom equations); excluding outliers interactively; iterating on a fitting workflow; help choosing a fit type; and exporting to a figure, generating MATLAB code, fits to the workspace, and to Simulink Lookup Tables.

Interactive Curve and Surface Fitting

Guides interactive curve and surface fitting through the Curve Fitter app as part of the Curve Fitting Toolbox. Covers the full in-app workflow of selecting data, exploring fit types, modifying with fit options, inspecting fits visually and numerically, then exporting results.

When to Use

No-code fitting

  • Users who want to fit curves or surfaces without writing code
  • Users who want to start interactively and generate code later to continue in the command line

Interactive exploration

  • Exploring fit types when the best model is unknown
  • Iterating on fits with visual feedback
  • Maintaining and comparing multiple fits in a single session
  • Discovering available fit types, options, and features

App-specific features

  • Exporting fits to Simulink lookup tables (only available through the app)
  • Excluding data points or regions iteratively with visual feedback
  • Loading or continuing a saved session (.sfit) for convenience or collaboration

When NOT to Use

CLI workflows (no app involvement)

  • User is already writing code and does not want the app involved
  • Using fit(), fittype(), fitoptions() directly in their own scripts/functions
  • The desired fit type, data, and options are already known and the user wants code
  • Many fits that would be difficult to manage in the app

Spline workflows

  • Spline CLI functions (csapi, csaps, fnbrk, etc.)
  • splinetool or bspligui apps
Read the whole SKILL.md on GitHub

More in Engineering