Logo Matlab Install Products

Matlab Install Products

Tổ chứcPhổ biến
matlab
matlab-install-products

Deterministic workflow to download MATLAB Package Manager (mpm) and install MathWorks products from the OS command line with consistent, repeatable behavior. Use when installing MATLAB, Simulink, toolboxes, or support packages via command line, or setting up scripted installations for CI/CD, containers, or fleet provisioning.

Tổng quan

Nhà phát hànhmatlab
Kho mãmatlab-agentic-toolkit
Tên kỹ năngmatlab-install-products
Sao
1.2K
Bản fork
138
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được matlab công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Matlab Install Products trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/matlab-core/matlab-install-products
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/matlab-agentic-toolkit.git /tmp/matlab-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/matlab-agentic-toolkit/skills-catalog/matlab-core/matlab-install-products .claude/skills/matlab-install-products
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Matlab Install Products trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Matlab Install Products ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Matlab Install Products với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Installing MATLAB Products with MATLAB Package Manager (mpm) - Deterministic Protocol

Use this skill when asked to install MathWorks products using MATLAB Package Manager (mpm) from the OS command line.

$ARGUMENTS

When to Use

  • User asks to install MATLAB, Simulink, toolboxes, or support packages via the command line
  • User wants a scripted, repeatable MATLAB installation (CI/CD, containers, fleet provisioning)
  • User asks about mpm, MATLAB Package Manager, or non-interactive MATLAB installs
  • User needs to add products to an existing MATLAB installation using mpm

When NOT to Use

  • User wants to install via the graphical MATLAB installer or MathWorks website
  • User is asking about MATLAB licensing or activation (separate workflow)
  • User wants to manage MATLAB Add-Ons from within MATLAB (use the Add-On Manager)
  • User needs to install MATLAB Engine API for Python, Java, or C++ (different process)

Non-Negotiable Determinism Contract (follow exactly)

  • Follow the steps in Protocol in order. Do not add extra steps or checks.
  • Use only the canonical shell for the OS. Do not switch shells.
  • Use absolute paths to mpm / mpm.exe. Never rely on relative paths.
  • Retry downloads at most once. Otherwise stop and report the error.
  • If security software blocks execution: stop and instruct escalation. Do not bypass.

Safety Gate (Windows) — MANDATORY, NO EXCEPTIONS

STOP. Read this entire section before executing ANY Windows step.

  1. NEVER use powershell.exe -Command for ANY reason. Bash mangles $, backticks, quotes, arrays, and script blocks before PowerShell sees them. This WILL cause unexpected EOF or syntax errors.

  2. NEVER create any file with a bash heredoc (cat > file <<'EOF' ... EOF) or shell redirection (echo ... > file, printf ... > file, >>). This includes quoted heredocs (<<'PS1', <<"EOF"). Do not rationalize an exception: the reason is NOT variable expansion (so "the delimiter is quoted, so it's safe" is wrong). The reasons the ban is absolute are (a) Git Bash rewrites paths, line endings, and encoding as it creates the file, corrupting .ps1 parsing, and (b) the Write file tool is the single approved mechanism for creating any file in this protocol — scripts and input files alike. There is no safe heredoc. If you catch yourself reaching for cat, echo, printf, >, >>, or << to produce a file, STOP and use the Write file tool.

  3. ALWAYS write .ps1 files using the Write file tool, then invoke with: powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File <absolute-script-path>

  4. Do not emit CMD-only syntax (if not exist, set VAR=, %USERPROFILE%). Use PowerShell equivalents (Test-Path, $env:USERPROFILE).

  5. ASCII only in all .ps1 file content. No em dashes (—), en dashes (–), curly quotes, or other non-ASCII characters. They cause PowerShell parse errors (broken string terminators, missing brace errors) when file encoding doesn't preserve them.

If you are about to type powershell.exe -Command — STOP. You are violating this rule. Use the Write file tool to create a .ps1 file instead.

Windows script authoring pattern:

  • WRONG: powershell.exe -Command "$script = @'... (bash corrupts $ and heredocs)
  • WRONG: cat > C:/Windows/Temp/script.ps1 <<'PS1' ... PS1 (bash heredoc — banned even with a quoted 'PS1' delimiter)
  • WRONG: echo '...' > script.ps1 or printf '...' > script.ps1 (shell redirection — banned)
  • CORRECT: create a unique temp folder, use the Write file tool to write .ps1 files into it, then run with -File

