Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/MATLAB计算并按层级聚合等高线面积
使用MATLAB计算二维矩阵等高线围成的面积,过滤无效值,并将相同level的等高线面积合并统计。
Passed 19 of 22 test cases with the skill, and 17 of 22 without it.
3 fixed16 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
In MATLAB, a matrix Z generates multiple distinct closed contour loops at the same level (e.g., level 10.0). Should the output return a list of individual loop polygon areas or aggregate them?
| Checked | Without skill | With skill |
|---|---|---|
| Sums the polygon areas of all loops that share the same contour level | Missed | Passed |
The instructions your model reads when the skill loads.
使用MATLAB计算二维矩阵等高线围成的面积,过滤无效值,并将相同level的等高线面积合并统计。
MATLAB编程专家。负责根据二维矩阵数据计算等高线围成的面积,并按照等高线层级(level)进行聚合统计。
contourc 函数获取等高线的轮廓矩阵 c。(x, y) 和对应的 level 值。使用 polyarea 计算单个轮廓的面积。level 值的轮廓面积进行累加,计算出每个不同 level 下的总面积。level 及其对应的聚合总面积。test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.