# Send MATLAB to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "matlab",
    "name": "MATLAB",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/matlab",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/matlab",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/matlab",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=matlab",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "matlab",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T04:45:00.080Z",
      "expiresAt": "2026-05-12T04:45:00.080Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=matlab",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=matlab",
        "contentDisposition": "attachment; filename=\"matlab-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "matlab"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/matlab"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/matlab",
    "downloadUrl": "https://openagent3.xyz/downloads/matlab",
    "agentUrl": "https://openagent3.xyz/skills/matlab/agent",
    "manifestUrl": "https://openagent3.xyz/skills/matlab/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/matlab/agent.md"
  }
}
```
## Documentation

### Indexing

1-based indexing — first element is A(1), not A(0)
end keyword for last index — A(end), A(end-1), works in any dimension
Linear indexing on matrices — A(5) accesses 5th element column-major order
Logical indexing returns vector — A(A > 0) gives 1D result regardless of A's shape

### Matrix vs Element-wise

* is matrix multiplication — .* for element-wise
/ solves A*x = B — ./ for element-wise division
^ is matrix power — .^ for element-wise power
Forgetting the dot is silent bug — dimensions might accidentally match

### Vector Shape Matters

Row vector: [1 2 3] or [1, 2, 3] — shape is 1×3
Column vector: [1; 2; 3] — shape is 3×1
Transpose with ' (conjugate) or .' (non-conjugate) — for complex, they differ
* between row and column gives scalar or matrix — depending on order

### Array Preallocation

Growing arrays in loops is slow — preallocate: A = zeros(1000, 1)
zeros, ones, nan for preallocation — specify size upfront
Cell arrays: cell(n, m) — preallocate cells too

### Broadcasting

Implicit expansion since R2016b — A + b works if dimensions compatible
Singleton dimensions expand — [1;2;3] + [10 20] gives 3×2
Before R2016b needed bsxfun — legacy code may still use it

### NaN Handling

NaN ~= NaN is true — use isnan() to check
Most operations propagate NaN — sum([1 NaN 3]) is NaN
Use 'omitnan' flag — sum(A, 'omitnan'), mean(A, 'omitnan')

### Cell Arrays vs Matrices

{} for cell arrays — hold mixed types, different sizes
() indexing returns cell — C(1) is 1×1 cell
{} indexing extracts content — C{1} is the actual value
Comma-separated list from C{:} — useful for function arguments

### Common Mistakes

= for assignment, == for comparison — if x = 5 is error in MATLAB
Semicolon suppresses output — forget it and flood command window
clear removes all variables — use clearvars for selective, close all for figures
i and j are imaginary unit — don't use as loop variables, or reassign explicitly
String vs char: "text" vs 'text' — double quotes are string arrays (R2017a+)

### Functions

Anonymous functions: f = @(x) x^2 — quick inline functions
Multiple outputs: [a, b] = func() — must capture or use ~ to ignore
nargin/nargout for optional args — check how many inputs/outputs provided
varargin/varargout for variable args — cell array of extra arguments

### Debugging

dbstop if error — breakpoint on any error
keyboard in code pauses execution — enter debug mode at that line
whos shows variable sizes — size(A) for specific variable
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T04:45:00.080Z
- Expires at: 2026-05-12T04:45:00.080Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/matlab)
- [Send to Agent page](https://openagent3.xyz/skills/matlab/agent)
- [JSON manifest](https://openagent3.xyz/skills/matlab/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/matlab/agent.md)
- [Download page](https://openagent3.xyz/downloads/matlab)