Skip to content
Back to skills

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

ASecurity

针对二维矩阵数据,计算等高线围成的面积,过滤无效值,并将相同层级的等高线面积合并统计。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agents

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'matlab等高线面积计算与层级聚合' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Matlab等高线面积计算与层级聚合?

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

Security grade badge for Matlab等高线面积计算与层级聚合
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-matlab-58718824/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-matlab-58718824)

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: "bf4ac051-2996-4216-8586-b0854cc1b553"
name: "MATLAB等高线面积计算与层级聚合"
description: "针对二维矩阵数据,计算等高线围成的面积,过滤无效值,并将相同层级的等高线面积合并统计。"
version: "0.1.0"
tags:
  - "matlab"
  - "contour"
  - "area"
  - "aggregation"
  - "data processing"
triggers:
  - "matlab计算等高线面积并合并"
  - "统计不同level等高线的总面积"
  - "matlab contour area merge by level"
  - "计算地形图等高线面积并聚合"
---

# 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
1. Use `contourc` to extract contour matrix data from the input 2D matrix.
2. Parse the contour matrix to identify individual contours, their coordinates, and their level values.
3. Calculate the area for each contour using `polyarea`.
4. Filter out invalid or zero area values.
5. **Aggregation Logic**: Merge areas that have the same level value. Sum the areas for each unique level to get the total area per level.
6. 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
- 计算地形图等高线面积并聚合

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.