# Matlab Fit Curve

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

- Repository: https://github.com/matlab/matlab-agentic-toolkit (1237 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-10-27
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-fit-curve -g -a claude-code -y`
Codex: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-fit-curve -g -a codex -y`
Cursor: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-fit-curve -g -a cursor -y`
Gemini CLI: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-fit-curve -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add matlab/matlab-agentic-toolkit`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

The rest: https://github.com/matlab/matlab-agentic-toolkit/blob/HEAD/skills-catalog/ai-and-statistics/matlab-fit-curve/SKILL.md