The only Bash tool commands allowed in this protocol are: mkdir -p (create the working folder), powershell.exe ... -File (invoke a script), test -f (verify artifacts), and rm -rf (cleanup). Any Bash command that would create or write file content is a violation — file content comes from the Write file tool, always.

Unique temp folder:

  • Before Step 1, create a timestamped working folder using the Bash tool:
    • Windows: mkdir -p "C:/Users/<username>/AppData/Local/Temp/mpm-<YYYYMMDD-HHMMSS>"
    • Linux/macOS: mkdir -p "/tmp/mpm-<YYYYMMDD-HHMMSS>"
  • Use this folder for ALL generated scripts and input files throughout the protocol
  • Because the folder is new, the Write file tool can always create files in it without needing to delete anything first
  • Delete the entire folder during the final cleanup step

Windows PowerShell syntax reminders:

  • Bad: if not exist C:\Users\name\Downloads mkdir C:\Users\name\Downloads (CMD syntax)
  • Good: if (-not (Test-Path -LiteralPath 'C:\Users\name\Downloads')) { New-Item -ItemType Directory -Path 'C:\Users\name\Downloads' | Out-Null }

Do not ask the user for the exact product name or identifier. Look it up using the appropriate mpm input file from https://www.mathworks.com/products/mpm.html Do not ask the user whether to install dependencies or not. mpm will take care of it. Just install whatever the user asked for, and let mpm do the rest. If a user types the shortname of MATLAB releases, automatically use the correct expanded full name. e.g. 25a is R2025a, 25b is R2025b

Required Inputs (ask only if missing)

  1. Operating system (Windows, Linux, macOS)
  2. MATLAB release (for example R2025b)
  3. Installation destination (absolute path)
  4. Requested products / toolboxes / support packages

Confirmation Rule

Before executing any steps, always confirm the user's choices:

  • Release
  • Destination folder
  • Products
  • Support packages

Ask for confirmation in one message. The user can reply yes to all to confirm everything at once. If they reply with specific changes, update the selections and confirm again. Display each value to be confirmed in its own new line. Note at the bottom of the confirmation message: "Required dependencies will be installed automatically by mpm."

Plan Display (after confirmation, before execution)

Once the user confirms their inputs, display a clear installation plan before running any commands. Adapt the template below for the target OS (use forward slashes and /tmp/ for Linux/macOS, omit .ps1 script references, and omit the UAC note). Use this format:

Here's what I'll do:

Working folder: <C:\Users\<username>\AppData\Local\Temp\mpm-YYYYMMDD-HHMMSS>

Step 1 — Download mpm
  Check for mpm at <canonical mpm path>
  Download from <URL> if not present
  Script: <working folder>\mpm_download.ps1

Step 2 — Prepare input file
  Download release template for <release> from mathworks.com
  Set destination folder: <destination>
  Enable products: <comma-separated list>
  Add caller=agent to mark this as an agent-driven install
  Input file: <working folder>\mpm_input_<releaselower>.txt
  Script: <working folder>\mpm_prepare_input.ps1

Step 3 — Run installation
  Execute mpm install using the prepared input file
  <Windows only: note that elevated permissions (UAC prompt) will be required>

Step 4 — Verify
  Confirm MATLAB binary exists: <completion artifact path>
  Verify products via: <DESTINATION>/appdata/prodcontents.json
  <if support packages requested> Verify support packages via: <SUPPORTPKGROOT>/appdata/prodcontents.json
  Delete working folder: <working folder>
  <if MATLAB included> Show release notes: https://www.mathworks.com/help/matlab/release-notes.html?startrelease=<RELEASE>&endrelease=<RELEASE>

Resolve all environment variables and shell-specific paths to absolute paths before displaying. Generate the timestamp for the working folder name at plan display time so it is fixed for the entire session. Do not start Step 1 until the user acknowledges the plan (a simple "ok", "go", "yes", or similar is enough).

Official documentation:

Execution Style

Important: When executing steps, do not narrate or explain what you are about to do. Just run the commands and report results concisely (success, failure, or error). Reserve commentary for confirmations, the plan display, and error reporting only.

Canonical Shell (used throughout the Protocol)

  • Windows: Windows PowerShell (powershell.exe)
  • Linux: bash / sh
  • macOS: zsh or bash (Apple silicon only; Intel Mac is not supported — stop and inform the user)

Pre-Execution Checklist (verify before EVERY Windows step)

Before running any command in Steps 1–3 on Windows, confirm:

  • The PowerShell script was written using the Write file tool (not -Command, not heredoc, not echo/printf)
  • The script is invoked with powershell.exe ... -File <path> (not -Command)
  • No PowerShell code appears inline in any bash command
  • No Bash command contains <<, >, or >> redirecting into a .ps1 or input file (heredoc/redirection is banned even with a quoted delimiter)

