주요 콘텐츠

Identify Code Issues

Identify issues, check release compatibility and code generation readiness

MATLAB® automatically identifies potential coding issues as you work in the Editor and Live Editor. You also can generate reports to help update your code when you upgrade to a newer MATLAB release.

Tools

Code AnalyzerIdentify and address code issues (Since R2022b)
Code Compatibility AnalyzerIdentify and address compatibility issues against current version of MATLAB (Since R2022a)

Functions

expand all

codeIssuesIdentify code issues in files (Since R2022b)
fixFix code issues (Since R2023a)
exportWrite code issues to file (Since R2023b)
checkcodeCheck MATLAB code files for possible problems
codeCompatibilityReportCreate code compatibility report
analyzeCodeCompatibilityCreate code compatibility analysis results
matlab.codeanalysis.validateConfigurationValidate Code Analyzer configuration file (Since R2023a)
matlab.codeanalysis.refreshConfigurationRefresh cached Code Analyzer configuration (Since R2023a)

Topics

Syntax Checking

Release Compatibility

Code Generation

  • Code Generation Readiness Tool
    The code generation readiness tool screens MATLAB code for features and functions that code generation does not support.