matlab
Skill này làm gì
Công cụ này giúp bạn làm việc với các ngôn ngữ lập trình MATLAB và GNU Octave. Nó có thể xem xét, sắp xếp và lên kế hoạch cách các đoạn mã này hoạt động, đặc biệt cho tính toán số và xử lý dữ liệu.
Khi nào nên dùng
- ✓Khi bạn cần kiểm tra xem mã MATLAB/Octave có đúng không.
- ✓Khi lên kế hoạch tổ chức một dự án lập trình số.
- ✓Khi bạn cần chuyển mã từ phiên bản cũ sang phiên bản mới.
Liên kết skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/matlab/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xem xét đoạn mã MATLAB này để đảm bảo nó tính đúng giá trị trung bình của một bộ dữ liệu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI phân tích mã của bạn và kiểm tra xem nó có tuân theo các thực hành tốt nhất và quy tắc an toàn hay không. Nó không chạy trực tiếp mã mà xem xét để tìm vấn đề tiềm ẩn hoặc chỗ có thể cải thiện.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
MATLAB and GNU Octave
Use this skill to design or review numerical code, migrate MATLAB releases, prepare reproducible projects, and plan trusted execution. MATLAB and GNU Octave are distinct products: compatibility is partial, not a license or behavior guarantee.
Review scope
Reviewed against current MathWorks R2026b documentation and GNU Octave 11.3.0 sources on 2026-10-01. The bundled Engine planner and MATLAB examples retain an explicit R2026a baseline. R2026b supports CPython 3.10-3.14; do not reuse the R2026a Engine package for it. MATLAB/Octave examples are illustrative and were not executed in this review; the Python helpers have local synthetic tests. This skill uses local runtime APIs, with no remote service endpoint or API key.
Product and license gate
- MATLAB R2026a is proprietary. Do not assume MATLAB, MATLAB Online, a named toolbox, MATLAB Test, MATLAB Compiler, MATLAB Coder, Parallel Computing Toolbox, or an add-on is installed, licensed, or available to the user.
- MATLAB Runtime is not MATLAB. It runs compatible applications produced with MATLAB Compiler; it cannot run arbitrary source or host MATLAB Engine for Python. Building artifacts needs the applicable licensed compiler and every product used by the source.
- GNU Octave 11.3.0 is free software under GPLv3+. Octave packages are not MATLAB toolboxes. Similar names do not imply API, numerical, graphics, or licensing equivalence.
- Ask which runtime, release, platform, installed products, and license context
the user actually has. Treat availability as
unknownuntil confirmed.
See Octave compatibility and execution/product boundaries.
Nonnegotiable safety boundary
Never run an untrusted .m, .mlx, MEX binary, MAT file, project startup or
shutdown action, package installer, or generated artifact. Static review does
not prove safety.
Treat these as execution or code-loading surfaces:
eval,evalin,assignin, text-derivedfeval,str2func, callbacks, timers, app callbacks, and dynamically modified paths;system,unix,dos, shell escape!, Java, .NET, Python (py.*,pyrun,pyrunfile), MEX, and native libraries;mex,codegen, MATLAB Compiler, build tasks, package/project startup, and generated code;load, object deserialization (loadobj, custom serialization), function handles, Java/System objects, and class code reachable from MAT files.
.mlx is an opaque archive for this toolkit and MEX is native executable code.
Do not use Python pickle for exchange. Inspect first, isolate when appropriate,
obtain explicit approval, then invoke a user-confirmed executable and license.
Bundled scripts are static or dry-run tools: none launches MATLAB, Octave,
Python Engine, a compiler, or a subprocess.
Default workflow
- Clarify target. Record MATLAB release or Octave version, OS/architecture, base product versus required toolboxes/packages, expected inputs/outputs, numerical tolerances, and whether execution is authorized.
- Inventory statically. Scan
.mfiles, opaque artifacts, project paths, required products, and MAT headers before any runtime loads them. - Choose code form. Prefer functions with an
argumentsblock for automation. Use scripts only for controlled orchestration and live scripts for reviewed interactive narratives. - Make semantics explicit. Record shapes, classes, units, missing-value rules, indexing, implicit expansion, RNG algorithm/seed, tolerances, and output formats.
- Test without hidden state. Keep fixtures synthetic, paths project-local, graphics deterministic, and tests independent of base-workspace residue.
- Plan execution. Generate an argv plan, review startup/path effects and licenses, and launch only after explicit approval outside these helpers.
- Capture provenance. Hash named inputs/code and record release, products, RNG policy, tolerances, and command plan without dumping the environment.
Language and data checklist
Scripts, functions, and live scripts
- Scripts share the caller/base workspace and leave variables behind. Functions have local workspaces and explicit inputs/outputs.
- Live scripts (
.mlx) mix code and rich output but are not plain-text review artifacts. Export reviewed code to.mfor static inspection.
…
Câu hỏi thường gặp
MATLAB và GNU Octave khác nhau thế nào?
MATLAB là phần mềm độc quyền có phí, còn GNU Octave là giải pháp thay thế miễn phí, mã nguồn mở. Chúng khá giống nhau nhưng không hoàn toàn đồng nhất và có thể có khác biệt về tương thích.
AI có chạy được mã của tôi không?
Không. Công cụ này được thiết kế để phân tích và lên kế hoạch, không để thực thi mã. Nó kiểm tra mã một cách an toàn mà không chạy.
“Quy trình tính toán số” là gì?
Đó là chuỗi các bước hoặc hướng dẫn trong lập trình để thực hiện tính toán toán học và phân tích dữ liệu, đặc biệt với số.
Chi tiết
Mô tả gốc của tác giả
Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
Độ phổ biến
- Sao GitHub
- 51k
- Vị trí xếp hạng
- #3496
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
13c-metabolic-flux
51kƯớc tính thông lượng chuyển hóa bằng dữ liệu theo dõi đồng vị carbon-13. Hữu ích để phân tích chuyển hóa tế bào và các con đường sinh hóa.
adaptyv
51kThiết kế thí nghiệm đặc trưng protein bằng Adaptyv API. Hỗ trợ ước tính chi phí, gửi trình tự và theo dõi kết quả phòng thí nghiệm.
aeon
51kThực hiện các tác vụ học máy trên dữ liệu chuỗi thời gian. Hữu ích để phân loại, dự báo, phát hiện bất thường và tìm mẫu trong dữ liệu tuần tự.
alphagenome
51kTra cứu các tác động di truyền đã được tính trước cho biến thể gen. Cung cấp điểm số và giải thích để hiểu ảnh hưởng của biến thể lên bộ gen.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.