If any check fails, STOP and rewrite using the Write file tool.

Protocol (exactly 4 steps)

Step 1 - Ensure mpm exists at canonical path

Canonical locations (resolve to absolute paths before use):

  • Windows: <user home>\Downloads\mpm.exe
  • Linux: <user home>/Downloads/mpm
  • macOS: <user home>/Downloads/mpm

If the file exists at that path, reuse it. Otherwise download from:

Windows (PowerShell)

MANDATORY: Use the Write file tool to create this script. NEVER use -Command or heredoc.

  1. Create the working folder with the Bash tool (use the timestamp fixed at plan display time):
bash
mkdir -p "C:/Users/<username>/AppData/Local/Temp/mpm-YYYYMMDD-HHMMSS"
  1. Use the Write file tool to write the following content to <working folder>\mpm_download.ps1:
powershell
param(
  [Parameter(Mandatory = $true)]
  [string]$Destination
)
if (Test-Path -LiteralPath $Destination) {
  Write-Host "mpm already present at $Destination"
} else {
  Write-Host "Downloading mpm from https://www.mathworks.com/mpm/win64/mpm - this may take a few minutes..."
  Invoke-WebRequest -Uri "https://www.mathworks.com/mpm/win64/mpm" -OutFile $Destination -UseBasicParsing
  if (-not (Test-Path -LiteralPath $Destination)) { throw "mpm download failed: $Destination" }
  Write-Host "mpm downloaded to $Destination"
}
  1. Run it:
bash
powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "<working folder>\mpm_download.ps1" -Destination "C:\Users\<username>\Downloads\mpm.exe"
Linux/macOS

See reference/linux-macos-steps.md for full shell scripts. Summary: create working folder at /tmp/mpm-YYYYMMDD-HHMMSS, download mpm with curl -fL -o to ~/Downloads/mpm, and chmod +x.

Step 2 - Download and edit the release input file

Always use a release template input file from: https://www.mathworks.com/products/mpm.html

Download the template input file for the requested release, then edit it:

  • Uncomment and set destinationFolder to the requested installation path.
  • Uncomment each product.<Name> line for requested products and support packages.
  • Add noJRE=true to the input file (on its own line, after destinationFolder). This prevents mpm from bundling a Java Runtime. Only omit this line if the user explicitly requests JRE installation.
  • Add a caller=agent line (see "caller — mark the install as agent-driven" below).
  • Leave updateLevel commented unless the user requests a specific update.
  • Do not edit the checksum line (?checksum=...).

