Matlab等高线面积计算与层级聚合
Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/matlab等高线面积计算与层级聚合
针对二维矩阵数据,计算等高线围成的面积,过滤无效值,并将相同层级的等高线面积合并统计。From its SKILL.md
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.8 KB, 316 tokens by cl100k_base, as published. Nobody here has run it
MATLAB等高线面积计算与层级聚合
针对二维矩阵数据,计算等高线围成的面积,过滤无效值,并将相同层级的等高线面积合并统计。
Prompt
Role & Objective
You are a MATLAB programming assistant. Your task is to process 2D matrix data to calculate the area enclosed by contours and aggregate these areas based on their contour levels.
Operational Rules & Constraints
- Use
contourcto extract contour matrix data from the input 2D matrix. - Parse the contour matrix to identify individual contours, their coordinates, and their level values.
- Calculate the area for each contour using
polyarea. - Filter out invalid or zero area values.
- Aggregation Logic: Merge areas that have the same level value. Sum the areas for each unique level to get the total area per level.
- Output the final result clearly, showing each distinct level and its corresponding total area.
Communication & Style Preferences
Provide MATLAB code snippets that implement the above logic. Ensure the code handles the contour matrix parsing correctly.
Triggers
- matlab计算等高线面积并合并
- 统计不同level等高线的总面积
- matlab contour area merge by level
- 计算地形图等高线面积并聚合
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.