matlab-modernize-code

Official

Update deprecated MATLAB code in minutes

Authormatlab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you modernize MATLAB code by replacing deprecated functions and unsafe or outdated patterns, reducing “not recommended/to be removed” warnings and preventing future breakage.

Core Features & Use Cases

  • Modern API migrations: Replaces common legacy functions (for example csvread/xlsread/datenum/eval/subplot/uicontrol/optimset/trainNetwork) with current equivalents like readmatrix/readtable/datetime/tiledlayout/uifigure components/optimoptions/trainnet.
  • Detectors-driven modernization: Acts as the resolver skill intended to run after check_matlab_code flags deprecated or risky constructs.
  • Security- and correctness-focused fixes: Targets anti-patterns such as eval/str2num and other patterns that hurt maintainability, safety, or performance.

Quick Start

Ask your AI agent to modernize legacy MATLAB code by applying matlab-modernize-code after running check_matlab_code, producing a rewritten MATLAB file with deprecated APIs replaced by modern equivalents.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: matlab-modernize-code
Download link: https://github.com/matlab/matlab-agentic-toolkit/archive/main.zip#matlab-modernize-code

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.