Skip to content

Suggested Improvements ​

Default severity: Info Auto-fix: No Category: Suggested Improvements Can be disabled: Yes Enabled by default: No (opt in per rule or per category)

What this rule does ​

A data-driven rule module that handles 243 MATLAB Code Analyzer checks about functions and patterns that are not recommended, pairing each with a modern replacement suggestion. Instead of implementing one struct per check, a single SuggestedImprovementsEngine loads data/suggested_improvements.toml at compile time, parses it into a function-name lookup table, and emits diagnostics with the specific check ID from the matched entry (e.g. CSVRD, not the meta ID SUGGESTED_IMPROVEMENTS).

On each function_call or command node the engine extracts the function name and performs an O(1) HashMap lookup, reporting the first matching entry for that name (some names map to several check IDs, e.g. maketform → MTFA1, MTFA2, MTFP1, MTFP2, MTFB). Entries with an empty function_name are "generic" checks that cannot be matched by name alone (they require AST pattern matching) and are skipped during the lookup-based check.

Check IDs ​

Suggested Improvements (243 checks) ​

Check IDSeverityDescription
IMPORTDYNwarningUsing function syntax to call 'import' is not recommended. With appropriate code changes, use command syntax instead.
LERRwarningLASTERR and LASTERROR are not recommended. Use an identifier on the CATCH block instead.
EVLCwarningUsing 'evalc' with two arguments is not recommended. Use try/catch statements instead to make code more clear and efficient.
RANDwarningRAND or RANDN with the 'seed', 'state', or 'twister' inputs is not recommended. Use RNG instead.
HOUGHwarningHOUGH(BW,'ThetaResolution',VAL) is not recommended. Use HOUGH(BW,'Theta',-90:VAL:(90-VAL) ) instead.
THOURwarning'hour' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TMNTHwarning'month' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TMNUTwarning'minute' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TNDAYwarning'day' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TSCNDwarning'second' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TQURTwarning'quarter' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TYEARwarning'year' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' as input instead.
TDTVECwarning'datevec' with serial date number or text inputs is not recommended. With appropriate code changes, use 'datetime' instead.
TNOW1warning'now' is not recommended. With appropriate code changes, use 'datetime(\
TNOW2warning'datetime(now, 'ConvertFrom', 'datenum')' is not recommended. Use 'datetime(\
TTDAY1warning'today' is not recommended. With appropriate code changes, use 'datetime(\
TTDAY2warning'datetime(today, 'ConvertFrom', 'datenum')' is not recommended. Use 'datetime(\
MATCH2warningSTRMATCH is not recommended. Use STRNCMP or VALIDATESTRING instead.
IMGDTwarningUsing 'DataAugmentation' in function 'imageInputLayer' is not recommended. Use function 'augmentedImageDatastore' instead.
MATCH3warningSTRMATCH is not recommended. Use STRCMP instead.
MTFA1warningMAKETFORM('AFFINE',A) is not recommended. Use AFFINE2D or AFFINE3D instead.
MTFA2warningMAKETFORM('AFFINE',U,X) is not recommended. Use FITGEOTRANS instead.
MTFP1warningMAKETFORM('PROJECTIVE',A) is not recommended. Use PROJECTIVE2D instead.
MTFP2warningMAKETFORM('PROJECTIVE',U,X) is not recommended. Use FITGEOTRANS instead.
MTFBwarningMAKETFORM('BOX',...) is not recommended. Use IMREF2D or IMREF3D instead.
OOPSwarningDefining a class using 'function' syntax is not recommended. With appropriate code changes, use 'classdef' syntax instead.
PMTMCONFwarningWhen using PMTM with three output arguments, the 'ConfidenceLevel' input argument is recommended.
NCHKIwarningNARGCHK is not recommended. Use NARGINCHK instead.
NCHKOwarningUsing NARGCHK with NARGOUT is not recommended. Use NARGOUTCHK instead.
NCHKNwarningNARGCHK is not recommended. Use NARGINCHK without ERROR instead.
NCHKMwarningNARGCHK is not recommended. Use NARGOUTCHK without ERROR instead.
ISCLSTRwarningTo support string in addition to cellstr, include a call to 'isstring'.
EMTAGwarningThe compilation directive (or pragma) 'eml' is not recommended. Use 'codegen' instead.
EMXTRwarningThe 'eml' namespace is not recommended. Use 'codegen' instead.
NVREPLAwarning'addParamValue' is not recommended. Use 'addParameter' instead.
NVREPLMwarning'MidPctRef' is not recommended. Use 'MidPercentReferenceLevel' instead.
NVREPLPwarning'PctRefLevels' is not recommended. Use 'PercentReferenceLevels' instead.
VIDREADwarning'NumberOfFrames' is not recommended. Use 'NumFrames' instead.
CRNRwarningCORNER is not recommended. Use detectHarrisFeatures or detectMinEigenFeatures in Computer Vision Toolbox instead.
CRNRMwarningCORNERMETRIC is not recommended. Use detectHarrisFeatures or detectMinEigenFeatures and the cornerPoints class in Computer Vision Toolbox instead.
MDFLT1warningBLKSZ is required for backward compatibility and is ignored. Use [] instead.
INTRPPwarning'pp' is not recommended. Use the griddedInterpolant class instead.
DISPLAYPROGwarningProgrammatic use of DISPLAY is not recommended. Use DISP or FPRINTF instead.
HGSTGTwarninghgsetget is not recommended. Use matlab.mixin.SetGet or matlab.mixin.SetGetExactNames instead.
LEGACYMDwarningSetting LegacyMode to true is not recommended. Set LegacyMode to false instead.
LEGACYTRDwarning'DetectorMethod' is applicable only when LegacyMode is set to true. However, setting LegacyMode to true is not recommended.
LEGACYTRLwarning'LoopMethod' is applicable only when LegacyMode is set to true. However, setting LegacyMode to true is not recommended.
LEGACYTRUwarning'UpdatePeriod' is applicable only when LegacyMode is set to true. However, setting LegacyMode to true is not recommended.
LEGACYTRSwarning'StepSize' is applicable only when LegacyMode is set to true. However, setting LegacyMode to true is not recommended.
LEGACYTRGwarning'GainOutputPort' is applicable only when LegacyMode is set to true. However, setting LegacyMode to true is not recommended.
EZPLTwarningEZPLOT is not recommended. Use FPLOT or FIMPLICIT instead.
EZGRPH3warningEZGRAPH3 is not recommended. Use FCONTOUR, FMESH, FPLOT, FPLOT3 or FSURF instead.
EZCNTRFwarningEZCONTOURF is not recommended. Use FCONTOUR instead, and set the 'Fill' value to 'on'.
EZMSHCwarningEZMESHC is not recommended. Use FMESH instead, and set the 'ShowContours' value to 'on'.
EZSRFCwarningEZSURFC is not recommended. Use FSURF instead, and set the 'ShowContours' value to 'on'.
FISADRwarning'addrule' is not recommended. Use 'addRule' instead.
STRQUOTwarningstring('...') is not recommended. Use \
STRCLQTwarning'string({'str1', 'str2'})' is not recommended. Use '[\
SIMwarning'sim' in parfor loop is not recommended. Replace the parfor loop with 'parsim'.
NUMCHwarning'NumberOfChannels' is not recommended. Use 'NumChannels' instead.
GTREDwarning'geotiffread' is not recommended, except when reading a GeoTIFF file from a URL. With appropriate code changes, use 'readgeoraster' instead.
GETFSPwarningUsing get for retrieving values of line spacing is not recommended. With appropriate code changes, use 'settings' object instead.
SETFMTwarningUsing set for assigning values of numeric display format is not recommended. With appropriate code changes, use 'settings' object instead.
SETFSPwarningUsing set for assigning values of line spacing is not recommended. With appropriate code changes, use 'settings' object instead.
GETFMTwarningUsing get for retrieving values of numeric display format is not recommended. With appropriate code changes, use 'settings' object instead.
EV2INwarningUsing 'eval' with two arguments is not recommended. Use try/catch statements instead to make code more clear and efficient.
EV3INwarningUsing 'evalin' with three arguments is not recommended. Use try/catch statements instead to make code more clear and efficient.
PRTOGwarning'-opengl' is not recommended. Use '-image' instead, which is a direct replacement.
PRTPTwarning'-painters' is not recommended. Use '-vector' instead, which is a direct replacement.
FORMATNOIwarning'format' with no input or output arguments is not recommended. Use 'format(\
XFRWSBwarningThe 'TransferBaseWorkspaceVariables' option is not recommended for 'batchsim'. With appropriate code changes, consider using project startup scripts or the 'SetupFcn' option instead.
XFRWSPwarningThe 'TransferBaseWorkspaceVariables' option is not recommended for 'parsim'. With appropriate code changes, consider using project startup scripts or the 'SetupFcn' option instead.
OLDSIMwarningThis syntax of the 'sim' command which returns multiple arguments is not recommended. With appropriate code changes, turn on 'ReturnWorkspaceOutputs' and return simulation results using the single-output format instead.
INSTHWIwarning'instrhwinfo('ivi')' is not recommended. With appropriate code changes, use 'ividriverlist' or 'ividevlist' instead.
INWVXwarning'instrhwinfo('vxipnp')' is not recommended. With appropriate code changes, use 'ividriverlist' or 'ividevlist' instead.
VERMATLABwarningver('matlab') is not recommended. With appropriate code changes, use 'matlabRelease' instead.
VERLESSMATLABwarningverLessThan('matlab', ...) is not recommended. With appropriate code changes, use 'isMATLABReleaseOlderThan' instead.
RISKLMMwarning'Model' property of 'risk.credit.pd.LifetimePDModel' class is not recommended. Use 'UnderlyingModel' property of 'risk.credit.pd.LifetimePDModel' class instead.
RISKLMAwarning'modelAccuracy' method of 'risk.credit.pd.LifetimePDModel' class is not recommended. Use 'modelCalibration' method of 'risk.credit.pd.LifetimePDModel' class instead.
RISKLMAPwarning'modelAccuracyPlot' method of 'risk.credit.pd.LifetimePDModel' class is not recommended. Use 'modelCalibrationPlot' method of 'risk.credit.pd.LifetimePDModel' class instead.
RISKLGDMAwarning'modelAccuracy' method of 'risk.credit.lgd.LGDModel' class is not recommended. Use 'modelCalibration' method of 'risk.credit.lgd.LGDModel' class instead.
RISKLGDMAPwarning'modelAccuracyPlot' method of 'risk.credit.lgd.LGDModel' class is not recommended. Use 'modelCalibrationPlot' method of 'risk.credit.lgd.LGDModel' class instead.
RISKEADMAwarning'modelAccuracy' method of 'risk.credit.ead.EADModel' class is not recommended. Use 'modelCalibration' method of 'risk.credit.ead.EADModel' class instead.
RISKEADMAPwarning'modelAccuracyPlot' method of 'risk.credit.ead.EADModel' class is not recommended. Use 'modelCalibrationPlot' method of 'risk.credit.ead.EADModel' class instead.
HOLDALLwarning'hold('all')' is not recommended. Use 'hold('on')' instead, which is a direct replacement.
MASSOwarning'MasterSolverOptions' is not recommended. Use 'MainSolverOptions' instead, which is a direct replacement.
IMSSOwarning'IntMasterSolverOptions' is not recommended. Use 'IntMainSolverOptions' instead, which is a direct replacement.
CDFEPOCH2DATEwarning'ConvertEpochToDatenum' is not recommended. With appropriate code changes, use the 'DatetimeType' parameter of 'cdfread' instead.
FEATGPIDwarning'feature('getpid')' is unsupported and not recommended. With appropriate code changes, use the function 'matlabProcessID' instead.
DTRIREPwarning'TriRep' is not recommended. With appropriate code changes, use 'triangulation' instead.
DDELTRIwarning'DelaunayTri' is not recommended. With appropriate code changes, use 'delaunayTriangulation' instead.
DTRIINTwarning'TriScatteredInterp' is not recommended. With appropriate code changes, use 'scatteredInterpolant' instead.
DAPPLUTwarning'applylut' is not recommended. With appropriate code changes, use 'bwlookup' instead.
DBLKPRCwarning'blkproc' is not recommended. With appropriate code changes, use 'blockproc' instead.
CAXISwarning'caxis' is not recommended. Use 'clim' instead, which is a direct replacement.
CDFEPOCHwarning'cdfepoch' is not recommended. With appropriate code changes, use 'cdflib' low-level functions instead.
TODATENUMwarning'todatenum' is not recommended. With appropriate code changes, use the 'DatetimeType' parameter of 'cdfread' instead.
COMMPAMMwarning'comm.PAMModulator' is not recommended. With appropriate code changes, use 'pammod' instead.
COMMPAMDwarning'comm.PAMDemodulator' is not recommended. With appropriate code changes, use 'pamdemod' instead.
COMMSRCwarning'commsrc.pn' is not recommended. With appropriate code changes, use 'comm.PNSequence' instead.
DCPTFwarning'cp2tform' is not recommended. With appropriate code changes, use 'fitgeotrans' instead.
DATNMwarning'datenum' is not recommended. With appropriate code changes, use 'datetime' instead.
DATSTwarning'datestr' is not recommended. With appropriate code changes, use 'datetime' instead.
DETIMwarning'etime' is not recommended. With appropriate code changes, use 'datetime' and the minus operator instead.
DATODwarning'addtodate' is not recommended. With appropriate code changes, use 'datetime', 'duration', and the plus operator instead.
CLOCKwarning'clock' is not recommended. With appropriate code changes, use 'datetime(\
DATEwarning'date' is not recommended. With appropriate code changes, use 'datetime(\
DATICwarning'datetick' is not recommended. With appropriate code changes, use datetime and duration arrays directly in charts. Modify display using 'xtickformat', 'ytickformat', or 'ztickformat'.
WKNUMwarning'weeknum' is not recommended. With appropriate code changes, use 'week' with a 'datetime' input instead.
EMDATEwarning'eomdate' is not recommended. With appropriate code changes, use 'dateshift' with a 'datetime' input instead.
XMDATEwarning'x2mdate' is not recommended. With appropriate code changes, use 'datetime(..., \
MXDATEwarning'm2xdate' is not recommended. With appropriate code changes, use 'exceltime' with a 'datetime' input instead.
MNTHSwarning'months' is not recommended. With appropriate code changes, use 'between' with a 'datetime' input instead.
DGTORDwarning'degtorad' is not recommended. Use 'deg2rad' instead, which is a direct replacement.
RDTODGwarning'radtodeg' is not recommended. Use 'rad2deg' instead, which is a direct replacement.
EZCONTRwarning'ezcontour' is not recommended. With appropriate code changes, use 'fcontour' instead.
EZMESHwarning'ezmesh' is not recommended. With appropriate code changes, use 'fmesh' instead.
EZPLT3warning'ezplot3' is not recommended. With appropriate code changes, use 'fplot3' instead.
EZSURFwarning'ezsurf' is not recommended. With appropriate code changes, use 'fsurf' instead.
EZPOLARwarning'ezpolar' is not recommended. With appropriate code changes, use 'fpolarplot' instead.
COMPASSwarning'compass' is not recommended. With appropriate code changes, use 'compassplot' instead.
DFLIPDIMwarning'flipdim' is not recommended. With appropriate code changes, use 'flip' instead.
DSTRMTwarning'str2mat' is not recommended. With appropriate code changes, use 'char' instead.
DSTSTRwarning'setstr' is not recommended. With appropriate code changes, use 'char' instead.
DSTRVCTwarning'strvcat' is not recommended. With appropriate code changes, use 'char' instead.
DISSTRwarning'isstr' is not recommended. With appropriate code changes, use 'ischar' instead.
DFTSMTXwarning'fts2mtx' is not recommended. With appropriate code changes, use 'fts2mat' instead.
FISWRTwarning'writefis' is not recommended. Use 'writeFIS' instead, which is a direct replacement.
FISADMwarning'addmf' is not recommended. With appropriate code changes, use 'addMF' instead.
HISTwarning'hist' is not recommended. With appropriate code changes, use 'histogram' instead.
HISTCwarning'histc' is not recommended. With appropriate code changes, use 'histcounts' instead.
ROSEwarning'rose' is not recommended. With appropriate code changes, use 'polarhistogram' instead.
H5CLSwarning'H5.close' is not recommended and no longer has any effect. There is no simple replacement for this.
H5OPNwarning'H5.open' is not recommended and no longer has any effect. There is no simple replacement for this.
HDFIwarning'hdf5info' is not recommended. With appropriate code changes, use 'h5info' instead.
HDFWwarning'hdf5write' is not recommended. With appropriate code changes, use 'h5write' instead.
HDFRwarning'hdf5read' is not recommended. With appropriate code changes, use 'h5read' instead.
IM2BWwarning'im2bw' is not recommended. With appropriate code changes, use 'imbinarize' instead.
ISPIXwarning'pixelLabelImageSource' is not recommended. Use 'pixelLabelImageDatastore' instead, which is a direct replacement.
ISAUGwarning'augmentedImageSource' is not recommended. Use 'augmentedImageDatastore' instead, which is a direct replacement.
ISDNSwarning'denoisingImageSource' is not recommended. Use 'denoisingImageDatastore' instead, which is a direct replacement.
IMFREEHwarning'imfreehand' is not recommended. With appropriate code changes, use 'drawfreehand' instead.
IMRECTwarning'imrect' is not recommended. With appropriate code changes, use 'drawrectangle' instead.
IMLINEwarning'imline' is not recommended. With appropriate code changes, use 'drawline' instead.
IMPNTwarning'impoint' is not recommended. With appropriate code changes, use 'drawpoint' instead.
IMPOLYwarning'impoly' is not recommended. With appropriate code changes, use 'drawpolygon' or 'drawpolyline' instead.
IMELLPSwarning'imellipse' is not recommended. With appropriate code changes, use 'drawellipse' or 'drawcircle' instead.
DIMTRNSwarning'imtransform' is not recommended. With appropriate code changes, use 'imwarp' instead.
FILEATTRIBwarning'fileattrib' is not recommended. With appropriate code changes, use 'filePermissions' instead.
CSVRDwarning'csvread' is not recommended. With appropriate code changes, use 'readtable' or 'readmatrix' instead.
DLMRDwarning'dlmread' is not recommended. With appropriate code changes, use 'readtable' or 'readmatrix' instead.
CSVWTwarning'csvwrite' is not recommended. With appropriate code changes, use 'writematrix' instead.
DLMWTwarning'dlmwrite' is not recommended. With appropriate code changes, use 'writematrix' instead.
XLSRDwarning'xlsread' is not recommended. With appropriate code changes, use 'readtable', 'readmatrix' or 'readcell' instead.
XLSWTwarning'xlswrite' is not recommended. With appropriate code changes, use 'writematrix' or 'writecell' instead.
ISDIRwarning'isdir' is not recommended. Use 'isfolder' instead, which is a direct replacement.
DISEQNwarning'isequalwithequalnans' is not recommended. With appropriate code changes, use 'isequaln' instead.
DGCATwarning'gcat' is not recommended. Use 'spmdCat' instead, which is a direct replacement.
DGOPwarning'gop' is not recommended. Use 'spmdReduce' instead, which is a direct replacement.
DGPLUSwarning'gplus' is not recommended. Use 'spmdPlus' instead, which is a direct replacement.
DLABBARRIERwarning'labBarrier' is not recommended. Use 'spmdBarrier' instead, which is a direct replacement.
DLABBROADCASTwarning'labBroadcast' is not recommended. Use 'spmdBroadcast' instead, which is a direct replacement.
DLABINDEXwarning'labindex' is not recommended. Use 'spmdIndex' instead, which is a direct replacement.
DLABPROBEwarning'labProbe' is not recommended. Use 'spmdProbe' instead, which is a direct replacement.
DLABRECEIVEwarning'labReceive' is not recommended. Use 'spmdReceive' instead, which is a direct replacement.
DLABSENDwarning'labSend' is not recommended. Use 'spmdSend' instead, which is a direct replacement.
DLABSENDRECEIVEwarning'labSendReceive' is not recommended. Use 'spmdSendReceive' instead, which is a direct replacement.
DNUMLABSwarning'numlabs' is not recommended. Use 'spmdSize' instead, which is a direct replacement.
AGREDwarning'arcgridread' is not recommended. With appropriate code changes, use 'readgeoraster' instead.
MDFOBJwarning'mdf' is not recommended. With appropriate code changes, use 'mdfInfo', 'mdfChannelGroupInfo' or 'mdfChannelInfo' instead.
DDBMEXwarning'mexdebug' is not recommended. With appropriate code changes, use 'dbmex' instead.
MLNTwarning'mlint' is not recommended. Use 'checkcode' instead, which is a direct replacement.
MNRFITwarning'mnrfit' is not recommended. With appropriate code changes, use 'fitmnr' instead.
MNRVALwarning'mnrval' is not recommended. With appropriate code changes, use 'MultinomialRegression.predict' instead.
MUSTINRANGEwarning'mustBeInRange' is not recommended. With appropriate code changes, use 'mustBeBetween' instead.
DEPNOEwarning'numberofelements' is not recommended. With appropriate code changes, use 'numel' instead.
GAOPTwarning'gaoptimset' is not recommended. With appropriate code changes, use 'optimoptions' instead.
PSOPTwarning'psoptimset' is not recommended. With appropriate code changes, use 'optimoptions' instead.
SAOPTwarning'saoptimset' is not recommended. With appropriate code changes, use 'optimoptions' instead.
PLOTYYwarning'plotyy' is not recommended. With appropriate code changes, use 'yyaxis' instead.
POLARwarning'polar' (MATLAB) is not recommended. Use 'polarplot' instead.
PLBLwarning'polybool' is not recommended. With appropriate code changes, use 'polyshape' instead.
PYVERwarning'pyversion' is not recommended. With appropriate code changes, use 'pyenv' instead.
DQUADwarning'quad' is not recommended. With appropriate code changes, use 'integral' instead.
DQUADLwarning'quadl' is not recommended. With appropriate code changes, use 'integral' instead.
DQUADVwarning'quadv' is not recommended. With appropriate code changes, use 'integral' instead.
DDBLQDwarning'dblquad' is not recommended. With appropriate code changes, use 'integral2' instead.
DTRIQDwarning'triplequad' is not recommended. With appropriate code changes, use 'integral3' instead.
DFIRRCOSwarning'firrcos' is not recommended. With appropriate code changes, use 'rcosdesign' instead.
DFIRGAUSSwarning'firgauss' is not recommended. With appropriate code changes, use 'gaussdesign' instead.
DGAUSSFIRwarning'gaussfir' is not recommended. With appropriate code changes, use 'gaussdesign' instead.
ROIFILLwarning'roifill' is not recommended. With appropriate code changes, use 'regionfill' instead.
DEPBARTwarning'sigwin.barthannwin' is not recommended. With appropriate code changes, use 'barthannwin' instead.
DEPLETTwarning'sigwin.bartlett' is not recommended. With appropriate code changes, use 'bartlett' instead.
DBLKMNwarning'sigwin.blackman' is not recommended. With appropriate code changes, use 'blackman' instead.
DBHRRSwarning'sigwin.blackmanharris' is not recommended. With appropriate code changes, use 'blackmanharris' instead.
DBHMNWNwarning'sigwin.bohmanwin' is not recommended. With appropriate code changes, use 'bohmanwin' instead.
DCHBWNwarning'sigwin.chebwin' is not recommended. With appropriate code changes, use 'chebwin' instead.
DFLTTPWNwarning'sigwin.flattopwin' is not recommended. With appropriate code changes, use 'flattopwin' instead.
DGSWINwarning'sigwin.gausswin' is not recommended. With appropriate code changes, use 'gausswin' instead.
DHMMNGwarning'sigwin.hamming' is not recommended. With appropriate code changes, use 'hamming' instead.
DHANNwarning'sigwin.hann' is not recommended. With appropriate code changes, use 'hann' instead.
DKSERwarning'sigwin.kaiser' is not recommended. With appropriate code changes, use 'kaiser' instead.
DNLWNwarning'sigwin.nuttallwin' is not recommended. With appropriate code changes, use 'nuttallwin' instead.
DPNWNwarning'sigwin.parzenwin' is not recommended. With appropriate code changes, use 'parzenwin' instead.
DRCTWNwarning'sigwin.rectwin' is not recommended. With appropriate code changes, use 'rectwin' instead.
DTYLRWNwarning'sigwin.taylorwin' is not recommended. With appropriate code changes, use 'taylorwin' instead.
DTRNGwarning'sigwin.triang' is not recommended. With appropriate code changes, use 'triang' instead.
DTKYWNwarning'sigwin.tukeywin' is not recommended. With appropriate code changes, use 'tukeywin' instead.
DBURGwarning'spectrum.burg' is not recommended. With appropriate code changes, use 'pburg' instead.
DCOVwarning'spectrum.cov' is not recommended. With appropriate code changes, use 'pcov' instead.
DEVCTRwarning'spectrum.eigenvector' is not recommended. With appropriate code changes, use 'peig' instead.
DMCOVwarning'spectrum.mcov' is not recommended. With appropriate code changes, use 'pmcov' instead.
DMTMwarning'spectrum.mtm' is not recommended. With appropriate code changes, use 'pmtm' instead.
DMUSICwarning'spectrum.music' is not recommended. With appropriate code changes, use 'pmusic' instead.
DPRDGRMwarning'spectrum.periodogram' is not recommended. With appropriate code changes, use 'periodogram' instead.
DWELCHwarning'spectrum.welch' is not recommended. With appropriate code changes, use 'pwelch' instead.
DYULEARwarning'spectrum.yulear' is not recommended. With appropriate code changes, use 'pyulear' instead.
SIMVARIANTwarning'Simulink.Variant' is not recommended. Use 'Simulink.VariantExpression' instead, which is a direct replacement.
COMBNKwarning'combnk' is not recommended. With appropriate code changes, use 'nchoosek' instead.
NANMEANwarning'nanmean' is not recommended. With appropriate code changes, use 'mean' instead.
NANMEDIANwarning'nanmedian' is not recommended. With appropriate code changes, use 'median' instead.
NANMAXwarning'nanmax' is not recommended. With appropriate code changes, use 'max' instead.
NANMINwarning'nanmin' is not recommended. With appropriate code changes, use 'min' instead.
NANSTDwarning'nanstd' is not recommended. With appropriate code changes, use 'std' instead.
NANVARwarning'nanvar' is not recommended. With appropriate code changes, use 'var' instead.
NANCOVwarning'nancov' is not recommended. With appropriate code changes, use 'cov' instead.
NANSUMwarning'nansum' is not recommended. With appropriate code changes, use 'sum' instead.
CELLDTSETwarning'cell2dataset' is not recommended. With appropriate code changes, use 'cell2table' instead.
DTSETwarning'dataset' is not recommended. With appropriate code changes, use 'table' instead.
MATDTSETwarning'mat2dataset' is not recommended. With appropriate code changes, use 'array2table' instead.
STRUCTDTSETwarning'struct2dataset' is not recommended. With appropriate code changes, use 'struct2table' instead.
FSTRwarning'findstr' is not recommended. With appropriate code changes, use 'strfind' instead.
DSTRRDwarning'strread' is not recommended. With appropriate code changes, use 'textscan' instead.
DTXTRDwarning'textread' is not recommended. With appropriate code changes, use 'textscan' instead.
SUBIMGNRwarning'subimage' is not recommended. With appropriate code changes, use 'imshow' instead.
URLWRwarning'urlwrite' is not recommended. With appropriate code changes, use 'websave' instead.
URLRDwarning'urlread' is not recommended. With appropriate code changes, use 'webread' or 'webwrite' instead.
VEMATwarning'vec2mat' is not recommended. With appropriate code changes, use 'reshape' instead.
MDFRDwarning'read' method of 'mdf' class is not recommended. With appropriate code changes, use 'mdfRead' function instead.
MDFCHLwarning'channelList' method of 'mdf' class is not recommended. With appropriate code changes, use 'mdfChannelInfo' function instead.
MDFSVAwarning'saveAttachment' method of 'mdf' class is not recommended. With appropriate code changes, use 'mdfSaveAttachment' function instead.
MINELVwarning'MinElevationAngle' is not recommended. Use 'MaskElevationAngle' instead, which is a direct replacement when specified as scalar values. Row vector values must be transposed.

Examples ​

Incorrect ​

matlab
data = csvread('data.csv');   % CSVRD — use readmatrix instead
if isdir(folder)              % ISDIR — use isfolder instead
    disp('folder exists');
end

Correct ​

matlab
data = readmatrix('data.csv');
if isfolder(folder)
    disp('folder exists');
end

Configuration ​

toml
[lint.categories]
suggested-improvements = "info"

[lint.rules]
SUGGESTED_IMPROVEMENTS = "off"

See Configuration for the full parameter list and rules.md for the complete rule inventory.

Copyright © 2026 Mark Shui Hu