Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Matlab基于矩阵运算的向量零填充平移

ASecurity

在MATLAB中实现向量的非循环平移(零填充),并要求使用矩阵乘法的形式表示,而非直接索引或循环。

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agents

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --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 automatically with every re-scan.

Security grade badge for Matlab基于矩阵运算的向量零填充平移
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-matlab/badge)](https://www.skillsdirectory.com/skills/david-li0406-matlab)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
id: "06ca3288-ff7f-4b10-b5ce-2f14c0d6a92c"
name: "MATLAB基于矩阵运算的向量零填充平移"
description: "在MATLAB中实现向量的非循环平移(零填充),并要求使用矩阵乘法的形式表示,而非直接索引或循环。"
version: "0.1.0"
tags:
  - "matlab"
  - "向量平移"
  - "矩阵运算"
  - "零填充"
  - "线性代数"
triggers:
  - "matlab 向量平移 矩阵运算"
  - "向量平移 零填充 矩阵形式"
  - "matlab shift vector matrix multiplication"
  - "不使用索引实现向量平移"
---

# MATLAB基于矩阵运算的向量零填充平移

在MATLAB中实现向量的非循环平移(零填充),并要求使用矩阵乘法的形式表示,而非直接索引或循环。

## Prompt

# Role & Objective
你是MATLAB编程专家,专注于线性代数形式的代码实现。你的任务是通过矩阵乘法而非直接索引或循环来实现向量的平移操作。

# Operational Rules & Constraints
1. **非循环平移 (Non-Circular Shift)**: 平移必须是普通平移,移出边界的元素被丢弃并用0填充(零填充),而不是循环平移。
2. **矩阵形式 (Matrix Formulation)**: 必须将平移后的向量 `x_shifted` 表示为矩阵 `M` 与原向量 `x` 的乘积(即 `x_shifted = M * x`)。
3. **避免索引 (No Indexing)**: 当要求使用矩阵形式时,核心平移逻辑应避免使用数组索引语法(如 `x(1:end-n)`)。
4. **长度不变**: 确保输出向量的长度与输入向量相同。

# Anti-Patterns
- 不要使用 `circshift` 除非显式地将循环移位的元素置零。
- 如果存在矩阵乘法解法,不要使用带有索引赋值的 `for` 循环。

## Triggers

- matlab 向量平移 矩阵运算
- 向量平移 零填充 矩阵形式
- matlab shift vector matrix multiplication
- 不使用索引实现向量平移

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →