Skip to content
cccskills
FreePublished on GitHub

matlab-data-analysis

MATLAB data analysis workflow for tables, timetables, statistics, fitting, optimization-assisted analysis, visualization, report artifacts, and reproducible paper figures. Use whenever the user asks MATLAB to analyze data, plot results, fit models, process CSV/Excel/MAT files, or reproduce figures.

The English summary is being prepared. Showing the original description.

Works withExcel
See how to install

Files included (3)

  • SKILL.md3.0 KB
  • scripts/mas_table_audit.m9.0 KB
  • tests/test_table_audit.m6.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

MATLAB Data Analysis

Use this skill for MATLAB analysis pipelines that start with data and end with validated numbers, figures, or reports.

Workflow

  1. Inventory input files and schemas before coding.
  2. Load data with typed APIs: readtable, readtimetable, matfile, datastore, or toolbox importers.
  3. Normalize units, time zones, missing values, categorical fields, and outliers explicitly.
  4. Build analysis as functions plus a thin runner script.
  5. Save clean data, figures, and summary metrics under artifacts/.
  6. Validate with shape checks, range checks, and at least one numerical assertion.

API Preferences

  • Tables and timetables for labeled data.
  • groupsummary, rowfun, varfun, synchronize, and retime for structured transformations.
  • fitlm, fitnlm, fitrgp, fitcsvm, or fitcensemble only after checking toolbox availability.
  • optimproblem or solver APIs for constrained fitting when simple regression is not enough.
  • Export figures with explicit size, resolution, and format.

Reproducible Figures

Every reproduced paper figure should include:

  • Source data provenance.
  • Script name and command used.
  • Random seed if applicable.
  • Axis labels, units, legend, and saved image path.
  • A simple metric comparing reproduced result with reference when possible.

Validation

Use checks such as:

assert(height(T) > 0)
assert(all(isfinite(metrics.rmse)))
assert(isfile(fullfile(outDir, "figure_1.png")))

Do not accept a plot as "done" unless the underlying numerical summary also looks sane.

Cleaning That Accounts For Every Row

r = mas_table_audit(T, struct('missing','drop','duplicates','drop', ...
    'outliers', struct('method','iqr','factor',1.5,'action','remove')));
r.balanced    % nRowsIn == nRowsOut + nDropped, and every dropped row has a reason
r.audit       % per rule: before, after, dropped, filled
r.dropped     % the removed rows WITH the rule that removed each one

The failure this prevents is not a crash, it is arithmetic that does not add up: three rules that each drop their own rows will double-count a row that qualifies for two, and "40 in, 30 out, dropped 3+4+4" reads fine and is wrong by one.

So every row gets exactly ONE verdict, from the first rule that matches, and the balance identity is checked. Rule order (missing -> duplicates -> outliers) is part of the contract and is printed, because changing it changes the counts.

Non-numeric columns are reported in typeWarnings and preserved; they are never silently converted or dropped. tests/test_table_audit.m covers the nominal fixture, a row that qualifies for two rules, fill-vs-drop, mixed types, an empty table and a non-table input.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

MATLAB code generation and deployment workflow for MATLAB Coder, Simulink Coder, Embedded Coder, GPU Coder, HDL Coder, fixed-point conversion, MEX validation, and embedded deployment readiness. Use whenever the user asks to generate C/C++/CUDA/HDL/code, deploy algorithms, or validate generated code.

The English summary is being prepared. Showing the original description.

wzyn20051216/matlab-agent-skills26Updated Oct 21, 2026

MATLAB workflow for control systems, system identification, robust control, MPC, Simulink Control Design, parameter tuning, constrained optimization, and numerical validation. Use whenever the user asks for controllers, transfer functions, state-space models, tuning, identification, optimal control, or solver-based engineering.

The English summary is being prepared. Showing the original description.

wzyn20051216/matlab-agent-skills26Updated Oct 21, 2026

MATLAB agentic workflow router. Use this whenever the user asks for MATLAB, Simulink, .m/.mlx/.slx work, toolbox-driven engineering, paper reproduction, simulation, code generation, data analysis, control, robotics, signal/image/AI workflows, or wants an end-to-end automated MATLAB task with validation. For Simulink tasks on this machine, default to a visible workflow: open MATLAB/Simulink windows first so the user can watch modeling, simulation, tuning, and plotting progress.

The English summary is being prepared. Showing the original description.

wzyn20051216/matlab-agent-skills26Updated Oct 21, 2026

MATLAB robotics and autonomy workflow for ROS Toolbox, Robotics System Toolbox, Navigation Toolbox, UAV Toolbox, sensor fusion, trajectory planning, simulation, and reproducible robot experiments. Use for ROS/ROS 2 bags, robot models, path planning, SLAM, state estimation, and autonomy prototyping.

The English summary is being prepared. Showing the original description.

wzyn20051216/matlab-agent-skills26Updated Oct 21, 2026

Run MATLAB tasks from Codex with reliable MCP-based execution, logs, artifacts, toolbox inventory, smoke tests, and reproducible validation. Use whenever MATLAB code, .m/.mlx scripts, MATLAB tests, local toolbox probing, or command-line automation is needed.

The English summary is being prepared. Showing the original description.

wzyn20051216/matlab-agent-skills26Updated Oct 21, 2026

MATLAB workflow for signal processing, DSP, image processing, computer vision, lidar, medical imaging, deep learning, and AI-assisted reproducible experiments. Use for filters, spectrograms, wavelets, object detection, segmentation, classification, training, inference, and generated figures.

The English summary is being prepared. Showing the original description.

wzyn20051216/matlab-agent-skills26Updated Oct 21, 2026

See all skills by wzyn20051216

Report a problem with this skill