Agent skill

matlab-modernize-code

Modernize deprecated MATLAB functions and patterns. Use when check_matlab_code or checkcode reports "not recommended" or "to be removed" warnings, when migrating legacy code, or when replacing deprecated APIs (trainNetwork, csvread, xlsread, datenum, eval, subplot, guide, optimset, wavread, svmtrain, uicontrol) with current equivalents.

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-modernize-code --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 14
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.2
Declared author: MathWorks
Path: skills-catalog/matlab-software-development/matlab-modernize-code/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Code Modernization Replace deprecated MATLAB functions and anti-patterns with modern equivalents. This skill is the resolver — `check_matlab_code` is the detector. ## When to Use - `check_matlab_code` or `checkcode` returns "not recommended" or "to be removed" warnings - User asks to modernize, migrate, or update old MATLAB code - Code uses functions listed in the quick reference table below - After static analysis reveals deprecated API usage - Writing new code in a domain that has known deprecated patterns ## When NOT to Use - Reviewing code quality broadly — use `matlab-review-code` (which may then trigger this skill) - Debugging runtime errors — use `matlab-debugging` - Performance profiling — use performance skills (though anti-patterns below overlap) ## Quick Reference: Top Deprecated Functions | Deprecated | Use instead | Since | Category | |------------|------------|-------|----------| | `csvread` / `dlmread` | `readmatrix` | R2019a | File I/O | | `csvwrite` / `dlmwrite` | `writematrix` | R2019a | File I/O | | `xlsread` | `readtable`, `readmatrix` | R2019a | File I/O | | `xlswrite` | `writetable`, `writematrix` | R2019a | File I/O | | `datenum` / `datestr` | `datetime` |

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Quick Reference: Top Deprecated Functions
  4. Critical Anti-Patterns
  5. Modern Design Patterns
  6. Table-Based Workflows
  7. String Arrays (not char arrays)
  8. Arguments Block (not nargin/varargin)
  9. Vectorization (not loops)
  10. Preallocation
  11. Key Migrations
  12. File I/O: csvread/xlsread → readmatrix/readtable
  13. Deep Learning: trainNetwork → trainnet
  14. eval → Dynamic Field Names / Function Handles
Ships with 13 files
  • manifest.yaml
  • reference/audio-video-guidance.md
  • reference/communications-guidance.md
  • reference/control-systems-guidance.md
  • reference/core-functions-guidance.md
  • reference/image-processing-guidance.md
  • reference/mapping-guidance.md
  • reference/optimization-guidance.md
  • reference/performance-guidance.md
  • reference/removed-functions-guidance.md
  • reference/signal-processing-guidance.md
  • reference/simulink-guidance.md
  • reference/statistics-ml-guidance.md
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-modernize-code skill do?

Modernize deprecated MATLAB functions and patterns. Use when check_matlab_code or checkcode reports "not recommended" or "to be removed" warnings, when migrating legacy code, or when replacing deprecated APIs (trainNetwork, csvread, xlsread, datenum, eval, subplot, guide, optimset, wavread, svmtrain, uicontrol) with current equivalents.

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-modernize-code --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going