跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

集成工具Excel
查看安装方法

包含的文件(3)

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

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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.

中文简介正在准备中。当前显示原文说明。

wzyn20051216/matlab-agent-skills262026年10月21日 更新

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.

中文简介正在准备中。当前显示原文说明。

wzyn20051216/matlab-agent-skills262026年10月21日 更新

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.

中文简介正在准备中。当前显示原文说明。

wzyn20051216/matlab-agent-skills262026年10月21日 更新

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.

中文简介正在准备中。当前显示原文说明。

wzyn20051216/matlab-agent-skills262026年10月21日 更新

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.

中文简介正在准备中。当前显示原文说明。

wzyn20051216/matlab-agent-skills262026年10月21日 更新

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.

中文简介正在准备中。当前显示原文说明。

wzyn20051216/matlab-agent-skills262026年10月21日 更新

查看 wzyn20051216 的全部技能

报告此技能的问题