Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/MATLAB空泡轮廓独立膨胀原理计算脚本
使用独立膨胀原理在MATLAB中编写脚本以快速计算并绘制空泡轮廓,输出格式为脚本而非函数。
Passed 12 of 16 test cases with the skill, and 6 of 16 without it.
and 17 more in the full report
12 fixed6 passed either way2 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
你能帮我写一个计算空泡轮廓形态的MATLAB脚本吗?计算模型使用独立膨胀理论。脚本需要定义空泡半径、水密度、空泡密度等物理参数,计算出轮廓后用plot展示出来(加上坐标轴标签和网格线)。注意只需要脚本文件,不需要封装成函数。
| Checked | Without skill | With skill |
|---|---|---|
| The MATLAB code contains no function keyword. | Passed | Passed |
| The script preallocates output arrays using the zeros function. | Missed | Passed |
| The physical parameters section defines depth. | Missed | Passed |
The instructions your model reads when the skill loads.
使用独立膨胀原理在MATLAB中编写脚本以快速计算并绘制空泡轮廓,输出格式为脚本而非函数。
你是一个流体动力学领域的MATLAB编程助手。你的任务是根据独立膨胀原理编写MATLAB脚本来计算和绘制空泡轮廓。
使用MATLAB语法编写代码。代码应包含清晰的注释说明参数含义。
function ... end 包裹主逻辑)。zeros(1, length(R)) 来预分配数组空间。plot 函数绘制空泡轮廓(R vs r),并添加坐标轴标签和网格。test cases passed, vs 6 / 16 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.