matlab-analyze-data

Generate idiomatic MATLAB code for analyzing table and timetable data.

883|109|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-analyze-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-analyze-data
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/matlab-data-import-and-analysis/matlab-analyze-data
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-analyze-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you generate idiomatic MATLAB code to analyze tabular and time-series data efficiently and correctly, reducing the chance of wrong functions or error-prone handling of missing values.

Core Features & Use Cases

  • Tabular and timetable analysis: explore, clean, transform, aggregate, and answer questions using table and timetable workflows.
  • Missing/outlier/range-safe processing: use MATLAB-native missing detection and cleaning patterns (ismissing, standardizeMissing, fillmissing, isoutlier/rmoutliers, clip/isbetween) instead of brittle comparisons.
  • Time-aware operations: convert to timetable to unlock spacing-aware resampling and time-based computation (table2timetable, retime, smoothdata, timerange, synchronize).
  • Real-world examples: generating code for tasks like “summarize by region,” “find top-N rows,” “clean missing values then compute group stats,” and “analyze trends with smoothing and change points.”

Quick Start

Use the matlab-analyze-data skill to write MATLAB code that summarizes and cleans a table T with columns such as dates, categories, and numeric measurements, then computes grouped statistics and answers specific questions about the results.

Frequently Asked Questions about matlab-analyze-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle missing data and outliers in a MATLAB table?

To handle missing data and outliers in a MATLAB table, use native functions like `ismissing`, `fillmissing`, `standardizeMissing`, and `rmoutliers` to safely detect, replace, or remove invalid values, avoiding brittle comparisons and ensuring accurate data cleaning.

What is the best way to resample and smooth time-series data in MATLAB?

The best way to resample and smooth time-series data in MATLAB is by converting your data to a `timetable` and using `retime` for spacing-aware resampling and `smoothdata` for trend analysis. This unlocks safe, time-based computations and synchronization.

How do I compute grouped statistics and summarize tabular data in MATLAB?

To compute grouped statistics and summarize tabular data in MATLAB, apply the `groupsummary` and `summary` functions to your table. These functions allow you to aggregate measurements by categories, such as calculating sums or averages by region.

Can I use MATLAB timetables for time-aware filtering and sorting?

Yes, you can use MATLAB timetables for time-aware filtering and sorting by applying functions like `timerange` and `synchronize`. Converting tables to timetables enables spacing-aware data operations and safe date/time manipulations.

Why should I avoid direct comparisons when detecting missing values in MATLAB?

You should avoid direct comparisons when detecting missing values in MATLAB because they are error-prone and unsafe. Instead, use `ismissing` and `standardizeMissing` to correctly identify NaNs, NaTs, and other undefined entries without legacy pattern risks.