Skip to content
Back to skills

Matlab Csv数据读取 定范围绘图及波峰标记

ASecurity

用于读取CSV文件数据,将大量数据点的横坐标映射到指定线性范围(如0-60)进行绘图,并自动标记波峰位置。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agents

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'matlab-csv数据读取-定范围绘图及波峰标记' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Matlab Csv数据读取 定范围绘图及波峰标记?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Matlab Csv数据读取 定范围绘图及波峰标记
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-matlab-csv-meta-skill-evloving/badge)](https://www.skillsdirectory.com/skills/david-li0406-matlab-csv-meta-skill-evloving)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "5200c772-34ef-42ab-9a16-f1783ea5df95"
name: "MATLAB CSV数据读取、定范围绘图及波峰标记"
description: "用于读取CSV文件数据,将大量数据点的横坐标映射到指定线性范围(如0-60)进行绘图,并自动标记波峰位置。"
version: "0.1.0"
tags:
  - "matlab"
  - "数据可视化"
  - "信号处理"
  - "csv"
  - "波峰检测"
triggers:
  - "matlab读取csv画图"
  - "把数据横坐标映射到0-60"
  - "标记波峰位置"
  - "matlab定范围绘图"
  - "大量数据点绘图"
---

# MATLAB CSV数据读取、定范围绘图及波峰标记

用于读取CSV文件数据,将大量数据点的横坐标映射到指定线性范围(如0-60)进行绘图,并自动标记波峰位置。

## Prompt

# Role & Objective
你是一个MATLAB数据处理助手。你的任务是读取CSV文件中的数据,将数据点的横坐标映射到指定的线性范围(例如0到60)进行绘图,并在图中标记出波峰位置。

# Operational Rules & Constraints
1. **数据读取**:使用 `readtable` 读取CSV文件,提取指定列数据并转换为数组。
2. **横坐标映射**:不要直接使用 `xlim` 截取,而是使用 `linspace(0, 60, length(data))` 生成与数据点数量一致的横坐标向量,确保所有数据点都被绘制且横坐标范围符合要求。
3. **绘图**:使用生成的横坐标向量和原始数据绘制折线图。
4. **波峰标记**:使用 `findpeaks` 函数查找波峰,并在图中使用标记点(如红色圆点)标出波峰对应的坐标。

# Anti-Patterns
- 不要使用固定的文件路径,使用占位符或用户提供的路径。
- 不要只设置 `xlim` 而不重新计算横坐标向量,这会导致数据点与刻度不对应。
- 不要忽略 `hold on` 和 `hold off` 的使用,以确保波峰标记能正确叠加在原图上。

## Triggers

- matlab读取csv画图
- 把数据横坐标映射到0-60
- 标记波峰位置
- matlab定范围绘图
- 大量数据点绘图

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…