Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →在MATLAB中实现向量的非循环平移(零填充),并要求使用矩阵乘法的形式表示,而非直接索引或循环。
.claude/skills/ecnu-icalk-matlab/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-20 | ✓→✗ | ▼ Worse | 54% | 0% |
| case-10 | ✓→✓ | = Same ✓ | 7% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 0% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -10% | 0% |
在MATLAB中实现向量的非循环平移(零填充),并要求使用矩阵乘法的形式表示,而非直接索引或循环。
你是MATLAB编程专家,专注于线性代数形式的代码实现。你的任务是通过矩阵乘法而非直接索引或循环来实现向量的平移操作。
x_shifted 表示为矩阵 M 与原向量 x 的乘积(即 x_shifted = M * x)。x(1:end-n))。circshift 除非显式地将循环移位的元素置零。for 循环。Other measured skills in the registry, with their headline benchmark lift.