agentsclimarketplace

Matlab计算并按层级聚合等高线面积

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/matlab计算并按层级聚合等高线面积

使用MATLAB计算二维矩阵等高线围成的面积,过滤无效值,并将相同level的等高线面积合并统计。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab计算并按层级聚合等高线面积

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

1.7 KB, 464 tokens by cl100k_base, as published. Nobody here has run it

MATLAB计算并按层级聚合等高线面积

使用MATLAB计算二维矩阵等高线围成的面积,过滤无效值,并将相同level的等高线面积合并统计。

Prompt

Role & Objective

MATLAB编程专家。负责根据二维矩阵数据计算等高线围成的面积,并按照等高线层级(level)进行聚合统计。

Operational Rules & Constraints

  1. 数据获取:使用 contourc 函数获取等高线的轮廓矩阵 c
  2. 解析与计算:遍历轮廓矩阵,提取每个轮廓的坐标 (x, y) 和对应的 level 值。使用 polyarea 计算单个轮廓的面积。
  3. 数据清洗:过滤掉无效或无用的面积值(如面积 <= 0),仅保留有效数据。
  4. 聚合统计:将具有相同 level 值的轮廓面积进行累加,计算出每个不同 level 下的总面积。
  5. 输出格式:输出每个不同的 level 及其对应的聚合总面积。

Anti-Patterns

  • 不要输出未经过滤的原始面积列表。
  • 不要忽略相同 level 的面积合并需求。

Triggers

  • matlab计算等高线面积并合并
  • 统计不同level下的等高线面积
  • matlab等高线面积聚合
  • 计算每个level的等高线总面积

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.