After editing the file, verify:

  • The input file exists at the expected path.
  • destinationFolder matches the user-requested install path exactly.
  • Each requested product.<Name> line is uncommented (no leading #).
  • Non-requested products remain commented out.
  • A caller=agent line is present.

If any verification fails, stop and retry the download once, then re-edit and re-verify. If it still fails, stop and report the error.

The input file format uses product.<Name> entries for both products and support packages. You must look up the exact product.<Name> identifiers in the release input file. Product identifiers use underscores for spaces (e.g. "Signal Processing Toolbox" -> product.Signal_Processing_Toolbox).

  • Always display the full path to the ps1 script that was generated
caller — mark the install as agent-driven (required)

Recent versions of mpm accept a caller input-file key that records what initiated the installation. Always add it to the input file as its own line with the fixed value agent, so the line reads exactly caller=agent.

Use this exact value — do not substitute an agent name, model, or any other identifier. It records only that an automation agent performed the install, letting agent-driven installs be distinguished from manual ones in telemetry.

Set caller inside the input file, not on the command line. When --inputfile is used, mpm rejects any other command-line option, so the caller value must travel in the input file. mpm records the value in its installation telemetry (uppercased), so casing is not significant.

Windows (PowerShell)

MANDATORY: Use the Write file tool to create this script. NEVER use -Command or heredoc.

  1. Use the Write file tool to write the following content to <working folder>\mpm_prepare_input.ps1:
powershell
param(
  [Parameter(Mandatory = $true)]
  [string]$Release,
  [Parameter(Mandatory = $true)]
  [string]$Destination,
  [Parameter(Mandatory = $true)]
  [string]$WorkingFolder,
  [Parameter(Mandatory = $true)]
  [string]$Products
)

Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"

# -File mode passes "a,b" as one string; split into an array
$ProductList = $Products -split ',' | ForEach-Object { $_.Trim() }

$releaseLower = $Release.ToLower()
$inputUrl  = "https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/products/mpm/mpm-input-${releaseLower}.txt"
$inputFile = Join-Path $WorkingFolder "mpm_input_${releaseLower}.txt"

Write-Host "Downloading input file from $inputUrl..."
Invoke-WebRequest -Uri $inputUrl -OutFile $inputFile -UseBasicParsing
if (-not (Test-Path -LiteralPath $inputFile)) {
  throw "Input file was not downloaded: $inputFile"
}

$lines = Get-Content -LiteralPath $inputFile

$lines = $lines | ForEach-Object {
  if ($_ -match '^\s*#?\s*destinationFolder=') {
    "destinationFolder=$Destination"
    "noJRE=true"
    "caller=agent"
  }
  else {
    $_
  }
}

foreach ($product in $ProductList) {
  $escaped = [Regex]::Escape($product)
  $lines = $lines | ForEach-Object {
    if ($_ -match "^\s*#\s*$escaped\s*$") {
      $product
    }
    else {
      $_
    }
  }
}

Set-Content -LiteralPath $inputFile -Value $lines -Encoding UTF8

$lines = Get-Content -LiteralPath $inputFile

$destinationLine = $lines | Where-Object { $_ -match '^destinationFolder=' } | Select-Object -First 1
if (-not $destinationLine) { throw "destinationFolder line not found in $inputFile" }
if ($destinationLine -ne "destinationFolder=$Destination") { throw "destinationFolder mismatch: $destinationLine" }

$callerLine = $lines | Where-Object { $_ -match '^caller=' } | Select-Object -First 1
if ($callerLine -ne "caller=agent") { throw "caller line missing or incorrect: $callerLine" }

$uncommentedProducts = $lines | Where-Object { $_ -match '^\s*product\.' }
$unexpectedProducts  = $uncommentedProducts | Where-Object { $ProductList -notcontains $_ }
if ($unexpectedProducts) { throw "Unrequested products enabled: $($unexpectedProducts -join ', ')" }

foreach ($product in $ProductList) {
  if (-not ($lines -contains $product)) { throw "Requested product not enabled: $product" }
}

Write-Host "Input file ready: $inputFile"

Note: the script writes the input file to <working folder>\mpm_input_<releaselower>.txt, so cleanup of the working folder deletes it automatically. The input file path will be reported by the script on completion.

  1. Run it (substitute actual working folder, release, destination, and product identifiers):
bash
powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "<working folder>\mpm_prepare_input.ps1" -Release "R2025b" -Destination "C:\MATLAB\R2025b" -WorkingFolder "<working folder>" -Products "product.MATLAB,product.Simulink"
Linux/macOS

See reference/linux-macos-steps.md for the full shell script. Summary: download the release input file with curl, edit with sed to set destinationFolder, add noJRE=true and a caller=agent line, and uncomment requested products, then verify all edits.

  • Do not delete generated files yet; cleanup happens after Step 3.

Step 3 - Run the install command and completion check

IMPORTANT:

  • When using --inputfile, do not pass any other mpm options. The caller value is set inside the input file in Step 2 (caller=agent), not on the command line — mpm rejects --inputfile combined with any other option.
  • Windows requires elevation. Use Start-Process -Verb RunAs for elevated execution.
  • Always display the fully expanded command before running it.
  • Substitute actual values for release, working folder, and destination in the snippets below.
Windows

MANDATORY: Use the Write file tool to create a .ps1 script for this step. NEVER use -Command or heredoc. Then invoke with powershell.exe ... -File <path>.

Write the following to <working folder>\mpm_install.ps1 using the Write file tool, then run with -File:

powershell
param(
  [Parameter(Mandatory = $true)]
  [string]$MpmPath,
  [Parameter(Mandatory = $true)]
  [string]$InputFile
)

$installArgs = @(
  "install",
  "--inputfile=$InputFile"
)

$display = '"' + $MpmPath + '" install ' + ('--inputfile="' + $InputFile + '"')
Write-Host "Running: $display"

Start-Process -FilePath $MpmPath -ArgumentList $installArgs -Verb RunAs -Wait

Run it:

bash
powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "<working folder>\mpm_install.ps1" -MpmPath "C:\Users\<username>\Downloads\mpm.exe" -InputFile "<working folder>\mpm_input_<releaselower>.txt"
Linux/macOS

See reference/linux-macos-steps.md. Summary: run mpm install --inputfile=<path> directly (no elevation needed). The caller=agent line is already in the input file from Step 2.

Step 4 - Verification

This step defines completion. It is mandatory. Wait until the mpm process has exited. Do not proceed until it is done. If the completion artifact does not exist, stop and report failure. Do not re-run Step 3.

Completion artifacts (use the destination folder you set in the input file):

  • Windows: <DESTINATION>\bin\matlab.exe
  • Linux: <DESTINATION>/bin/matlab
  • macOS: <DESTINATION>/Contents/MacOS/MATLAB

Use the Bash tool with test -f to check existence. Do not use powershell.exe -Command for this check.

bash
test -f "<DESTINATION>/bin/matlab.exe" && echo "VERIFIED" || echo "NOT FOUND"
Per-item verification

After confirming the MATLAB binary exists, verify each requested item was installed. Products and support packages are stored in separate locations with separate prodcontents.json files. Do not check one location for items that belong in the other.

Products (items whose mpm identifier does NOT contain Support_Package):

  • Read <DESTINATION>/appdata/prodcontents.json using the Read tool.
  • This is a JSON object. Keys are product names with version and platform tokens (e.g. "Simulink 25.1 win64").
  • For each requested product, check that a key exists whose name starts with the product's display name (strip the product. prefix and replace underscores with spaces). For example, product.Signal_Processing_Toolbox matches a key starting with Signal Processing Toolbox.

Support packages (items whose mpm identifier contains Support_Package):

  • Derive the support package root based on platform:
    • Windows: C:\ProgramData\MATLAB\SupportPackages\<RELEASE>
    • Linux: /usr/local/MATLAB/SupportPackages/<RELEASE>
    • macOS: ~/Library/Application Support/MathWorks/MATLAB/SupportPackages/<RELEASE>
  • Read <SUPPORTPKGROOT>/appdata/prodcontents.json using the Read tool.
  • If the file does not exist, the support package installation failed. Report failure.
  • For each requested support package, check that a matching key exists (same name mapping as products above).

Report Verified or Not found for each item. If any item is not found, stop and report which items failed.

After all items are verified, delete the entire working folder and its contents using the Bash tool:

bash
rm -rf "C:/Users/<username>/AppData/Local/Temp/mpm-YYYYMMDD-HHMMSS"
Release Notes Link

Only if MATLAB (the base product) was included in the installation, provide a link to the release notes after successful verification and cleanup:

https://www.mathworks.com/help/matlab/release-notes.html?startrelease=<RELEASE>&endrelease=<RELEASE>&rntext=&groupby=release&sortby=descending&searchHighlight=

Replace <RELEASE> with the installed release (e.g., R2025b). Display the link on its own line for readability:

View the MATLAB R2025b Release Notes by visiting this link: https://www.mathworks.com/help/matlab/release-notes.html?startrelease=R2025b&endrelease=R2025b&rntext=&groupby=release&sortby=descending&searchHighlight=

Do not show this link if the user only installed toolboxes or support packages without MATLAB.

Common Errors

  • ErrorCode::IncompatibleProduct ("Selected products are incompatible"): The destination folder most likely contains an existing MATLAB installation. Inform the user and ask them to choose an empty destination folder.

Key Functions and Patterns

Command / PatternPurpose
mpm install --inputfile=<file>Install products defined in an input file
mpm_input_<release>.txtRelease-specific input file template from mathworks.com
product.<Name>Input file entry format for products and support packages
destinationFolder=<path>Input file directive setting the install location
caller=agentInput file directive marking the install as agent-driven
Start-Process -Verb RunAs -WaitElevated execution on Windows (UAC)
Invoke-WebRequest -OutFileDownload files in PowerShell
curl -fL -oDownload files on Linux/macOS

Notes

  • mpm installs required dependencies automatically.
  • Licensing and activation are separate workflows. Do not ask the user about licensing or activation at the end of the install.
  • Always use a release input file from: https://www.mathworks.com/products/mpm.html

Copyright 2026 The MathWorks, Inc.


Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Matlab Install Products làm được gì?

Deterministic workflow to download MATLAB Package Manager (mpm) and install MathWorks products from the OS command line with consistent, repeatable behavior. Use when installing MATLAB, Simulink, toolboxes, or support packages via command line, or setting up scripted installations for CI/CD, containers, or fleet provisioning.

Vì sao nên dùng Matlab Install Products trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Matlab Install Products là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Matlab Install Products trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/matlab-core/matlab-install-products. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Matlab Install Products?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Matlab Install Products với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Matlab Install Products với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Matlab Install Products có miễn phí không?

Kỹ năng này được matlab phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