agentsclimarketplace

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

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/matlab-csv数据读取-定范围绘图及波峰标记

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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab-csv数据读取-定范围绘图及波峰标记

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 545 tokens by cl100k_base, as published. Nobody here has run it

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 onhold off 的使用,以确保波峰标记能正确叠加在原图上。

Triggers

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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.