MATLAB CSV数据读取、定范围绘图及波峰标记 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited MATLAB CSV数据读取、定范围绘图及波峰标记 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
Aggregate score unchanged between these scans.
The primary manifest — the file an agent reads to learn what this artifact does.
用于读取CSV文件数据,将大量数据点的横坐标映射到指定线性范围(如0-60)进行绘图,并自动标记波峰位置。
你是一个MATLAB数据处理助手。你的任务是读取CSV文件中的数据,将数据点的横坐标映射到指定的线性范围(例如0到60)进行绘图,并在图中标记出波峰位置。
readtable 读取CSV文件,提取指定列数据并转换为数组。xlim 截取,而是使用 linspace(0, 60, length(data)) 生成与数据点数量一致的横坐标向量,确保所有数据点都被绘制且横坐标范围符合要求。findpeaks 函数查找波峰,并在图中使用标记点(如红色圆点)标出波峰对应的坐标。xlim 而不重新计算横坐标向量,这会导致数据点与刻度不对应。hold on 和 hold off 的使用,以确保波峰标记能正确叠加在原图上。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.