0% found this document useful (0 votes)
40 views

2.matlab Env

Uploaded by

tranduc9279
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

2.matlab Env

Uploaded by

tranduc9279
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 792

MATLAB®

Desktop Tools and Development Environment

R2024b
How to Contact MathWorks

Latest news: www.mathworks.com

Sales and services: www.mathworks.com/sales_and_services

User community: www.mathworks.com/matlabcentral

Technical support: www.mathworks.com/support/contact_us

Phone: 508-647-7000

The MathWorks, Inc.


1 Apple Hill Drive
Natick, MA 01760-2098
MATLAB® Desktop Tools and Development Environment
© COPYRIGHT 1984–2024 by The MathWorks, Inc.
The software described in this document is furnished under a license agreement. The software may be used or copied
only under the terms of the license agreement. No part of this manual may be photocopied or reproduced in any form
without prior written consent from The MathWorks, Inc.
FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by, for, or through
the federal government of the United States. By accepting delivery of the Program or Documentation, the government
hereby agrees that this software or documentation qualifies as commercial computer software or commercial computer
software documentation as such terms are used or defined in FAR 12.212, DFARS Part 227.72, and DFARS 252.227-7014.
Accordingly, the terms and conditions of this Agreement and only those rights specified in this Agreement, shall pertain
to and govern the use, modification, reproduction, release, performance, display, and disclosure of the Program and
Documentation by the federal government (or other entity acquiring for or through the federal government) and shall
supersede any conflicting contractual terms or conditions. If this License fails to meet the government's needs or is
inconsistent in any respect with federal procurement law, the government agrees to return the Program and
Documentation, unused, to The MathWorks, Inc.
Trademarks
MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See
www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be
trademarks or registered trademarks of their respective holders.
Patents
MathWorks products are protected by one or more U.S. patents. Please see www.mathworks.com/patents for
more information.
Revision History
June 2004 First printing New for MATLAB 7.0 (Release 14). Formerly part of
Using MATLAB.
October 2004 Online only Revised for MATLAB 7.0.1 (Release 14SP1)
March 2005 Online only Revised for MATLAB 7.0.4 (Release 14SP2)
March 2005 Second printing Revised for MATLAB 7.0.4 (Release 14SP2)
June 2005 Third printing Minor revision for MATLAB 7.0.4 (Release 14SP2)
September 2005 Online only Revised for MATLAB 7.1 (Release 14SP3)
March 2006 Online only Revised for MATLAB 7.2 (Release 2006a)
September 2006 Online only Revised for MATLAB 7.3 (Release 2006b)
March 2007 Online only Revised for MATLAB 7.4 (Release 2007a)
September 2007 Online only Revised for MATLAB 7.5 (Release 2007b)
March 2008 Online only Revised for MATLAB 7.6 (Release 2008a)
October 2008 Online only Revised for MATLAB 7.7 (Release 2008b)
March 2009 Online only Revised for MATLAB 7.8 (Release 2009a)
September 2009 Online only Revised for MATLAB 7.9 (Release 2009b)
March 2010 Online only Revised for MATLAB 7.10 (Release 2010a)
September 2010 Online only Revised for MATLAB 7.11 (Release 2010b)
April 2011 Online only Revised for MATLAB 7.12 (Release 2011a)
September 2011 Online only Revised for MATLAB 7.13 (Release 2011b)
March 2012 Online only Revised for MATLAB 7.14 (Release 2012a)
September 2012 Online only Revised for MATLAB 8.0 (Release 2012b)
March 2013 Online only Revised for MATLAB 8.1 (Release 2013a)
September 2013 Online only Revised for MATLAB 8.2 (Release 2013b)
March 2014 Online only Revised for MATLAB 8.3 (Release 2014a)
October 2014 Online only Revised for MATLAB 8.4 (Release 2014b)
March 2015 Online only Revised for MATLAB 8.5 (Release 2015a)
September 2015 Online only Revised for MATLAB 8.6 (Release 2015b)
October 2015 Online only Rereleased for MATLAB 8.5.1 (Release 2015aSP1)
March 2016 Online only Revised for MATLAB 9.0 (Release 2016a)
September 2016 Online only Revised for MATLAB 9.1 (Release 2016b)
March 2017 Online only Revised for MATLAB 9.2 (Release 2017a)
September 2017 Online only Revised for MATLAB 9.3 (Release 2017b)
March 2018 Online only Revised for MATLAB 9.4 (Release 2018a)
September 2018 Online only Revised for MATLAB 9.5 (Release 2018b)
March 2019 Online only Revised for MATLAB 9.6 (Release 2019a)
September 2019 Online only Revised for MATLAB 9.7 (Release 2019b)
March 2020 Online only Revised for MATLAB 9.8 (Release 2020a)
September 2020 Online Only Revised for MATLAB 9.9 (Release 2020b)
March 2021 Online Only Revised for MATLAB 9.10 (Release 2021a)
September 2021 Online Only Revised for MATLAB 9.11 (Release 2021b)
March 2022 Online Only Revised for MATLAB 9.12 (Release 2022a)
September 2022 Online Only Revised for MATLAB 9.13 (Release 2022b)
March 2023 Online Only Revised for MATLAB 9.14 (Release 2023a)
September 2023 Online Only Revised for Version 23.2 (R2023b)
March 2024 Online Only Revised for Version 24.1 (R2024a)
September 2024 Online Only Revised for Version 24.2 (R2024b)
Contents

Startup and Shutdown


1
Start MATLAB on Windows Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Select MATLAB Icon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Call matlab from Windows System Command Line . . . . . . . . . . . . . . . . . . 1-2
Call matlab from MATLAB Command Prompt . . . . . . . . . . . . . . . . . . . . . . 1-2
Open File Associated with MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Select MATLAB Executable from Windows Explorer Tool . . . . . . . . . . . . . 1-3

Associate .mat Files with MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4

Start MATLAB on Linux Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5


Startup Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Execute MATLAB Script from Remote ssh Login . . . . . . . . . . . . . . . . . . . . 1-5

Start MATLAB on macOS Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7


Start from Applications Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
Start from Terminal Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
MATLAB or MATLAB Runtime for Apple Silicon Requires Java Runtime . . 1-7

Exit MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9


Ways to Quit or Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Confirm Exiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Run Script When Exiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10

Recovering Data After Abnormal Termination . . . . . . . . . . . . . . . . . . . . . 1-11

Crash Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12


Locating Crash Logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12

When MATLAB Terminates Unexpectedly . . . . . . . . . . . . . . . . . . . . . . . . . 1-13


MathWorks Crash Reporter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
MathWorks Crash Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13

Specifying Java Startup Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14

MATLAB Startup Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15


Default Startup Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Change Startup Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
userpath as Initial Working Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16

Commonly Used Startup Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18

Specify Startup Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19


Startup Options from Operating System Prompt . . . . . . . . . . . . . . . . . . . 1-19
Startup Options in Shortcut on Windows Systems . . . . . . . . . . . . . . . . . . 1-19

v
Startup Options in MATLAB Startup File . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
Passing Perl Variables on Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
Startup and Calling Java Software from MATLAB . . . . . . . . . . . . . . . . . . 1-21

Toolbox Path Caching in MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22


About Toolbox Path Caching in MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
Using the Cache File Upon Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
Updating the Cache and Cache File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22

Remove canberra-gtk-module and pk-gtk-module Messages . . . . . . . . . 1-24


Red Hat Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24
Debian-Based Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24

Desktop
2
Zoom and Change Desktop Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Change Font Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Change Font Name and Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Advanced Customization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Add Additional Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5

Change Desktop Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7


Change Text and Background Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
Change Syntax Highlighting Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
Change Output Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
Change Programming Tools Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
MATLAB Online Only: Select Theme . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10

Customize MATLAB Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12


Quick Access Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
Current Folder Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
Toolbar Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12

Change Desktop Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14


MATLAB Online Desktop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
Select Preconfigured Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
Open Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16
Minimize Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
Hide Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18
Undock Tools and Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-19
Reorder and Tile Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-19
Save Desktop Layouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21

Accessibility in MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23


Navigate Using the Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
Work with a Screen Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23
Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24
Change MATLAB Desktop Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25
Increase Clarity of Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-26
Convert Data to Sound Using Sonification . . . . . . . . . . . . . . . . . . . . . . . . 2-29

vi Contents
Use Keyboard Shortcuts to Navigate MATLAB . . . . . . . . . . . . . . . . . . . . . 2-30
Installed MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-30
MATLAB Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-31
Navigate Figures in MATLAB Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-32
Additional Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-33

Use a Screen Reader in MATLAB Online . . . . . . . . . . . . . . . . . . . . . . . . . . 2-35


Screen Reader Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-35
Navigate MATLAB Using a Screen Reader . . . . . . . . . . . . . . . . . . . . . . . 2-36
Enter Statements in the Command Window Using a Screen Reader . . . . 2-37
Create Scripts Using a Screen Reader . . . . . . . . . . . . . . . . . . . . . . . . . . 2-38
Create Live Scripts Using a Screen Reader . . . . . . . . . . . . . . . . . . . . . . . 2-39
Open and Close Scripts and Live Scripts Using a Screen Reader . . . . . . . 2-41
Explore Plotted Data Using a Screen Reader . . . . . . . . . . . . . . . . . . . . . 2-41
Delete Files Using a Screen Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-43

Customize Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-45


View Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-45
Customize Keyboard Shortcuts for Individual Actions . . . . . . . . . . . . . . . 2-46
Manage Sets of Keyboard Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-48

Set Print Options for Command Window and Editor . . . . . . . . . . . . . . . . 2-50


Specify Layout Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-50
Add Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-50
Change Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-52

Web Browsers and MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-53


About Web Browsers and MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-53
Specify Proxy Server Settings for Connecting to the Internet . . . . . . . . . 2-54
Specify the System Web Browser for Linux Platforms . . . . . . . . . . . . . . . 2-55

Manage Your Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-56


Update Current Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-56
Activate Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-56
Deactivate Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-57
Link a License to Your Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-58
Get a Trial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-58

Update an Existing Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-60


Update from Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-60
Check for Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-60

macOS Platform Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-61


Mouse Instructions and macOS Platforms . . . . . . . . . . . . . . . . . . . . . . . . 2-61
Navigating Within the MATLAB Root Folder on macOS Platforms . . . . . . 2-61
MATLAB Dock Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-61

Where MATLAB Stores Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-63


Temporary Preferences Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-63
Effects of Installation and Deinstallation on the Preferences Folder . . . . 2-63

Import Preferences from Other Releases . . . . . . . . . . . . . . . . . . . . . . . . . 2-65


Use Default Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-65

Web Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-67

vii
Entering Commands
3
Enter Statements in Command Window . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2

Find Functions to Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4

Format Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6


Format Line Spacing in Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Format Floating-Point Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Wrap Lines of Code to Fit Window Width . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Suppress Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
View Output by Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Clear the Command Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8

Stop Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9

Find Text in Command Window or History . . . . . . . . . . . . . . . . . . . . . . . . 3-10


Find Text in the Command Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
Find Text in the Command History Window . . . . . . . . . . . . . . . . . . . . . . . 3-11

Rerun Favorite Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13


Create and Run Favorite Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13
Organize Favorite Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14

Set Command Window Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15


General Preferences for the Command Window . . . . . . . . . . . . . . . . . . . 3-15
Command Window Automatic Completions Preferences . . . . . . . . . . . . . 3-16

Set Keyboard Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18

Check Syntax and Autocomplete Code as You Type . . . . . . . . . . . . . . . . . 3-19


Syntax Highlighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Delimiter Matching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Code Suggestions and Completions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20

Set Command History Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24


Change the Command History Date Format . . . . . . . . . . . . . . . . . . . . . . 3-25

Help and Product Information


4
Ways to Get Function Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Search the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2

MATLAB Code Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4


Open Examples in MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4

Contact Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6

Help Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8

viii Contents
Translated Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Change Documentation Language in your System Web Browser . . . . . . . 4-10
Change Documentation Language for Installed Documentation . . . . . . . . 4-10

Information About Your Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12

Workspace Browser and Variable Editor


5
Create and Edit Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Create Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
View Workspace Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
View Variable Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
Edit Variable Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Resize or Reshape Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Copy, Rename, and Delete Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
Navigate Variable Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9

Display Statistics in the Workspace Browser . . . . . . . . . . . . . . . . . . . . . . 5-10


Improve Workspace Browser Performance During Statistical Calculations
..................................................... 5-10
Include or Exclude NaN Values in Statistical Calculations . . . . . . . . . . . . 5-10

Save and Load Workspace Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12


Save Workspace Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
Load Workspace Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
View Contents of MAT-File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13

Workspace and Variable Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14


Workspace Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
Variables Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15

Managing Files in MATLAB


6
Find Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Simple Search for File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Advanced Search for Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Advanced Search in MATLAB Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4

Compare Files and Folders and Merge Files . . . . . . . . . . . . . . . . . . . . . . . . 6-6


Comparison Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
Compare Folders and Zip Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
Compare Text Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-11
Merge Text Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13
Compare Binary Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Compare Other File Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15
Additional Comparison Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15
Comparison Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15

ix
Compare and Merge Live Scripts and Functions . . . . . . . . . . . . . . . . . . . 6-17
Select Files to Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-17
Explore Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-17
Merge Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-19

Compare and Merge Apps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22


Select Files to Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22
Explore Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22
Merge Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-24

Compare and Merge MAT-Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26


Select Files to Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26
Explore Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26
Compare Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-28
Merge Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-28

Compare XML Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-30


Choose XML Files to Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-30
Change Comparison Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-31
Navigate the XML Comparison Report . . . . . . . . . . . . . . . . . . . . . . . . . . 6-31
Save Comparison Log Files in a Zip File . . . . . . . . . . . . . . . . . . . . . . . . . 6-32
Export Results to the Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-33

Manage Files and Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-35


Manage Files and Folders in MATLAB Online . . . . . . . . . . . . . . . . . . . . . 6-36

Files and Folders That MATLAB Accesses . . . . . . . . . . . . . . . . . . . . . . . . . 6-38


Where Does MATLAB Look for Files? . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-38
Files and Folders You Should Add to the Search Path . . . . . . . . . . . . . . . 6-38
When Multiple Files Have the Same Name . . . . . . . . . . . . . . . . . . . . . . . 6-38
Locations of MathWorks Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-39

Current Folder Browser Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-40

Specify File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-42


Construct Valid Path and File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-42
Case Sensitivity of File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-44

Create and Extract from Zip Archives . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-45


Create a Zip Archive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-45
Add Files to a Zip Archive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-45
Extract Files from a Zip Archive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-45
Compare Zip Archive to Unzipped Files . . . . . . . . . . . . . . . . . . . . . . . . . 6-46

What Is the MATLAB Search Path? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-47


userpath Folder on the Search Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-47
MATLABPATH Environment Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-47
Determine If Files and Folders Are on the Search Path . . . . . . . . . . . . . . 6-48
The Search Path Is Not the System Path . . . . . . . . . . . . . . . . . . . . . . . . . 6-49
How MATLAB Stores the Search Path . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-49

Change Folders on Search Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-50


Add or Remove Folders on the Search Path Programmatically . . . . . . . . . 6-50
Change Folders on Search Path Interactively . . . . . . . . . . . . . . . . . . . . . 6-50
Change Folders Using Current Folder Browser . . . . . . . . . . . . . . . . . . . . 6-52

x Contents
Change Folders on Search Path Using MATLAB Editor . . . . . . . . . . . . . . 6-53

Use Search Path with Different MATLAB Installations . . . . . . . . . . . . . . 6-54

Add Folders to the MATLAB Search Path at Startup . . . . . . . . . . . . . . . . 6-55


Use a startup.m File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-55
Set the MATLABPATH Environment Variable . . . . . . . . . . . . . . . . . . . . . . 6-55

Assign userpath as Startup Folder (Macintosh or UNIX) . . . . . . . . . . . . . 6-57

Resolve Issue: MATLAB Did Not Appear to Successfully Set the Search
Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-58
Issue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-58
Possible Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-58

Errors When Updating Folders on Search Path . . . . . . . . . . . . . . . . . . . . 6-61

Troubleshoot Invalid or Unresponsive Windows Change Notification


Handles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-62
Control How MATLAB Detects Changes in Files and Folders . . . . . . . . . . 6-62
Clear Functions from Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-63
Configure Change Notification Handle Warnings . . . . . . . . . . . . . . . . . . 6-63

Editor Preferences
7
Editor/Debugger Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
General Preferences for the Editor/Debugger . . . . . . . . . . . . . . . . . . . . . . 7-2
Editor/Debugger Display Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
Editor/Debugger Tab Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
Editor/Debugger Language Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
Editor/Debugger Code Folding Preferences . . . . . . . . . . . . . . . . . . . . . . . 7-8
Editor/Debugger Backup Files Preferences . . . . . . . . . . . . . . . . . . . . . . . . 7-9
Editor/Debugger Autoformatting Preferences . . . . . . . . . . . . . . . . . . . . . 7-10
Editor/Debugger Automatic Completions Preferences . . . . . . . . . . . . . . . 7-11
Editor/Debugger Find and Replace Preferences . . . . . . . . . . . . . . . . . . . 7-14
Editor/Debugger Indenting Preferences . . . . . . . . . . . . . . . . . . . . . . . . . 7-15
Editor/Debugger Saving Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-16

Code Analyzer Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-17


Code Analyzer Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-17
Search for Messages in the Code Analyzer Preferences . . . . . . . . . . . . . 7-18

Configure Code Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-21


Sample Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-21
Configuration File Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-22
Base Configuration Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-23
Add Custom Checks for Existing Functions . . . . . . . . . . . . . . . . . . . . . . . 7-23
Add Custom Checks for Specified Variable Names . . . . . . . . . . . . . . . . . 7-24
Configure Maximum Input and Output Arguments . . . . . . . . . . . . . . . . . 7-24
Configure Maximum Characters per Line, Lines in a Function, and Nested
Control Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-25

xi
Modify Existing Code Analyzer Checks . . . . . . . . . . . . . . . . . . . . . . . . . . 7-25

Index of Code Analyzer Checks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-27


Incomplete Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-27
Syntax Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-29
Language Specification Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-34
Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-50
Custom Checks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-55
Compatibility Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-58
Forward Compatibility Considerations . . . . . . . . . . . . . . . . . . . . . . . . . 7-189
Good Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-190
Unset Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-204
Unused Constructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-204
Suggested Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-206
Readability Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-239
Formatting Suggestions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-242
Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-243
MATLAB for Code Generation Messages . . . . . . . . . . . . . . . . . . . . . . . . 7-248
Fixed-Point Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-250
MATLAB Compiler (Deployment) Messages . . . . . . . . . . . . . . . . . . . . . 7-250
System Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-251
Unsupported Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-252
Behavior Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-256
Behavior Changes with Low Reliability Messages . . . . . . . . . . . . . . . . . 7-257
Upcoming Behavior Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-316
Upcoming Behavior Changes with Low Reliability Messages . . . . . . . . . 7-317

Add-Ons
8
Get and Manage Add-Ons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
Get Add-Ons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
Install Add-Ons from File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
Default Add-On Installation Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
Manage Add-Ons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
Update Add-Ons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
Run Apps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
Get and Manage Add-Ons Using the Add-Ons Panel in MATLAB Online . . . 8-4

Configure Add-Ons After Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7


Install Supported Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7
Additional Configuration Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7

Internationalization
9
Set Locale and Display Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-2
Unsupported Locale Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-3
Supported Character Sets and Encodings . . . . . . . . . . . . . . . . . . . . . . . . . 9-3

xii Contents
Localized Formats in Current Folder Browser . . . . . . . . . . . . . . . . . . . . . . 9-3

Limitations to International Character Support . . . . . . . . . . . . . . . . . . . . . 9-4

Unexpected Behavior on macOS Platforms . . . . . . . . . . . . . . . . . . . . . . . . . 9-5

Characters Incorrectly Displayed on Windows Systems . . . . . . . . . . . . . . . 9-6

Numbers Display Period for Decimal Point for All Locales . . . . . . . . . . . . 9-7

Script Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8

Change the MATLAB Desktop Language . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-9

X Servers and International Keyboard Layouts . . . . . . . . . . . . . . . . . . . . . 9-11

MATLAB Online
10
Access Files in MATLAB Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Upload and Download Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Preview Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-2

Manage Windows in MATLAB Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-5


Automatically Collapse and Expand Open Windows . . . . . . . . . . . . . . . . . 10-5
Minimize and Restore Open Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-5

Cloud Storage
11
Use MATLAB Online to Access Files in Microsoft OneDrive . . . . . . . . . . 11-2
Connect to OneDrive Account and Access Files . . . . . . . . . . . . . . . . . . . . 11-2
Disconnect OneDrive Account from MATLAB Online . . . . . . . . . . . . . . . . 11-3
Granting MATLAB Permission to Your OneDrive Account . . . . . . . . . . . . 11-4

Open in MATLAB Online from GitHub . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5


Create Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
Share Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5

MATLAB Drive
12
Install MATLAB Connector for MATLAB Drive . . . . . . . . . . . . . . . . . . . . . 12-2
Install Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-2
Uninstall Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-2

xiii
Use MATLAB Connector to Manage Your Files . . . . . . . . . . . . . . . . . . . . . 12-4
Start MATLAB Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
Open MATLAB Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
View Status and Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
View Recent File Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5
Manage File Conflicts and Sync Issues . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5
Manage File Syncing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-6
Stop MATLAB Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-7

MATLAB Drive Preferences and Account Information . . . . . . . . . . . . . . . 12-8


Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-8
Storage Quota . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-8

Access Files in Your MATLAB Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-10


Access Files in MATLAB Drive Online . . . . . . . . . . . . . . . . . . . . . . . . . . 12-10
Access Files on Your System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-11

Add Files to Your MATLAB Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-13


Sync Exclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-13

Share Folders Using MATLAB Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-15


Share Folder by Personal Invitation . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-15
Share Folder With View-Only Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-17
Access Folders Shared with You . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-18
Manage Shared Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-20
Sharing Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-23

Restore Deleted Files in MATLAB Drive Online . . . . . . . . . . . . . . . . . . . 12-25

Post-Installation Tasks
13
Configure the MATLAB Startup Accelerator . . . . . . . . . . . . . . . . . . . . . . . 13-2
Change When the MATLAB Startup Accelerator Runs . . . . . . . . . . . . . . . 13-2

New Desktop for MATLAB (Beta)


14
Get Started with the New Desktop for MATLAB (Beta) . . . . . . . . . . . . . . 14-2
Dark Theme Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-2
Updated Desktop Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-3
Enhanced Figure Window Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . 14-4
Expanded Search Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-5
New Plain Text File Format for Live Scripts . . . . . . . . . . . . . . . . . . . . . . 14-6
Debugger Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-8
Source Control Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-8
Enhanced Workflows for MATLAB Projects . . . . . . . . . . . . . . . . . . . . . . 14-10
Screen Reader Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-11
Extension Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-11

xiv Contents
Return to Original Desktop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-12
Known Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-12

Extend MATLAB Using Extension Points (Beta) . . . . . . . . . . . . . . . . . . . 14-13


Get Started with Using Extension Points . . . . . . . . . . . . . . . . . . . . . . . . 14-13
Add Items to Files Panel Context Menu . . . . . . . . . . . . . . . . . . . . . . . . . 14-14
Add Items to Quick Access Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-16
Customize How Files Display in MATLAB . . . . . . . . . . . . . . . . . . . . . . . 14-17

xv
1

Startup and Shutdown

• “Start MATLAB on Windows Platforms” on page 1-2


• “Associate .mat Files with MATLAB” on page 1-4
• “Start MATLAB on Linux Platforms” on page 1-5
• “Start MATLAB on macOS Platforms” on page 1-7
• “Exit MATLAB” on page 1-9
• “Recovering Data After Abnormal Termination” on page 1-11
• “Crash Reporting” on page 1-12
• “When MATLAB Terminates Unexpectedly” on page 1-13
• “Specifying Java Startup Options” on page 1-14
• “MATLAB Startup Folder” on page 1-15
• “Commonly Used Startup Options” on page 1-18
• “Specify Startup Options” on page 1-19
• “Toolbox Path Caching in MATLAB” on page 1-22
• “Remove canberra-gtk-module and pk-gtk-module Messages” on page 1-24
1 Startup and Shutdown

Start MATLAB on Windows Platforms


Choose one of these ways to start MATLAB.

• “Select MATLAB Icon” on page 1-2


• “Call matlab from Windows System Command Line” on page 1-2
• “Call matlab from MATLAB Command Prompt” on page 1-2
• “Open File Associated with MATLAB” on page 1-3
• “Select MATLAB Executable from Windows Explorer Tool” on page 1-3

When you start MATLAB, it automatically adds the userpath folder to the search path. MATLAB also
reopens any desktop components that were open when you last shut down.

To customize startup, see “Specify Startup Options” on page 1-19.

The MATLAB startup folder is the folder you are in when you get the MATLAB prompt. To change the
default startup folder, see “MATLAB Startup Folder” on page 1-15.

If you have trouble starting MATLAB, then see “Installation and Licensing”.

Select MATLAB Icon


On Microsoft Windows platforms, double-click the MATLAB icon. With this option, the startup folder
is the last working folder from the previous MATLAB session or the custom path specified in the
Initial working folder preference. The Initial working folder preference is located in the General
Preferences page of the Preferences window.

You also can specify a custom startup folder in the MATLAB shortcut icon using the Start in field.
However, this technique is the same as setting a custom path in the Initial working folder
preference. If you enter an invalid path in the Start in field, then the startup folder is unpredictable.
To set a custom path in the Start in field:
1 Right-click the shortcut icon for MATLAB
and select
Properties from the context menu. The Properties dialog box for MATLAB opens to the
Shortcut pane.
2 In the Start in field, type the full path to a folder on your system, and then click OK.

Call matlab from Windows System Command Line


From the Windows system prompt, type matlab.

The startup folder is the folder in which you run the matlab command. To use the folder specified by
the Initial working folder preference, type:
matlab -useStartupFolderPref

Call matlab from MATLAB Command Prompt


If you start another MATLAB session from within MATLAB, then the startup folder is folder where you
call the command:

1-2
Start MATLAB on Windows Platforms

!matlab

To display the startup folder, type pwd before calling matlab.

Open File Associated with MATLAB


The MATLAB installer sets up associations between certain file types and MathWorks® products.
MATLAB starts when you open one of those files. The startup folder is the folder containing the file.

For example, using the Windows Explorer tool, double-click a file with a .m extension. MATLAB starts
and opens the file in the MATLAB Editor.

Select MATLAB Executable from Windows Explorer Tool


When you double-click the matlab.exe file from the Windows Explorer, the startup folder is one of
the following:

• The last working folder from the previous MATLAB session.


• The custom path specified in the Initial working folder preference.

See Also
matlab (Windows) | userpath | Preferences

More About
• “Specify Startup Options” on page 1-19
• “MATLAB Startup Folder” on page 1-15
• “Installation and Licensing”

1-3
1 Startup and Shutdown

Associate .mat Files with MATLAB


To associate a .mat extension type with MATLAB, use Microsoft Windows Default Programs. For
information about using this option, see your Windows documentation.

By default, MATLAB associates the latest installed version to MATLAB file types. However, once you
use the Windows Control Panel or the file manager to associate a MATLAB version to a file type, you
must manually re-associate the type with each new installation of MATLAB. If you want to return to
the default behavior, then uninstall every MATLAB that is manually associated to any MATLAB file
type. Then reinstall the latest MATLAB release.

1-4
Start MATLAB on Linux Platforms

Start MATLAB on Linux Platforms


To view supported Linux distributions, see Linux System Requirements.

To start MATLAB at the operating system prompt on Linux platforms, call matlab from the bin
folder in which you installed MATLAB. For example, if you installed MATLAB R2024b in the default
installation folder, then type:

/usr/local/MATLAB/R2024b/bin/matlab

If you set up symbolic links during the installation procedure, then type matlab from the folder you
specified.

After starting MATLAB, the desktop opens. Desktop components that were open when you last shut
down MATLAB reopen. If the DISPLAY environment variable is not set or is invalid, then the desktop
does not display.

MATLAB automatically adds the userpath folder to the search path.

To customize startup, see “Specify Startup Options” on page 1-19.

The MATLAB startup folder is the folder you are in when you get the MATLAB prompt. To change the
default startup folder, see “MATLAB Startup Folder” on page 1-15.

If you have trouble starting MATLAB, then see “Installation and Licensing”.

Startup Folder
On Linux platforms, the default startup folder is the folder from which you started MATLAB.

To specify the userpath as the startup folder, set the value of the environment variable
MATLAB_USE_USERWORK to 1 before startup. By default, userpath is userhome/Documents/
MATLAB. To specify a different folder for userpath, and for other options, call the MATLAB
userpath function.

Execute MATLAB Script from Remote ssh Login


To execute a MATLAB script hello.m via a remote ssh login, in a terminal window type:

ssh local.foo.com matlab -nodisplay -nojvm < hello.m

The ssh command pipes hello.m to MATLAB running on the remote host local.foo.com. The -
nodisplay option starts MATLAB without the desktop.

See Also
matlab (Linux) | userpath | matlabroot | Preferences

More About
• “Specify Startup Options” on page 1-19
• “MATLAB Startup Folder” on page 1-15

1-5
1 Startup and Shutdown

• “Installation and Licensing”

1-6
Start MATLAB on macOS Platforms

Start MATLAB on macOS Platforms


To view supported macOS operating systems, see Mac System Requirements.

Choose one of these ways to start MATLAB.

• “Start from Applications Folder” on page 1-7


• “Start from Terminal Window” on page 1-7

When you start MATLAB, it automatically adds the userpath folder to the search path. MATLAB also
reopens any desktop components that were open when you last shut down.

To customize startup, see “Specify Startup Options” on page 1-19.

The MATLAB startup folder is the folder you are in when you get the MATLAB prompt. To change the
default startup folder, see “MATLAB Startup Folder” on page 1-15.

If MATLAB fails to start due to a problem with required system components such as Java® software,
then diagnostics run automatically. The software advises you of the problem and offers suggestions to
correct it. For information about other startup problems, see “Installation and Licensing”.

Start from Applications Folder


• Double-click the MATLAB icon in the matlabroot folder. Replace matlabroot with the name of
the folder in which you installed MATLAB.

The startup folder is the last working folder from the previous MATLAB session or the custom path
specified in the Initial working folder preference. The Initial working folder preference is located
in the General Preferences page of the Preferences window.

Start from Terminal Window


• To start from the Terminal window, you need to know the value of matlabroot, the full path to
the folder where MATLAB is installed. If you do not know the path, then open MATLAB from the
Applications folder, type matlabroot, and note the value. Exit MATLAB.
• Open a Terminal window.
• Navigate to the following location from your terminal window:

matlabroot/bin
• Start MATLAB.

./matlab

The startup folder is the MATLAB installation folder.

MATLAB or MATLAB Runtime for Apple Silicon Requires Java Runtime


When MATLAB or MATLAB Runtime for Apple silicon does not find a supported JRE™, the program
displays a dialog box about requiring a Java Runtime. For information about this requirement and the
recommended solution, see https://www.mathworks.com/support/requirements/apple-
silicon.html.

1-7
1 Startup and Shutdown

See Also
matlab (macOS) | userpath | matlabroot | Preferences

More About
• “Specify Startup Options” on page 1-19
• “MATLAB Startup Folder” on page 1-15
• “Installation and Licensing”

1-8
Exit MATLAB

Exit MATLAB

In this section...
“Ways to Quit or Exit” on page 1-9
“Confirm Exiting” on page 1-9
“Run Script When Exiting” on page 1-10

Ways to Quit or Exit


At any time, do one of the following:

• Click the close button


on the MATLAB
desktop.
• Click on the left side of the desktop title bar and select Close.
• Type quit or exit at the command prompt.

MATLAB closes after:

• Prompting you to confirm exiting on page 1-9, if that preference is specified.


• Prompting you to save any unsaved files
• Running a script when exiting on page 1-10, if the finish.m script exists in the current folder or
on the search path.

Confirm Exiting
To set a preference that displays a confirmation dialog box when you exit:

1 On the Home tab, in the Environment section, click Preferences.


2 Select MATLAB > General > Confirmation Dialogs.
3 Select the Confirm before exiting MATLAB check box and click OK.

MATLAB then displays the following dialog box when you exit.

You can also display your own exit confirmation dialog box using a finish.m script, as described in
the following section.

1-9
1 Startup and Shutdown

Run Script When Exiting


When MATLAB exits, it runs the script finish.m, if the file exists in the current folder or anywhere
on the search path. You create the script containing statements such as saving the workspace or
displaying a confirmation dialog box. For more information, see finish.

There are two sample files in matlabroot/toolbox/local that you can use as the basis for your
own finish.m file:

• finishsav.m — Includes a save function so the workspace is saved to a MAT-file.


• finishdlg.m — Displays a confirmation dialog box that allows you to cancel quitting.

See Also
exit | quit | finish | Preferences

More About
• “Recovering Data After Abnormal Termination” on page 1-11
• “Crash Reporting” on page 1-12
• “Installation and Licensing”

1-10
Recovering Data After Abnormal Termination

Recovering Data After Abnormal Termination


If MATLAB terminates unexpectedly, then you might lose information. After you start MATLAB again,
you can try the following suggestions to recover some of the information. Some of these suggestions
refer to actions you need to take during the session before MATLAB terminates. If you did not take
those actions, then consider regularly performing them to help you recover from any future abnormal
terminations you might experience.

• Use the Command History or the file on which it is based, history.m, to run statements from the
previous session. You might be able to recreate data as it was before the termination.
• If you used the diary function or -logfile startup option for the session in which MATLAB
terminated unexpectedly, then you might be able to recover output.
• If you saved the workspace to a MAT-file during the session, then you can recover it by loading the
MAT-file.
• If you were editing a file in the Editor when MATLAB terminated unexpectedly, and you had the
backup feature enabled, then you should be able to recover changes you made to files you had not
saved. To recover, open the backup version filename.asv in the Editor. Then save it as
filename.m to use the last good version of filename.
• If you were in a Simulink® session when a segmentation violation occurred, and you have the
Simulink Autosave Options preference selected, then the last autosave file for the model reflects
the state of the autosave data before the segmentation violation. Because Simulink models might
be corrupted by a segmentation violation, a model is not autosaved after a segmentation violation
occurs. To recover the file, open the model.

See Also
diary | save | load

Related Examples
• “Save and Load Workspace Variables” on page 5-12
• “Save and Back Up Code”

More About
• “Commonly Used Startup Options” on page 1-18

1-11
1 Startup and Shutdown

Crash Reporting
If MATLAB crashes, then the MathWorks Crash Reporter dialog box prompts you to send the crash
report to MathWorks. Doing so helps us improve our products. The crash report contains one or more
crash logs containing information on the stack trace and the MATLAB configuration. You can see the
entire contents of the crash report by clicking the Show Report button in the dialog box. This data,
along with information that you provide as reproduction steps, is the only information sent to
MathWorks.

Reproduction steps are most helpful if you know what appears to cause the crash, but any
information on what you were doing at the time helps our developers better understand the cause.

• If you do know the cause of the crash, then look for information about it in the MathWorks Bug
Reports database.
• If the problem is reproducible, then submit a support case at https://www.mathworks.com/support/
contact_us.html.

Locating Crash Logs


In some situations, The Crash Reporter does not open. For example, the Crash Reporter is
unavailable when you start MATLAB with the -batch option or run it in deployed mode. If you
experience abnormal termination, but do not see the Crash Reporter, then you can email the crash
logs to MathWorks instead at https://www.mathworks.com/support/contact_us.html. The crash logs
are files with the prefix matlab_crash_dump, java.log, or hs_err. To locate the logs, type one of
these commands in the MATLAB Command Window, replacing prefix with matlab_crash_dump,
java.log, and hs_err.

• On Windows platforms:

dir(fullfile(tempdir,'prefix*'))

Alternatively, open Windows Explorer and navigate to the %USERPROFILE%\AppData\Local\


folder.
• On Linux and macOS platforms:

dir(fullfile('~','prefix*'))

Alternatively on macOS, open a Finder window. Press Command+Shift+G to open the Go To


Folder dialog box and enter ~.

See Also
tempdir

More About
• “When MATLAB Terminates Unexpectedly” on page 1-13

1-12
When MATLAB Terminates Unexpectedly

When MATLAB Terminates Unexpectedly


If MATLAB detects an internal error, then MATLAB displays one of two dialog boxes: the “MathWorks
Crash Reporter” on page 1-13 or the “MathWorks Crash Analyzer” on page 1-13. In both cases, the
internal state of MATLAB is unreliable and not suitable for further use.

MathWorks Crash Reporter


The MathWorks Crash Reporter provides an easy mechanism to send any relevant crash logs to
MathWorks Technical Support. If you click Send Report and provide a valid email address, then you
should receive an automated message within 5 minutes. If you want help, reply to the automated
message and a technical support agent will contact you.

If you do not receive an email, then you can directly contact Technical Support at https://
www.mathworks.com/support/contact_us.html.

MathWorks Crash Analyzer


When MATLAB terminates unexpectedly, MATLAB locally analyzes the crash report on your machine
to determine a potential cause. If there is a potential solution, MATLAB displays the MathWorks
Crash Analyzer dialog box. Click View Solution to open a web page in your browser that points to
the relevant MATLAB Answers™ page or MathWorks Bug Reports database. Follow the steps in the
solution. To apply a fix, you must restart MATLAB.

After viewing the solution, if you feel that it is not relevant, then click Send Report and enter
reproduction steps in the window.

If you apply the fix and still experience a crash, then click Send Report or create a support case
directly at https://www.mathworks.com/support/contact_us.html.

See Also

More About
• “Crash Reporting” on page 1-12

1-13
1 Startup and Shutdown

Specifying Java Startup Options


You can specify custom Java startup options by creating a java.opts file, a text file containing one
option per line. For example, use the -Dproperty=value command to assign a value to a system
property.

Put the java.opts file in one of the following folders:

• MATLAB startup folder, if starting MATLAB from an operating system prompt. For more
information, see “MATLAB Startup Folder” on page 1-15.
• If there is no java.opts file in the startup folder, then MATLAB checks the matlabroot/bin/
arch folder. matlabroot is the output of the matlabroot function. arch is the output of the
MATLAB computer('arch') function, for example glnxa64.

A java.opts file in this location applies to all users, but individual users might not have
permissions to modify files there.

Do not use a java.opts file in the following situations:

• To enable the use of the Java debugger, use the matlab -jdb command. For information, see
matlab (Linux) or matlab (macOS).
• To adjust the Java heap size on desktop versions of MATLAB, use “Java Heap Memory
Preferences”.
• To modify the static Java class path, create a javaclasspath.txt file. For information, see
“Static Path of Java Class Path”.

To modify the library path, create a javalibrarypath.txt file. For information, see “Locate
Native Method Libraries”.
• To override built-in options that MATLAB specifies to Java at startup. Options in java.opts are
appended to the end of the built-in list. Whether these additional options override built-in options
is JVM-dependent and can change between Java versions. To see what options MATLAB provides
to Java, run this command:
java.lang.management.ManagementFactory.getRuntimeMXBean.getInputArguments

See Also
matlab (Linux) | matlab (macOS)

Related Examples
• “Java Heap Memory Preferences”
• “Static Path of Java Class Path”
• “Locate Native Method Libraries”

More About
• “MATLAB Startup Folder” on page 1-15

1-14
MATLAB Startup Folder

MATLAB Startup Folder

Default Startup Folder


By default, MATLAB sets the startup folder based on the way you start MATLAB. To identify the
startup folder, type pwd at the command line immediately after starting MATLAB and before typing
any other commands. You can change the startup folder using the General Preferences options in
the Preferences Window. For convenience, make this folder a folder that you frequently use.

Note If a startup.m file changes the current folder, then this value overrides the initial working
folder value. Do not add cd statements to startup.m. For more information about user-defined
options, see startup.

Default Folder on Windows Platforms

How You Start MATLAB Startup Folder


Double-click the MATLAB icon on Last working folder from the previous MATLAB session or the
your Windows desktop or in the Start custom path specified in the Initial working folder
menu preference. The Initial working folder preference is located
in the General Preferences page of the Preferences window.
From a Windows system prompt Folder in which you run the matlab command (To use the
folder specified by the Initial working folder preference,
use the -useStartupFolderPref startup option.)
From the MATLAB command prompt Folder in which you run the !matlab command
Double-click a file type associated Folder containing the file
with MATLAB
Double-click the matlab.exe Last working folder from the previous MATLAB session or the
executable file from Windows custom path specified in the Initial working folder
Explorer Tool preference

For more information, see “Start MATLAB on Windows Platforms” on page 1-2.

If you start MATLAB by double-clicking the MATLAB shortcut icon and the startup folder is set to an
unexpected location, follow these steps to ensure that the Start in field in the MATLAB shortcut icon
is empty:

1 Right-click the shortcut icon for MATLAB


and select
Properties from the context menu. The Properties dialog box for MATLAB opens to the
Shortcut pane.
2 If the Start in field contains text, clear the text.
3 Click OK and try starting MATLAB again.

1-15
1 Startup and Shutdown

Default Folder on macOS Platforms

How You Start MATLAB Startup Folder


Double-click the MATLAB application Last working folder from the previous MATLAB session or the
custom path specified in the Initial working folder
preference, located in the General Preferences page of the
Preferences window
Start MATLAB from a Terminal Folder in which you run the matlab command
window

For more information, see “Start MATLAB on macOS Platforms” on page 1-7.

Default Folder on Linux Platforms

On Linux platforms, the default startup folder is the folder from which you started MATLAB.

For more information, see “Start MATLAB on Linux Platforms” on page 1-5.

Change Startup Folder


Starting in R2014b, you can change the startup folder using the General Preferences options in the
Preferences Window. On the Home tab, in the Environment section, click Preferences. Select
MATLAB > General. Choose an option for the Initial working folder preference.

Alternatively on Windows platforms, specify the initial working folder in the MATLAB shortcut icon.
For more information, see “Select MATLAB Icon” on page 1-2.

userpath as Initial Working Folder


Using userpath as the Initial working folder value offers these benefits.

• You can store the MATLAB files you work with in one folder, such as Documents/MATLAB.
• You can always run your files because MATLAB automatically adds the userpath folder to the top
of the search path.
• The first time you run a new version of MATLAB, the software automatically creates the
userpath folder if it does not exist.
• When you upgrade to a newer version of MATLAB, the software automatically continues to use the
same startup folder and your existing files.
• The default userpath uses the benefits provided by the standard location in the Windows and
macOS environments for storing personal files. Files in the Documents/MATLAB folder are
available to you when you use other machines. Each user has an individual Documents/MATLAB
folder. Other users, even those using your machine, cannot access files in your Documents/
MATLAB folder.

See Also
startup | Preferences

1-16
MATLAB Startup Folder

Related Examples
• “Start MATLAB on Windows Platforms” on page 1-2
• “Start MATLAB on macOS Platforms” on page 1-7
• “Start MATLAB on Linux Platforms” on page 1-5

1-17
1 Startup and Shutdown

Commonly Used Startup Options


This table lists commonly used startup options for the matlab command. For a complete list of
options, refer to the input arguments for matlab (Windows), matlab (macOS), or matlab
(Linux).

Platform Option Description


All -c license License to use, specified as the full path to a license file, a list of license
file paths, or the port@host address of a license server. Separate
multiple paths with a semicolon (Windows) or colon (Linux, macOS).

Licenses specified in the -c option override all other licenses, including


ones set in environment variables or stored in other folders. For more
details, see “MATLAB License Search Path”.
All -h or -help Display startup options (without starting MATLAB).
All -logfile Automatically write output from MATLAB to the specified log file.
"logfilename"
Windows -minimize Start MATLAB with the desktop minimized. Any desktop tools or
platforms documents that were undocked when MATLAB was last closed are not
minimized at startup.
macOS and -nojvm Start MATLAB without loading the JVM® software. This minimizes
Linux memory usage and improves initial startup speed, but restricts
platforms functionality. With nojvm, you cannot use the desktop, figures, or any
tools that require Java software.

For example, you cannot set preferences if you start MATLAB with the
-nojvm option. However, you can start MATLAB once without the -
nojvm option, set the preference, and quit MATLAB. MATLAB
remembers that preference when you start it again, even if you use the
-nojvm option.
All -nosplash Start MATLAB without displaying its splash screen.
All -batch "statement" Run the specified statement non-interactively.
All -r "statement" Run the specified statement interactively.
All -singleCompThread Limit MATLAB to a single computational thread. This option is for
numerical computations only.

On Windows systems, this option uses the multithreading capabilities of


the computer on which it is running by default.

For a complete list of options, refer to the input arguments for matlab (Windows), matlab
(macOS), or matlab (Linux).

See Also
matlab (Windows) | matlab (macOS) | matlab (Linux)

1-18
Specify Startup Options

Specify Startup Options

In this section...
“Startup Options from Operating System Prompt” on page 1-19
“Startup Options in Shortcut on Windows Systems” on page 1-19
“Startup Options in MATLAB Startup File” on page 1-20
“Passing Perl Variables on Startup” on page 1-20
“Startup and Calling Java Software from MATLAB” on page 1-21

Startup Options from Operating System Prompt


Startup options instruct MATLAB to perform certain operations when you start the program. Startup
options also are called command flags or command-line switches. When you start at the operating
system prompt, specify the options as arguments to the matlab command. For example, the following
starts MATLAB and suppresses the display of the splash screen.

matlab -nosplash

On Windows platforms, you can precede a startup option with either a hyphen (-) or a slash (/). For
example, -nosplash and /nosplash are equivalent.

Startup Options in Shortcut on Windows Systems


You can add selected startup options to the target path for your shortcut on the Windows platform for
MATLAB.

To use startup options for the MATLAB shortcut icon, follow these steps:

1 Right-click the shortcut icon for MATLAB


and select
Properties from the context menu. The Properties dialog box for MATLAB opens to the
Shortcut pane.
2 In the Target field, after the target path for "matlab.exe", add the startup option, and click
OK.

This example runs the MATLAB results script or function after startup, where results.m is in the
startup folder or on the MATLAB search path. The text in the Target field is similar to the following:

"C:\Program Files\MATLAB\R2016b\bin\matlab.exe" -r "results"

Include the statement, but not the option (-r) in double quotation marks.

Use semicolons or commas to separate multiple statements. This example changes the format to
short, and then runs the MATLAB code file results:

"... matlab.exe" -r "format('short');results"

Separate multiple options with spaces. This example starts MATLAB without displaying the splash
screen, and then runs the MATLAB code file results:

1-19
1 Startup and Shutdown

"... matlab.exe" -nosplash -r "results"

Startup Options in MATLAB Startup File

The startup.m file is a file you create to specify startup options. Create the startup.m file in a
folder on the MATLAB search path. Use startup.m to modify the default search path, predefine
variables in your workspace, or define defaults for graphics objects. For example, the following
statement adds the user-defined folder /home/myname/mytools to the search path.

addpath /home/myname/mytools

To change the current folder on startup to mytools, set the Initial working folder value, located in
the General Preferences options in the Preferences window:

/home/myname/mytools

At startup, MATLAB automatically executes the matlabrc.m file and startup.m, if it exists on the
MATLAB search path. The file matlabrc.m, which is in the matlabroot/toolbox/local folder, is
reserved for use by MathWorks and by system administrators on multiuser systems. To locate the
startup.m file, type:

which startup

If MATLAB finds a startup.m file, then it displays the path to the file.

Note

MATLAB executes any file on the search path named startup that has an executable file extension.
Examples of an executable file extension are .m, .mlx, and .mlapp.

Passing Perl Variables on Startup


You can pass Perl variables to MATLAB on startup by using the -r option of the matlab function. For
example, assume a MATLAB function test that takes one input variable:

function test(x)

To pass a Perl variable instead of a constant as the input parameter, follow these steps. This command
starts MATLAB and runs test with the input argument 10.

1 Create a Perl script such as

#!/usr/local/bin/perl
$val = 10;
system('matlab -r "test(' . ${val} . ')"');
2 Invoke the Perl script at the prompt using a Perl interpreter.

For more information, see the -r option in matlab (Windows), matlab (macOS), or matlab
(Linux).

1-20
Specify Startup Options

Startup and Calling Java Software from MATLAB


When MATLAB starts, it constructs the class path for Java software using javaclasspath.txt and
javalibrarypath.txt files. For more information, see “Java Class Path” and “Locate Native
Method Libraries”.

For information about memory allocation for Java objects, see “Java Heap Memory Preferences”.

See Also
matlab (Windows) | matlab (macOS) | matlab (Linux) | Preferences

More About
• “Commonly Used Startup Options” on page 1-18
• “What Is the MATLAB Search Path?” on page 6-47

1-21
1 Startup and Shutdown

Toolbox Path Caching in MATLAB

In this section...
“About Toolbox Path Caching in MATLAB” on page 1-22
“Using the Cache File Upon Startup” on page 1-22
“Updating the Cache and Cache File” on page 1-22

About Toolbox Path Caching in MATLAB


For performance reasons, MATLAB disables folder change detection for the matlabroot folder and
caches the folder information across sessions. The disabled folder change detection and caching
features are mostly transparent to you. However, if MATLAB does not see the latest versions of your
MATLAB code files or if you receive warnings about the path cache, then you might need to update
the cache.

Using the Cache File Upon Startup


Upon startup, MATLAB gets information from a cache file to build the matlabroot folder cache.
Because of the cache file, startup is faster, especially if you run MATLAB from a network server or if
you have many folders within the matlabroot folder. When you end a session, MATLAB updates the
cache file.

MATLAB does not use the cache file at startup if you clear the Enable toolbox path cache check
box in General Preferences page of the Preferences Window. Instead, it creates the cache by
reading from the operating system folders, which is slower than using the cache file.

Updating the Cache and Cache File


How the Toolbox Path Cache Works

MATLAB caches (essentially, stores in a known files list) the names and locations of files in the
matlabroot folder. This folder is for files provided with MathWorks products that should not change
except for product installations and updates. Caching those folders provides better performance
during a session because MATLAB does not actively monitor those folders.

We strongly recommend that you save any MATLAB code files you create and any files provided by
MathWorks that you edit in a folder that is not in the matlabroot folder tree. If you keep your files
in the matlabroot folder, then they might be overwritten when you install a new version of MATLAB.

When to Update the Cache

When you add files to the matlabroot folder, the cache and the cache file need to be updated.
MATLAB updates the cache and cache file automatically when you install toolboxes or toolbox
updates using the installer for MATLAB. MATLAB also updates the cache and cache file automatically
when you use MATLAB tools, such as when you save files from the MATLAB Editor to the
matlabroot folder.

When you add or remove files in the matlabroot folder by some other means, MATLAB might not
recognize those changes. For example, when you:

1-22
Toolbox Path Caching in MATLAB

• Save new files in the matlabroot folder using an external editor


• Use operating system features and commands to add or remove files in the matlabroot folder

and then attempt to use one of the new files, MATLAB displays this message:

Undefined function or variable

Update the cache so MATLAB recognizes the changes you made in the matlabroot folder.

Steps to Update the Cache

To update the cache and the cache file,

1 On the Home tab, in the Environment section, click Preferences. Select MATLAB >
General.
2 Click Update Toolbox Path Cache and click OK.

Function Alternative

To update the cache, use rehash toolbox. To update both the cache and the cache file, use rehash
toolboxcache. For more information, see rehash.

1-23
1 Startup and Shutdown

Remove canberra-gtk-module and pk-gtk-module Messages


On some Linux distributions, one or both of these messages appear in the terminal window when
starting MATLAB. These messages are informational and have no effect on MATLAB.

Gtk-Message: <timestamp>: Failed to load module "canberra-gtk-module"


Gtk-Message: <timestamp>: Failed to load module "pk-gtk-module"

To suppress these messages, open a terminal with root privileges and execute the relevant commands
to install the libcanberra Linux package.

Red Hat Distributions


On Red Hat distributions (including CentOS and Fedora®):

• Install the package.

yum install libcanberra-gtk2


• Set the GTK_PATH.

• sh or bash commands:

$ export GTK_PATH=/usr/lib64/gtk-2.0
• csh/tcsh commands:

% setenv GTK_PATH /usr/lib64/gtk-2.0

Debian-Based Distributions
On Debian®-based distributions (including Ubuntu®):

• Install the package.

apt-get install libcanberra-gtk-module


• Set the GTK_PATH.

• sh or bash commands:

$ export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
• csh/tcsh commands:

% setenv GTK_PATH /usr/lib/x86_64-linux-gnu/gtk-2.0

1-24
2

Desktop

• “Zoom and Change Desktop Fonts” on page 2-2


• “Change Desktop Colors” on page 2-7
• “Customize MATLAB Toolbars” on page 2-12
• “Change Desktop Layout” on page 2-14
• “Accessibility in MATLAB” on page 2-23
• “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30
• “Use a Screen Reader in MATLAB Online” on page 2-35
• “Customize Keyboard Shortcuts” on page 2-45
• “Set Print Options for Command Window and Editor” on page 2-50
• “Web Browsers and MATLAB” on page 2-53
• “Manage Your Licenses” on page 2-56
• “Update an Existing Installation” on page 2-60
• “macOS Platform Conventions” on page 2-61
• “Where MATLAB Stores Preferences” on page 2-63
• “Import Preferences from Other Releases” on page 2-65
• “Web Preferences” on page 2-67
2 Desktop

Zoom and Change Desktop Fonts

You can change the zoom level, font size, name, and style used by tools in MATLAB. You also can
install new fonts to use with MATLAB.

Zoom
You can change the zoom level in the Editor and Live Editor. To change the zoom level, go to the View
tab and select Zoom In, Zoom Out, or Reset Zoom.

Alternatively, you can change the zoom level using the keyboard shortcuts described in this table.

Action Keyboard Shortcut


Zoom in and out Ctrl+Mouse Scroll

On macOS systems, use Command+Mouse Scroll.


Zoom in Ctrl+Plus

On macOS systems, use Command+Shift+Plus.


Zoom out Ctrl+Minus

On macOS systems, use Command+Shift+Minus.


Reset Zoom Ctrl+Alt+0

On macOS systems, use Command+Alt+0.

In MATLAB Online™, to change the zoom level, adjust the zoom settings for your web browser.

Change Font Size


You can change the font size in MATLAB using preferences or settings. This table describes how to
change the font size for each tool.

Tool Procedure
Live Editor Specify the code and text font size for the current document using
the Customize Styles dialog box.

Go to the Live Editor tab, and in the Text section, click the
Customize styles button .

For more information, see “Format Text in the Live Editor”.

To specify the code and text font size for all open documents and
all new documents, use the matlab.fonts Settings. For example,
this code changes the code font size in the Live Editor.

s = settings;
s.matlab.fonts.editor.code.Size.TemporaryValue = '26pt'

2-2
Zoom and Change Desktop Fonts

Tool Procedure
Code tools Specify the font size using font preferences.

• Editor On the Home tab, in the Environment section, click


• Command Window Preferences. Select MATLAB > Fonts and, in the Desktop code
• Command History font section, select a font size. In MATLAB Online, these
preferences are located under MATLAB > Appearance > Fonts.
Text-based tools Specify the font size using font preferences.

• Current Folder browser On the Home tab, in the Environment section, click
• Workspace browser Preferences. Select MATLAB > Fonts and in the Desktop text
• Variables editor font section, clear the Use system font check box. Then, select a
font size.

In MATLAB Online, changing the font size for text-based tools is


not supported.
Charts See “Add Title and Axis Labels to Chart”.

Change Font Name and Style


You can change the font name and style in MATLAB using several different methods, depending on
the tool. This table describes how to change the font name and style for each tool in MATLAB.

Tool Procedure
Live Editor Specify the code and text font name and font style for the current
document using the Customize Styles dialog box.

Go to the Live Editor tab, and in the Text section, click the
Customize styles button .

For more information, see “Format Text in the Live Editor”.

To specify the code and text font name and font style for all open
documents and all new documents, use the matlab.fonts Settings.
For example, this code changes the font name and style of normal
text in the Live Editor.

s = settings;
s.matlab.fonts.editor.normal.Name.PersonalValue = 'Calibri';
s.matlab.fonts.editor.normal.Style.PersonalValue = {'bold'};

2-3
2 Desktop

Tool Procedure
Code tools Specify the font name and style using font preferences.

• Editor On the Home tab, in the Environment section, click


• Command Window Preferences. Select MATLAB > Fonts and, in the Desktop code
• Command History font section, select a font name and style. In MATLAB Online,
these preferences are located under MATLAB > Appearance >
Fonts.

By default, the code font is set to monospaced to preserve vertical


alignment. When the font is set to monospaced, the actual
displayed font in the Editor is different than the font displayed in
the Command Window and Command History. This is because
monospaced is a logical font, not a physical font. To avoid this
discrepancy, specify the font name as a physical font, for example,
Courier New.
Text-based tools Specify the font name and style using font preferences.

• Current Folder browser On the Home tab, in the Environment section, click
• Workspace browser Preferences. Select MATLAB > Fonts and, in the Desktop text
• Variables editor font section, clear the Use system font check box. Then, select a
font name and style. By default, the text font is set to your system
font.

In MATLAB Online, changing the font name and style for text-
based tools is not supported.
MATLAB web browser Changing the font name and style is not supported.

To apply antialiasing and create a smoother desktop appearance on Linux systems, select Use
antialiasing to smooth desktop fonts. You must restart MATLAB for the preference to take effect.
On Microsoft Windows and macOS platforms, MATLAB uses system setting for antialiasing.

Advanced Customization

You can further customize fonts in MATLAB by changing the font preferences for an individual tool.
To change the font preferences for an individual tool, on the Home tab, in the Environment section,
click Preferences. Select MATLAB > Fonts > Custom and choose a tool from the list of
Desktop tools. Then, select the font to use:

• Desktop code — Select this option to use the desktop code font for this tool.
• Desktop text — Select this option to use the desktop text font for this tool.
• Custom — Select this option to specify a custom font for this tool. Then, specify a font name,
style, and size. Some options are not supported for all tools.

For example, to change the Editor font to a custom font, in the list of Desktop tools, select Editor.
Then, in the Font to use section, select Custom and specify the desired font name, style, and size. In
MATLAB Online, these preferences are located under MATLAB > Appearance > Fonts > Custom.

To customize code and text fonts in the Live Editor, use the Customize Styles dialog box or the
matlab.fonts. For more information, see “Format Text in the Live Editor”.

2-4
Zoom and Change Desktop Fonts

Default Font Preferences

This table shows the default font preferences for the tools in MATLAB. You can use this table to
restore fonts to their original state.

Tool Font to Use Default Font


Command History Desktop code Monospaced, plain, 10 point
Command Window When the font is set to monospaced,
Editor (and Shortcuts Editor) the actual displayed font in the
Editor is different than the font
displayed in the Command Window
and Command History. This is
because monospaced is a logical
font, not a physical font. To avoid
this discrepancy, specify the font
name as a physical font, for
example, Courier New.
Current Folder browser (and Path Desktop text Your system's current font
browser)
Workspace browser
Variables editor
Function Browser
Profiler Custom Sans serif, plain, 10 point

Add Additional Fonts


You can add additional fonts to use with MATLAB. A common reason for adding additional fonts is to
read files created in different languages.

To add a new font to use with MATLAB:

1 Choose a font. The font must be compatible with MATLAB. MATLAB only includes compatible
fonts in the font preferences.

• For desktop components (such as the Command Window), figure windows, and uicontrols,
fonts must be compatible with TrueType and Microsoft OpenType® fonts
• For graphics objects, such as xlabel, ylabel, title, and text, fonts must be TrueType
and Microsoft OpenType fonts
2 Install the font. For details on installing fonts on your system, refer to the documentation for your
system.

Install the font in the /jre/lib/fonts folder where Java software is installed on your system,
for example, C:\Program Files\MATLAB\R2024a\sys\java\jre\win64\jre\lib\fonts.
3 Restart MATLAB.
4 Use the font in MATLAB by following the instructions in “Change Font Name and Style” on page
2-3.

2-5
2 Desktop

In MATLAB Online, to add an additional font, install the font on your system. Then, go to the
MATLAB > Appearance > Fonts > Custom preferences, select Custom in the Font to use
sections and manually enter the new font name in the drop-down list.

See Also
Preferences

Related Examples
• “Add Title and Axis Labels to Chart”
• “Change Desktop Colors” on page 2-7
• “Set Print Options for Command Window and Editor” on page 2-50

2-6
Change Desktop Colors

Change Desktop Colors

You can change the colors used by tools in MATLAB, including the text and background colors, syntax
highlighting colors, and output colors. In MATLAB Online, you also can use themes to change the
colors of the MATLAB desktop, for example, by selecting a dark theme. For more information, see
“MATLAB Online Only: Select Theme” on page 2-10.

Change Text and Background Colors


By default, the tools in the MATLAB desktop environment use the same text and background colors
that your system uses in other applications. You can change the text and background colors for
certain desktop tools, including the Editor, Live Editor, Command Window, Current Folder browser,
Workspace browser, and Import Wizard.

To change the text and background colors:

1 On the Home tab, in the Environment section, click Preferences.


2 Select MATLAB > Colors.

In MATLAB Online, select MATLAB > Appearance > Colors.


3 In the Desktop tool colors section, clear the Use system colors check box.

In MATLAB Online, the Use system colors check box is not available and this step can be
skipped.
4 Use the Text and Background fields to change the colors. For example, select white for the text
color and black for the background color.

The Syntax Highlighting sample and Command Window sample areas show a preview of the
selected colors.

To restore the default text and background colors, click the Restore Default Colors button at
the bottom of the Preferences window.

The Live Editor automatically selects colors for titles and headings based on the selected background
color. To further customize the colors of titles and headings, use the Customize Styles dialog box or
the matlab.fonts. For more information, see “Format Text in the Live Editor”.

Changing the text and background colors does not change the colors of the toolstrip. In MATLAB
Online, changing the text and background colors also does not change the colors of the Workspace
panel.

2-7
2 Desktop

Change Syntax Highlighting Colors

MATLAB conveys syntax information in code using different colors. This feature, known as syntax
highlighting, helps you to identify syntax elements, such as if/then/else statements, at a glance.
Syntax highlighting appears in code files, in code you enter in the Command Window, and in error
and warning messages. It does not appear in other kinds of output.

To change the colors used for syntax highlighting in MATLAB code:


1 On the Home tab, in the Environment section, click Preferences.
2 Select MATLAB > Colors.

In MATLAB Online, select MATLAB > Appearance > Colors.


3 In the MATLAB syntax highlighting colors section, use the Keywords, Comments, Strings,
Unterminated strings, System commands, Syntax errors, and Validation sections fields to
change the colors. For example, select magenta for the strings color and purple for the
unterminated strings color.

The Syntax highlighting sample area shows a preview of the selected colors.

To restore the default syntax highlighting colors, click the Restore Default Colors button at the
bottom of the Preferences window.

To disable syntax highlighting, in the Preferences window, select MATLAB > Editor/Debugger >
Language. Then, in the Syntax highlighting section, clear the Enable syntax highlighting check
box. In MATLAB Online, this option is located under MATLAB > Editor/Debugger > MATLAB
Language.

The Editor also provides syntax highlighting for other languages. To change the syntax highlighting
colors for other languages, in the MATLAB > Editor/Debugger > Language Preferences window,
select a language in the Language field. Then, change the colors for that language. To disable syntax
highlighting for the language, clear the Enable syntax highlighting check box. In MATLAB Online,
these options are located under MATLAB > Editor/Debugger > Other Languages.

For more information about syntax highlighting, see “Check Syntax and Autocomplete Code as You
Type” on page 3-19.

Change Output Colors


MATLAB uses different colors to identify errors, warnings, and links in Command Window and Live
Editor output.

2-8
Change Desktop Colors

To change the colors used for errors, warnings, and links in output:
1 On the Home tab, in the Environment section, click Preferences.
2 Select MATLAB > Colors.

In MATLAB Online, select MATLAB > Appearance > Colors.


3 In the MATLAB output colors section, use the Error text, Warning text, and Hyperlinks in
Command Window fields to change the colors. For example, select magenta for error text and
green for warning text.

The Command Window sample area shows a preview of the selected colors.

To restore the default output colors, click the Restore Default Colors button at the bottom of
the Preferences window.

Change Programming Tools Colors

In the Editor and Live Editor, MATLAB uses additional colors to identify Code Analyzer messages,
variables, and functions. To change these colors, go to the Home tab, and in the Environment
section, click Preferences. Then, select MATLAB > Colors > Programming Tools. In MATLAB
Online, select MATLAB > Appearance > Colors > Programming Tools.

Code Analyzer Colors

To change the colors used to identify Code Analyzer messages in the Editor and Live Editor, in the
Code analyzer colors section, select colors from the Warnings and Autofix highlight fields. To
disable highlighting autofixes in the Editor and Live Editor, clear the Autofix highlight check box.

For more information about using the Code Analyzer, see “Check Code for Errors and Warnings Using
the Code Analyzer”.

Variable and Function Colors

When you select a variable or function in the Editor or Live Editor, MATLAB highlights all
occurrences of that specific variable or function. To change the color of this highlight, in the Variable
and function colors section, select a color from the Automatically highlight field. To disable
automatic highlighting in the Editor and Live Editor, clear the Automatically highlight check box.
For more information about automatic highlighting, see “Find and Replace Functions or Variables in
Current File”.

MATLAB also uses text of a different color to call out variables with shared scope in the Editor and
Live Editor. To change the color of variables with shared scope, in the Variable and function colors

2-9
2 Desktop

section, select a color from the Variables with shared scope field. To disable calling out variables
with shared scope in the Editor and Live Editor, clear the Variables with shared scope check box.
For more information about variables with shared scope, see “Check Variable Scope in Editor”.

MATLAB Online Only: Select Theme

In MATLAB Online, you also can use themes to change the colors of the MATLAB desktop.

Note Themes are not supported in an installed version of MATLAB.

Windows and macOS systems support light and dark color schemes. By default, MATLAB Online is
configured to match the current operating system color scheme using the system theme. If the
selected color scheme for the operating system changes, the colors of the MATLAB desktop change to
match the new scheme.

To change the selected theme, on the Home tab, in the Environment section, click Preferences.
Select MATLAB > Appearance and select a theme from the Theme field. For example, select Dark
to select a dark theme or System to select a theme that matches the current operating system
scheme.

The MATLAB Appearance Preferences page shows a preview of the selected theme.

After selecting a theme, you can further customize the colors of the MATLAB desktop by selecting
MATLAB > Appearance > Colors and changing the colors in the Desktop tool colors, MATLAB
syntax highlighting colors, and MATLAB output colors sections.

MATLAB Online saves your color customizations for each available theme. If you customize the colors
of the MATLAB Online desktop and then the MATLAB theme changes to a new theme or to match a
change to the operating system color scheme, your customizations are saved.

2-10
Change Desktop Colors

See Also
matlab.fonts | Preferences

Related Examples
• “Zoom and Change Desktop Fonts” on page 2-2
• “Set Print Options for Command Window and Editor” on page 2-50

2-11
2 Desktop

Customize MATLAB Toolbars


In MATLAB, you can change the location of the quick access and the Current Folder toolbars. You also
can choose which controls appear in the toolbars.

Quick Access Toolbar


The quick access toolbar provides access to frequently used operations. This toolbar is always visible,
even when you navigate between different MATLAB toolstrip tabs.

By default, the quick access toolbar is located at the upper-right corner of the MATLAB desktop. To
change the location of the quick access toolbar, on the Home tab, in the Environment section, click
Layout, and then select an option for the Quick Access Toolbar. Moving the quick access toolbar is
not supported in MATLAB Online.

To add a toolstrip control to the quick access toolbar, right-click the control and then select Add to
Quick Access Toolbar. You also can select from a list of common controls by going to the quick
access toolbar and clicking the button. To remove a control from the quick access toolbar, right-
click the control and select Remove from Quick Access Toolbar. To arrange controls in the quick
access toolbar, drag them to the desired locations.

To further customize the quick access toolbar, click the button on the toolbar and select
Customize Toolbar. Then, select from the options described in “Toolbar Preferences” on page 2-12.

Current Folder Toolbar


You can use the Current Folder toolbar to view and change the current folder.

By default, the Current Folder toolbar is located under the toolstrip. To change the location of the
Current Folder toolbar, on the Home tab, in the Environment section, click Layout, and then select
an option for the Current Folder Toolbar. Moving the Current Folder toolbar is not supported in
MATLAB Online.

To add, remove, or rearrange the controls that appear in the Current Folder toolbar, right-click the
toolbar and select Customize. Then, select from the options described in “Toolbar Preferences” on
page 2-12.

Toolbar Preferences

You can customize the quick access and Current Folder toolbars using the Toolbar preferences. To
open the Toolbar preferences, go to the Home tab, and in the Environment section, click
Preferences. Select MATLAB > Toolbars and in the Toolbar section, select the toolbar that you
want to customize.

To rearrange controls in the selected toolbar, in the Layout section, drag the icon for a control or
separator bar to a new location. You also can select a control icon or separator bar and then use the
buttons below the control icons to move the selected control. For example, to move the MATLAB

2-12
Customize MATLAB Toolbars

desktop Cut button to the beginning of the quick access toolbar, select the Cut icon , and then
click the button.

To add or remove controls from the selected toolbar, select or clear the check box for those controls.
For example, to easily create new folders in the current folder, you can add a New Folder button to
the Current Folder toolbar. To do so, select the Folder button and click OK. MATLAB adds the
button to the toolbar.

See Also
Preferences

More About
• “Rerun Favorite Commands” on page 3-13
• “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30
• “Customize Keyboard Shortcuts” on page 2-45

2-13
2 Desktop

Change Desktop Layout

When you start MATLAB, the desktop appears in its default layout.

By default, the desktop includes these tools.

Tool Position Description


Toolstrip Top of desktop By default, the toolstrip includes three tabs:
Home, Plots, and Apps.
Current Folder toolbar Top of desktop View and change the current folder.
underneath toolstrip
Current Folder browser Left side of desktop Manage files and folders in MATLAB. Actions
include viewing, creating, opening, moving, and
renaming files and folders in the current folder.
Workspace browser Right side of desktop View and manage the contents of the workspace
in MATLAB.

In MATLAB Online and on systems with a lower


screen resolution, MATLAB defaults to a two-
column layout with the Workspace panel on the
left side of the desktop, underneath the Files
panel.
Command Window Middle of desktop Enter individual statements at the command line
and view the resulting output.

2-14
Change Desktop Layout

To change the desktop layout, you can choose from a set of preconfigured desktop layouts or you can
create your own layout by hiding, minimizing, and undocking individual tools. You also can change
the layout of documents within a tool by undocking, reordering, or tiling them. Then, you can save
your layouts and reuse them again at a later time.

MATLAB Online Desktop


In MATLAB Online, you can use the sidebars on either side and on the bottom of the desktop to
access desktop tools and change the desktop layout. Each sidebar shows the tools, such as the
Workspace panel, Files panel, or Command Window, that are docked in that area of the desktop. If
there are no tools docked in an area of the desktop, the sidebar for that area is hidden.

You can use the sidebars to show and hide tools, group them together, and move them from one
location to another. To show or hide a tool, click its icon in the sidebar. To show and hide multiple
tools together, group them by dragging one of the tool icons next to another tool icon. To move a tool
to a different location on the desktop, drag the tool or the icon for the tool to the new location.

Select Preconfigured Layout


MATLAB provides a set of preconfigured desktop layouts that are optimized for certain workflows. To
select a preconfigured layout, on the Home tab, in the Environment section, click Layout and select
a layout. To restore the MATLAB desktop to its default layout, select Default.

For example, if you work mostly in the Command Window, select the All but Command Window
Minimized option (Command Window Only in MATLAB Online) to maximize the Command Window
and minimize all other tools in the desktop.

2-15
2 Desktop

Open Tools
To open or show a tool that is not visible in the desktop, on the Home tab, in the Environment
section, click Layout. Then, in the Show section, select the desktop tool that you want to show on the
desktop. You also can open some tools programmatically using a function. For example, to open the
Editor, use the edit function. To open the Workspace browser, use the workspace function.

In MATLAB Online, to show a tool that is hidden, click its icon in the sidebar. You also can show some
tools by going to the Home tab, and in the Environment section, clicking the Layout button. Then,
in the Layout Options section, select one or more of the options in the list. To open a tool that is not
in any of the sidebars, in a sidebar, click the Open more panels button ( ). Then, in the Open Panel
dialog box, select from the available tools. You also can right-click in a sidebar and select Open more
panels.

2-16
Change Desktop Layout

Minimize Tools
Minimize tools in the desktop to optimize the layout while still maintaining quick access to tools that
you use periodically.

To minimize the toolstrip, at the lower-right corner of the toolstrip, click the
button. The toolstrip minimizes but the
tabs remain visible. To restore the toolstrip, select one of the tabs to display the toolstrip, and then, in
the lower right corner of the toolstrip, click the
button.

To minimize other tools including the Current Folder browser, Command Window, Editor, and Live
Editor, on the title bar of the tool, click the button and select Minimize. The minimized tool
appears along the edge of the desktop indicated by the arrow in the Minimize icon. For example, the
Minimize icon indicates that the tool minimizes to the left edge of the desktop by default. To move
a minimized tool to a different edge of the desktop, drag the tool to the desired location. To open a
minimized tool temporarily on the desktop, click the tool. Then, to restore the tool to its original size,
double-click the tool. Alternatively, you can click the button and select Restore.

For example, to minimize the Current Folder browser, at top right of the Current Folder browser, click
the button and select Minimize. The Current Folder browser minimizes to the left side of the
screen.

2-17
2 Desktop

In MATLAB Online, to minimize a tool, click its icon in the sidebar. If two or more tools are grouped
together, you can minimize each individual tool by clicking the Collapse
button on the left
side of its title bar.

For example, if the MATLAB Online desktop is in the default layout with the Files panel and
Workspace panel open on the left side of the desktop, you can hide both tools by clicking the icon
group for the two tools in the left sidebar. You can minimize just the Files panel by clicking the
Collapse button on
the left side of its title bar.

To minimize tools that open in new windows in MATLAB Online, see “Manage Windows in MATLAB
Online” on page 10-5.

Hide Tools
To hide a tool, click the button on the title bar of a tool and select Close. You also can hide some
tools by going to the Home tab, and in the Environment section, clicking the Layout button. Then,
in the Show section, clear one or more of the options in the list. To hide just the title bar for all tools,
clear the Panel Titles option.

2-18
Change Desktop Layout

In MATLAB Online, to hide a tool, click its icon in the sidebar. You also can hide some tools by going
to the Home tab, and in the Environment section, clicking the Layout button. Then, in the Layout
Options section, clear one or more of the options in the list.

Undock Tools and Documents

To open a tool in a separate window, undock the tool to move it outside the MATLAB desktop. To
undock a tool, on the title bar of the docked tool, click the button and select Undock. Alternatively,
drag the tool by its title bar to a new location outside of the MATLAB desktop. To move an undocked
tool back into the desktop, at the upper right of the undocked tool, click the button and select
Dock.

You also can undock individual documents within a tool, such as an individual script file open in the
Editor. To undock an individual document, right-click the document tab and select Undock
document. Alternatively, you can click the button on the title bar of the tool and select Undock
document. Undocked tools and documents appear on the Windows task bar, or the equivalent for
your platform. Click the task bar icon for a tool or document to make it active.

For example, if you have the file fact.m open in the Editor, to undock just that file, on the title bar of
the Editor, click the button and select Undock fact.m. MATLAB opens fact.m in a separate
window and leaves the Editor docked in the desktop. To move the file back into the desktop, at the
top right of the undocked file, click the button and select Dock fact.m. If you have multiple
undocked documents and want to move them all back into the desktop, select Dock All in tool.

In MATLAB Online, undocking tools and documents is not supported.

Reorder and Tile Documents

2-19
2 Desktop

When you open MATLAB documents, they open in the associated tool, such as the Editor, Live Editor,
or Variables editor. Individual documents open as separate tabs within the tool. To optimize the layout
of multiple documents, you can reorder or tile them.

To reorder individual document tabs within a tool, drag the tabs to a different position. To reorder
document tabs alphabetically, on the View tab, in the Document Tabs section, select Alphabetize.
In MATLAB Online, to alphabetize document tabs, on the title bar of the tool, click the button and
select Alphabetize.

By default, the tabs appear at the top of the document. To change the position of the tabs in a tool, on
the View tab, click Tabs Position and select from the available options. For example, to display tabs
on the left side of the Editor instead of at the top, with the Editor open, go to the View tab, click Tabs
Position, and select Left. In MATLAB Online, to change the position of the tabs in a tool, click the
button, select Tabs Position, and select from the available options.

To tile documents in the Editor, Live Editor, and Variables editor, go to the View tab and in the Tiles
section, select a tile option. To move a tiled document, drag the document tab to another tile. If you
drag it to a tile that already contains a document, the document you are dragging covers up the other
document.

For example, to view two files side by side in the Editor, go to the View tab and select the Left/
Right button.

2-20
Change Desktop Layout

To tile documents in the Figures panel or MATLAB web browser, at the top right of the tool, select the
,
,
, or option
button.

In MATLAB Online, to tile documents, on the title bar of the tool, click the button, select Tile All,
and then select a tile option.

Save Desktop Layouts


When you end a session, MATLAB saves the current desktop layout. The next time you start MATLAB,
the desktop appears as you left it.

If you alternate between two or more customized desktop layouts, you can save them all to easily
switch between them. To save a layout, on the Home tab, in the Environment section, click Layout,
and select Save Layout (or Save Current Layout in MATLAB Online). MATLAB stores all saved
layouts in the preferences folder. MATLAB saves the current desktop layout at the end of a session in
the file MATLABDesktop.xml.

To use a saved layout, on the Home tab, click Layout, and select your saved layout. To delete or
rename saved layouts, select Organize Layouts. In MATLAB Online, right-click the layout and select
Delete or Rename from the context menu.

Some tools, such as the MATLAB web browser and the Variables editor, do not reopen automatically,
even if they were open when you ended the last session. You can use startup options to specify tools
that you want to open on startup. For more information, see “Specify Startup Options” on page 1-19.

See Also
Preferences

2-21
2 Desktop

Related Examples
• “Customize MATLAB Toolbars” on page 2-12
• “Zoom and Change Desktop Fonts” on page 2-2
• “Change Desktop Colors” on page 2-7

2-22
Accessibility in MATLAB

Accessibility in MATLAB
MATLAB provides several features to help make it accessible to users. To navigate MATLAB using just
a keyboard, you can use keyboard shortcuts. In MATLAB Online, you can use a screen reader and a
keyboard to interact with the different tools in MATLAB. To make the desktop more visible, you can
zoom in, change its colors, or increase the clarity of plots. You can also use data sonification to
explore and interpret data by sound.

For our best accessibility support, use MATLAB Online. MathWorks is committed to improving the
accessibility of its software products, focusing first on the accessibility of MATLAB Online. See our
Accessibility Statement for MATLAB for the latest information on accessible workflow support.

Navigate Using the Keyboard


You can use keyboard shortcuts to navigate MATLAB with just a keyboard. Navigating with a
keyboard differs depending on whether you are using MATLAB Online or an installed version of
MATLAB.

In MATLAB Online, to move forward through the different areas of the MATLAB Online desktop, press
Ctrl+F6. To move backward, press Ctrl+Shift+F6. On macOS systems, use the Command key
instead of the Ctrl key. To display a list of navigational keyboard shortcuts, press Ctrl+/.

In an installed version of MATLAB, to move forward through the different areas of the MATLAB
desktop, press Ctrl+Tab. To move backward, press Ctrl+Shift+Tab. To select a toolstrip tab, press
Alt to show the access keys for the tabs and then <character> to select the tab, where
<character> is the displayed access key for the desired tab. After selecting a tab, press
<character> to select an item on the tab, where <character> is the displayed access key for the
desired toolstrip item. Accessing the toolstrip using keyboard shortcuts in an installed version of
MATLAB is not supported on macOS.

For more information, see “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30.

Work with a Screen Reader


In MATLAB Online, you can use a screen reader and a keyboard to interact with the Command
Window, create and edit scripts, live scripts, and functions in the Editor and Live Editor, and navigate
through the different areas of the MATLAB desktop. MATLAB Online is tested with the NVDA screen
reader on Windows 10 running MATLAB Online in the Google Chrome® browser. For more
information about NVDA, see Get Help on the NV Access website.

For example, on a Windows system with the NVDA screen reader and MATLAB Online running, enter
individual statements in the Command Window.

1 With the cursor in the Command Window, create a variable named x by entering this statement
in the Command Window.

x = 1

MATLAB adds x to the workspace and displays the results in the Command Window. You hear:

X equals one
Ready prompt
One variable added to workspace

2-23
2 Desktop

When you hear Ready prompt, the Command Window is ready for the next statement at the
command-line prompt (>>).
2 Create another variable y by entering the following statement in the Command Window.

y = cos(x)

You hear the results:

Y equals zero point five four zero three


Ready prompt
One variable added to workspace
3 Move the cursor to the Command Window scroll buffer region to hear the last output again by
pressing Shift+Tab. You hear:

Scroll buffer region


Y equals zero point five four zero three
4 Move the cursor back to the command-line prompt by pressing Shift+Tab. You hear:

Ready prompt
5 Clear all text from the Command Window by entering the following statement in the Command
Window.

clc

You hear:

Ready prompt

The Command Window is ready for the next statement.

For more information, see “Use a Screen Reader in MATLAB Online” on page 2-35.

Zoom
You can adjust the zoom level in MATLAB. The way you zoom differs depending on whether you are
using MATLAB Online or an installed version of MATLAB.

In MATLAB Online, you can zoom in and out of the entire desktop by adjusting the zoom settings for
your web browser.

In an installed version of MATLAB, you can change the zoom level in the Editor and Live Editor. To
zoom in and out, hold the Ctrl key and move the scroll wheel. On macOS systems, use the Command
key instead.

Alternatively, you can zoom in and out using the available keyboard shortcuts.

Action Keyboard Shortcut


Zoom in Ctrl+Plus

On macOS systems, use Command+Shift+Plus


Zoom out Ctrl+Minus

On macOS systems, use Command+Shift


+Minus

2-24
Accessibility in MATLAB

Action Keyboard Shortcut


Reset Zoom Ctrl+Alt+0

On macOS systems, use Command+Alt+0

For tools such as the Command Window, Current Folder browser, and Workspace browser, you can
increase or decrease the displayed font size using font preferences. For more information, see “Zoom
and Change Desktop Fonts” on page 2-2.

Maximize Focus Area When Zooming

To maximize the space for your current area of focus when zooming, minimize the tools that you are
currently not using. In MATLAB Online, to minimize a tool, click its icon in the sidebar. For example,
if the MATLAB Online desktop is in the default layout with the Files panel and Workspace panel open
on the left side of the desktop, you can hide both tools by clicking the icon group for the two tools in
the left sidebar. If two or more tools are grouped together, you can minimize each individual tool by
clicking the Collapse
button to the left of
its title bar.

In an installed version of MATLAB, to minimize tools such as the Current Folder browser, Command
Window, Editor, and Live Editor, on the title bar of the tool, click the action menu button and select
Minimize. For example, to minimize the Current Folder browser, at top right of the Current Folder
browser, click the action menu button and select Minimize.

For more information about minimizing tools, see “Change Desktop Layout” on page 2-14.

Change MATLAB Desktop Colors


You can change the text and background colors for certain desktop tools in MATLAB, including the
Editor, Command Window, Current Folder browser, Workspace browser, and Import Wizard.

To change the text and background colors:

1 In the Command Window, type preferences Colors to open the Preferences window with the
MATLAB Colors Preferences page selected.
2 In the Desktop tool colors section, clear the Use system colors check box.

In MATLAB Online, the Use system colors check box is not available and this step can be
skipped.

2-25
2 Desktop

3 Use the Text and Background fields to change the colors. For example, select white for the text
color and black for the background color.

The Syntax Highlighting sample and Command Window sample areas show a preview of the
selected colors.

To restore the default text and background colors, click the Restore Default Colors button at the
bottom of the Preferences window.

In MATLAB Online, you also can use themes to change the colors of the MATLAB desktop.

To select a theme:

1 In the Command Window, type preferences Appearance to open the Preferences window
with the MATLAB Appearances Preferences page selected.
2 Select a MATLAB Theme. For example, select a dark theme.

For more information about the different ways to change the desktop colors in MATLAB, see “Change
Desktop Colors” on page 2-7.

Increase Clarity of Plots


You can increase the clarity of plots in MATLAB by changing the color and size of markers, lines, and
text within the plots. To change the color and size of markers, lines, and text, modify the properties of
the plot. The list of properties for a plot depends on the object type it creates. For more information,
see the documentation for the plot function you are using. You also can use the colororder function
to change the color palette used for the markers and lines within the plots.

For example, create a plot with three lines.

p = plot([1 2 3; 4 5 6],'LineWidth',2)
title("Three Colored Lines")
legend("Line 1","Line 2", "Line 3")

2-26
Accessibility in MATLAB

Enhance the distinction between the three lines using the LineWidth, Marker, MarkerEdgeColor,
and MarkerSize properties. For more information, see Line Properties.
p(1).LineWidth = 2;
p(1).Marker = "*";
p(1).MarkerEdgeColor = "b";
p(1).MarkerSize = 8;

p(2).LineWidth = 3;
p(2).Marker = "diamond";

p(3).LineWidth = 4;

2-27
2 Desktop

To change the font size for objects in a plot, you can use the fontsize function. For example,
increase the font size of the title, legend, and axes labels in the plot until they are more easily
readable.

fontsize(gcf,"increase")
fontsize(gcf,"increase")
fontsize(gcf,"increase")

To improve the contrast of lines and markers within a plot, you can use the colororder function and
specify the "dye" color palette. The colors on the "dye" palette meet international contrast ratio
standards for enhanced accessibility against a white background. For example, specify the "dye"
color palette for the plot.

colororder("dye");

2-28
Accessibility in MATLAB

Convert Data to Sound Using Sonification


You can convert data to sound using the sonify function. For example, convert a vector of sine
values to sound and return the sonified data s and sample rate Fs.

y = sin(1:10);
[s,Fs] = sonify(y);

You can use the sonified data with the audioplayer function to play, pause, resume, and stop the
sound. You also can write the sonified data to a WAV file using the audiowrite function.

See Also
matlab.fonts | sonify

Related Examples
• “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30
• “Use a Screen Reader in MATLAB Online” on page 2-35
• “Zoom and Change Desktop Fonts” on page 2-2
• “Change Desktop Colors” on page 2-7
• Accessibility Statement for MATLAB

2-29
2 Desktop

Use Keyboard Shortcuts to Navigate MATLAB


Using keyboard shortcuts to navigate MATLAB can increase productivity and is useful in situations
where using a mouse is not an option.

Installed MATLAB
If you have MATLAB installed on your system, this table describes the actions and related keyboard
shortcuts useful for navigating MATLAB without a mouse.

Action Keyboard Shortcut


Move to the next visible panel. Ctrl+Tab
Move to the previous visible panel. Ctrl+Shift+Tab
Move to the next tab in a panel. Ctrl+Page Down
Move to the previous tab in a panel. Ctrl+Page Up
Make an open tool the active tool. • Command Window: Ctrl+0
• Command History: Ctrl+1
• Current Folder: Ctrl+2
• Workspace: Ctrl+3
• Profiler: Ctrl+4
• Figure Palette: Ctrl+6
• Plot Browser: Ctrl+7
• Property Editor: Ctrl+8
• Editor: Ctrl+Shift+0
• Figures: Ctrl+Shift+1
• Web browser: Ctrl+Shift+2
• Variables Editor: Ctrl+Shift+3
• Comparison Tool: Ctrl+Shift+4

On macOS systems, use the Command key instead of the


Ctrl key.
Move between code and output in the Ctrl+Shift+O
Live Editor when output is on the right.
On macOS systems, use Option+Command+O instead.
Show access keys for the toolstrip tabs. Alt

Not supported on macOS systems.

2-30
Use Keyboard Shortcuts to Navigate MATLAB

Action Keyboard Shortcut


Select or open a toolstrip tab and show Press Alt to show the access keys for the toolstrip tabs and
the access keys for each item on the then <character> to select or open a tab, where
tab. <character> is the displayed access key for the desired
toolstrip tab.

For example, press Alt followed by H to select or open the


Home tab and display the access keys for the items on that
tab.

Not supported on macOS systems.


Select a toolstrip item. Press Alt and then <character> to select the current
toolstrip tab, where <character> is the displayed access
key for the current tab. Then, press <character> to select
a toolstrip item, where <character> is the displayed
access key for the desired item.

For example, press Alt followed by H to select the Home


tab and then S to create a new script.

Not supported on macOS systems.

You cannot customize most of these shortcuts. For information about customizable keyboard
shortcuts and how to view and modify them, see “Customize Keyboard Shortcuts” on page 2-45.

MATLAB Online

MATLAB Online provides access to MATLAB from a standard web browser. Because MATLAB Online
runs in a browser, navigation using the keyboard is slightly different.

This table describes the actions and related keyboard shortcuts useful for navigating MATLAB Online
without a mouse.

Action Keyboard Shortcut


Move forward through the different Ctrl+F6
areas of the MATLAB Online desktop,
including the toolstrip, Current Folder On macOS systems, use Command+F6 instead.
toolbar, sidebar panels, and Command
Window.
Move backward through the different Ctrl+Shift+F6
areas of the MATLAB Online desktop,
including the toolstrip, Current Folder On macOS systems, use Command+Shift+F6 instead.
toolbar, sidebar panels, and Command
Window.
Move into a tool, for example, into the Tab
current toolstrip tab.

2-31
2 Desktop

Action Keyboard Shortcut


Move between controls within a tool, Up/Down Arrow, Left/Right Arrow
for example, between toolstrip tabs or
between the items on a toolstrip tab.
Close controls within a tool, for Delete
example, documents in the Editor and
Live Editor.
Move between code and output in the Ctrl+Shift+O
Live Editor when output is on the right.
On macOS systems, use Option+Command+O instead.
Move focus between command prompt Shift+Tab
and scroll buffer
Open context menu. Shift+F10
Show access keys for the toolstrip. Alt

Not supported on macOS systems.


Open a toolstrip tab and show access Alt+<character>
keys for the toolstrip.
For example, pressing Alt followed by H accesses the
Home tab and displays access keys for the features
available on that tab.

Not supported on macOS systems.


Perform a search. Ctrl+Shift+Space

On macOS systems, use Command+Shift+Space instead.


Open Preferences Window Ctrl+,

On macOS systems, use Command+, instead.


Display a compact list of keyboard Ctrl+/
shortcuts.

Customizing shortcuts is not supported in MATLAB Online.

Navigate Figures in MATLAB Online


In MATLAB Online, you can explore plotted data using keyboard shortcuts. Once a figure is selected,
the shortcuts described above are slightly modified.

This table describes the actions and related keyboard shortcuts useful for navigating figures in
MATLAB Online without a mouse.

Action Keyboard Shortcut


Navigate Forward Tab

When focus is on the figure, this means Tab steps into the
axes. If there are multiple axes in a figure, and focus is on
the first axes, then Tab steps to the next axes.

2-32
Use Keyboard Shortcuts to Navigate MATLAB

Action Keyboard Shortcut


Reverse Navigation Shift+Tab

Navigate axes in the reverse order as Tab.


Navigate Down Ctrl+Down Arrow

If focus is on a set of axes, then Ctrl+Down Arrow focuses


the first focusable element within the axes. For example, if
a title is present, focus jumps from the axes to the title. If
no titles or labels are present, then focus jumps from the
axes to an object within the axes.
Navigate up Ctrl+Up Arrow

Focus shifts from an element to its parent element. For


example, if focus is on a line, then Ctrl+Up Arrow shifts
focus to the axes.

Additional Keyboard Shortcuts


In addition to navigation, keyboard shortcuts are useful for accessing other frequently used actions in
MATLAB.

This table describes several of these actions and their related keyboard shortcuts. For additional
keyboard shortcuts, see the documentation for a specific tool or feature.

Action Keyboard Shortcut


Cancel the current action. Esc (escape)

For example, if you click the name of the Edit menu, the
whole menu appears. Pressing Esc hides the menu again.

In the Function Browser, pressing Esc up to three times has


the following effects:

1 Dismiss the search history.


2 Clear the search field.
3 Close the Function Browser.
Interrupt MATLAB execution. Ctrl+C

On Windows and Linux systems, you also can use Ctrl


+Break. On macOS systems, you also can use Command+.
(period).

You cannot customize these shortcuts. For information about customizable keyboard shortcuts and
how to view and modify them, see “Customize Keyboard Shortcuts” on page 2-45.

2-33
2 Desktop

See Also

More About
• “Customize Keyboard Shortcuts” on page 2-45
• “Rerun Favorite Commands” on page 3-13
• “Customize MATLAB Toolbars” on page 2-12
• “Accessibility in MATLAB” on page 2-23

2-34
Use a Screen Reader in MATLAB Online

Use a Screen Reader in MATLAB Online


In MATLAB Online, you can use a screen reader and a keyboard to interact with the Command
Window, create and edit scripts and functions in the Editor and Live Editor, explore plotted data, and
navigate through the MATLAB desktop tools. MATLAB Online is tested with the NVDA screen reader
on Windows 10 running MATLAB Online in the Google Chrome browser. For more information about
NVDA, see Get Help on the NV Access website.

To start using MATLAB Online, go to https://matlab.mathworks.com/ and click the Open


MATLAB Online button.

Screen Reader Tips


Reduce Blank Lines in Output

To improve the screen reader experience when working in the Command Window, suppress excess
blank lines in output for the current session using the format command.

format compact;

To maintain the compact format across all future sessions, use settings to set the personal value for
line spacing in output display.

s = settings;
s.matlab.commandwindow.DisplayLineSpacing.PersonalValue = "compact";

Modifying Graphics Objects

When working with graphics objects, view and modify properties programmatically or use the
Property Inspector. For example, the plot function returns a chart line object. You can use dot
notation to view and set properties.

p = plot(1:10,1:10);
p.LineWidth = 3;

Alternatively, you can set properties using name-value arguments when creating the object, such as
plot(1:10,1:10,"LineWidth",3).

For more information about viewing and modifying graphics object properties, see “Modify Graphics
Objects”.

Accessing MathWorks Documentation

For the best experience when viewing and searching the documentation using a screen reader, open
it in a separate browser tab or window at https://www.mathworks.com/help/.

Using MATLAB with -nodesktop Option

If you run MATLAB without the desktop using the -nodesktop startup option, these tips can help
improve your screen reader experience:

• Use the format function to suppress excess blank lines in output, making it easier to navigate
diary files. For more information, see “Reduce Blank Lines in Output” on page 2-35.

2-35
2 Desktop

• Include a filename when calling the diary function to save the Command Window text to a
separate file. You can call the diary function multiple times during a MATLAB session with
different filenames to save different sets of text to different files.

For a more accessible alternative to using MATLAB with the -nodesktop option, use the Command
Window Only layout in MATLAB Online instead. Using the Command Window Only layout in MATLAB
Online gives you access to more keyboard shortcuts and the full functionality of the MATLAB desktop.
To select the Command Window Only layout in MATLAB Online, go to the Home tab, and in the
Environment section, click the Layout button and then select Command Window Only.

Navigate MATLAB Using a Screen Reader


When you first start MATLAB Online, the cursor is in the Command Window.

To move forward through the different areas of the MATLAB Online desktop, press Ctrl+F6 (or
Command+F6 on macOS systems). To move backward, press Ctrl+Shift+F6 (or Command+Shift
+F6 on macOS systems). You also can use a keyboard shortcut to navigate directly to some open
tools.

This table describes the different areas of the MATLAB Online desktop and their default positions.

Area Position Description


Toolstrip Top of desktop By default, the toolstrip includes three tabs:
Home, Plots, and Apps.

To navigate between the toolstrip tabs, use the


arrow keys. To enter and navigate within the
toolstrip tabs, use the Tab key.
Current Folder toolbar Top of desktop View and change the current folder.
underneath toolstrip
Files panel Left side of desktop Manage files and folders in MATLAB. Actions
include viewing, creating, opening, moving, and
renaming files and folders in the current folder.
Workspace panel Left side of desktop View and manage the contents of the workspace
underneath Files panel in MATLAB.
Command Window Bottom middle of Enter individual statements at the command line
desktop and view the resulting output.
Editor and Live Editor Middle of desktop, Edit or create files.
above Command
Window
Docked figures Middle of desktop, Plot data in embedded figures.
above Command
Window

For example, you can use the toolstrip to send feedback about the current release:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 With the cursor in the Command Window, press Ctrl+F6 to navigate to the toolstrip. You hear:

2-36
Use a Screen Reader in MATLAB Online

Toolstrip region
Toolstrip tab control
Home tab selected one of three
3 Press the Tab key to enter the Home tab and then continue pressing the Tab key until you reach
the Feedback button. You hear:

Feedback button
Send us feedback or report a bug
4 Press Enter. The Send Feedback dialog box opens.
5 Pres Esc twice to close the dialog box without sending feedback.

For more information about the MATLAB desktop, see “Change Desktop Layout” on page 2-14.

Enter Statements in the Command Window Using a Screen Reader


As you work in MATLAB, you can enter individual statements in the Command Window using a screen
reader and a keyboard.

For example:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 With the cursor in the Command Window, create a variable named x by entering this statement
in the Command Window.

x = 1

MATLAB adds x to the workspace and displays the results in the Command Window. You hear:

x equals one
Ready prompt
One variable added to workspace

When you hear Ready prompt, the Command Window is ready for the next statement at the
command prompt (>>).
3 Create another variable y by entering this statement in the Command Window.

y = cos(x)

You hear:

y equals zero point five four zero three


Ready prompt
One variable added to workspace
4 Set the value of x to the value of y by entering this statement in the Command Window.

x = y

You hear:

x equals zero point five four zero three


Ready prompt
5 Move the cursor to the Command Window scroll buffer region to hear the last output again by
pressing Shift+Tab. You hear:

2-37
2 Desktop

Scroll buffer region


x equals zero point five four zero three
6 Move the cursor back to the command prompt by pressing Shift+Tab. You hear:

Ready prompt
7 Save the variables from the current workspace in the file test.mat by entering this statement in
the Command Window.

save test.mat

MATLAB saves the file in the current folder. You hear:

Ready prompt
8 Remove the variables from the workspace by entering this statement in the Command Window.

clear

You hear:

All variables removed from workspace


Ready prompt
9 Clear all text from the Command Window by entering this statement in the Command Window.

clc

You hear:

Ready prompt

The Command Window is ready for the next statement.

For more information about entering statements in the Command Window, see “Enter Statements in
Command Window” on page 3-2.

Create Scripts Using a Screen Reader


Scripts are the simplest kind of program file because they have no input or output arguments. They
are useful for automating series of MATLAB commands, such as computations that you want to
perform repeatedly from the command line or series of commands you want to reference.

For example, create, run, and edit the script myrandom.m:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 Navigate to the toolstrip by pressing Ctrl+F6 until you hear:

Toolstrip region
Toolstrip tab control
Home tab selected one of three
3 Press the Tab key to enter the Home tab. The New Script button is selected. You hear:
Home property page
File grouping
New script button
Create a new script in the current folder

2-38
Use a Screen Reader in MATLAB Online

4 Press Enter to create a new script. MATLAB creates the script file and opens it in the Editor. You
hear:

Untitled property page


Edit multiline
Line one
5 Add this code that generates an array of random numbers and then calculates the size and mean
of the array.

n = 50;
r = rand(n,1);
sz = size(r)
m = mean(r)
6 Press Ctrl+S to save the file. MATLAB opens the Save As dialog box. You hear:

Save as dialog

Alternatively, you can open the Save As dialog box using the Save button on the toolstrip.
7 Enter a name for the script. For example, enter the name myrandom.m. Press Enter to save the
file.
8 To run the script, make sure that focus is inside the script, and then press F5. If focus is not
inside the script, pressing F5 reloads MATLAB Online in the browser.

MATLAB runs the script and displays the output in the Command Window. You hear:

Four variables added to workspace


sz equals fifty one
m equals zero point four eight nine nine
Ready prompt

Alternatively, you can run the script using the Run button on the toolstrip.
9 Use the arrow keys to navigate through the lines in the script and edit the code. For example, go
to line 1 in the code by pressing the Up Arrow key until you hear:

Line one n equals fifty


10 Go to the end of line 1 by pressing the Right Arrow key until you hear:

Line feed
11 Delete the semicolon (;) and save your changes by pressing Ctrl+S.
12 Press F5 to run the edited script. You hear:

n equals fifty
sz equals fifty one
m equals zero point four five zero four
Ready prompt

For more information about creating scripts, see “Create Scripts”.

Create Live Scripts Using a Screen Reader


Live scripts and live functions are program files useful for interacting with a series of MATLAB
commands. Live scripts contain output and graphics with the code that produced them, together in a
single interactive environment called the Live Editor.

2-39
2 Desktop

For example, create and run a live script that calculates the area and volume of a sphere:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 Navigate to the toolstrip by pressing Ctrl+F6 until you hear:

Toolstrip region
Toolstrip tab control
Home tab selected one of three
3 Press the Tab key twice to enter the Home tab and select the New Live Script button. You hear:
New live script button
Create a new live script in the current folder

4 Press Enter to create a new live script. MATLAB creates the live script file and opens it in the
Live Editor. You hear:

Untitled.mlx property page


Edit multiline
Code line one
5 Add this code that creates a sphere with a radius of 1 and then calculates the surface area and
volume of the sphere.

[x,y,z] = sphere;
r = 1;
A = 4*pi*r^2
V = (4/3)*pi*r^3
6 To run the live script, make sure that focus is inside the live script, and then press F5. If focus is
not inside the script, pressing F5 reloads MATLAB Online in the browser.

MATLAB runs the live script and displays the output to the right of the code, by default. You hear:

Running untitled.mlx
untitled.mlx run complete two outputs created
Six variables added to workspace
Ready prompt

Alternatively, you can run the live script using the Run button on the toolstrip.
7 Move focus to the output by pressing Ctrl+Shift+O. You hear:

Variable output
V equals four point one eight eight eight
8 Press the Up Arrow key to move to the previous output. You hear:

Variable output
A equals twelve point five six six four
9 Move focus back to the code by pressing Ctrl+Shift+O. You hear:

Edit multiline
Code line three has output
A equals four star pi star r two
10 Go to the top of the document by pressing the Up Arrow key until you hear:

Code line one


x y z equals sphere
11 Press Alt+Enter to insert a line of text above the first line of code.

2-40
Use a Screen Reader in MATLAB Online

12 Add this text to the line:

Calculate Volume and Area of Sphere


13 Press Ctrl+Alt+L to make the text line a heading.

For more information about creating live scripts, see “Create Live Scripts in the Live Editor”.

Open and Close Scripts and Live Scripts Using a Screen Reader
You can open and close existing MATLAB code files, including scripts and live scripts, using a screen
reader and a keyboard.

For example, open and close myrandom.m:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 With the cursor in the Command Window, open myrandom.m by entering this statement in the
Command Window.

open myrandom.m

You hear:

Edit multiline
Start of document
line one n equals 50

Alternatively, you can open the script using the Open button on the toolstrip.
3 To close myrandom.m, press Ctrl+Shift+F6 to move out of the document. You hear:

Tab control
myrandom.m tab selected
C MyWork myrandom.m one of one
4 Press the Delete key to close the document. You hear:

Command Window region


Command Window edit multiline
Greater greater

For more information about additional file actions, see “Manage Files and Folders” on page 6-35.

Explore Plotted Data Using a Screen Reader


Plotting data in figures allows visualization of data. You can use figures to quickly survey data and
display the output of code. You can explore figures using a screen reader and a keyboard.

For example:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 With the cursor in the Command Window, create a variable named x by entering this statement
in the Command Window.

x = 1:5

2-41
2 Desktop

MATLAB adds x to the workspace and displays the results in the Command Window. You hear:

x equals one two three four five


Ready prompt
One variable added to workspace

When you hear Ready prompt, the Command Window is ready for the next statement at the
command prompt (>>).
3 Create another variable y by entering this statement in the Command Window.

y = 2*x

You hear:

y equals two four six eight ten


Ready prompt
One variable added to workspace
4 Plot the data of y against the data of x by entering this statement in the Command Window.

plot(x,y)

You hear:

Figure 1
The current axes object contains one object of type line
5 Move the cursor back to the Command Window by pressing Ctrl+F6 until you hear:

Command Window button


heading level two
6 Enter the Command Window by pressing the Tab key. You hear:

Command Window region


Command Window edit multiline
Greater greater
7 Add a title and legend to the figure.

title("My Plot")
legend

You hear:

Figure 1
The current axes object contains one object of type line
8 Navigate to the new figure tab by pressing Ctrl+F6 until you hear:

Tab control
Figure 1 tab selected
Figure 1, one of one
9 Press Tab twice to select the figure axes.

You hear:

Figure 1
The current axes object contains one object of type line
The axes object with title my plot contains one object of type line

2-42
Use a Screen Reader in MATLAB Online

10 Type NVDA Modifier Key+Space to switch to focus mode for the figure axes. By default, the
NVDA modifier key is the Insert key.
11 Type Ctrl+Down Arrow to select the title inside the axes.

You hear:

Text my plot
12 Press Tab to select the line object. If axes contain multiple objects, press Tab to navigate
through them.

For more information about exploring plotted data, see “Interactively Explore Plotted Data”.

Delete Files Using a Screen Reader


You can delete files and folders using a screen reader and a keyboard.

For example, to delete the script myrandom.m in your current folder:

1 On a Windows system with the NVDA screen reader running, open a Google Chrome browser and
start MATLAB Online.
2 With the cursor in the Command Window, delete myrandom.m by entering this statement in the
Command Window.

delete myrandom.m

You hear:

Ready prompt

Alternatively, you can delete the script using the Files panel:

1 Navigate to the Files panel by pressing Ctrl+F6 until you hear:

Complimentary landmark files button heading level two


2 The Files panel contains a table with the list of files and folders in the current folder. Press the
Tab key to select the table. You hear:

Files region
Table
3 Select myrandom.m by pressing the Up or Down Arrow key until you hear:

myrandom.m script preview row collapsed level one


4 Press the Delete key. The Delete File dialog box opens and you hear:

Delete file dialog


Question icon are you sure you want to delete this file?
Clickable yes button delete file
Button yes button no
5 Press Enter to delete the file.

For more information about additional file actions, see “Manage Files and Folders” on page 6-35.

2-43
2 Desktop

See Also

More About
• “Accessibility in MATLAB” on page 2-23
• “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30
• “Desktop Basics”

2-44
Customize Keyboard Shortcuts

Customize Keyboard Shortcuts

Keyboard shortcuts are useful for accessing desktop features quickly. To optimize your experience,
you can customize the current set of keyboard shortcuts in MATLAB.

There are several ways you can modify the current set of keyboard shortcuts. You can:

• Create new keyboard shortcuts or modify existing ones.


• Choose among available sets of keyboard shortcuts.
• Create customized sets of keyboard shortcuts or use existing customized sets.

To view or modify the current set of keyboard shortcuts, use the Keyboard Shortcuts Preferences
options in the Preferences Window. To open the Keyboard Shortcuts Preferences page in the
Preferences Window, go to the Home tab, and in the Environment section, click Preferences.
Then, select MATLAB > Keyboard > Shortcuts.

View Keyboard Shortcuts


For actions performed with a menu item, keyboard shortcuts appear in the menu itself. This is true
whether the menu item is in the toolstrip or in a context menu. If a menu item does not display a
keyboard shortcut, then a keyboard shortcut for the action does not exist.

For actions that are not performed with a menu item, to find keyboard shortcuts, open the Keyboard
Shortcuts Preferences page in the Preferences Window. Then, in the search box, enter the name of
the tool or action for which you want to see the keyboard shortcuts. For example, type Editor
clear to find the keyboard shortcut for clearing selected text in the Editor.

To view the shortcuts for an action, select the action name. For example, select Clear Selection.
MATLAB displays the keyboard shortcuts for the selected action. For example, the keyboard shortcut
for the Clear Selection action in the Editor is the Escape key.

2-45
2 Desktop

Create a List of All Keyboard Shortcuts in a Set

You can create a list of all the keyboard shortcuts in the current set by copying them to the clipboard
and pasting them in a text file or spreadsheet application, such as Microsoft Excel®. For the best
formatting, use a spreadsheet application. To copy all the keyboard shortcuts, open the Keyboard
Shortcuts Preferences page in the Preferences Window. Click the Actions button and from the
drop-down menu, choose Copy to Clipboard. Paste the data into the desired application.

Customize Keyboard Shortcuts for Individual Actions

Customizing a keyboard shortcut is useful if you frequently perform an action and the action does not
have a keyboard shortcut defined, or if the defined keyboard shortcut is hard to use or conflicts with a
different shortcut. For an overview on customizing keyboard shortcuts, watch the Customizable
Keyboard Shortcuts video. You must have an internet connection to watch the video.

To customize a keyboard shortcut:

1 Open the Keyboard Shortcuts Preferences page in the Preferences Window and, in the search
box, type an existing keyboard shortcut or the name of an action, tool, or menu.

For example, you can type Ctrl+R (shortcut), Delete (action), Command Window (tool), or File
(menu).

You can enter most keyboard shortcuts by either pressing keystrokes or typing the key names. If
using keystrokes for a keyboard shortcut does not work, try typing the key names instead. For
example, if pressing the Ctrl key and then R does not work, try typing the text Ctrl+R.

MATLAB displays the list of matching actions for which you can customize or define a keyboard
shortcut. If you specify the name of a tool, MATLAB displays actions associated with the tool or
menu, as well as any action names that contain the specified text.
2 Select the name of the action for which you want to define or modify a keyboard shortcut.
3
Click the Add button .

An editable text box opens in the Shortcut column.

2-46
Customize Keyboard Shortcuts

4 Specify the keystrokes you want to use for the keyboard shortcut.

A keystroke can be a single key or the combination of a modifier (Alt, Shift, or Ctrl) and another
key. Specify a keystroke by performing it, not by typing the names of the keys character by
character. For example, press the Ctrl key and the Y key. Do not type C-t-r-l-+-Y.

Alternatively, you can choose a shortcut from the drop-down menu.

To specify multiple keystrokes for one action, or to limit the number of keystrokes for an action,
click the down arrow next to the key icon in the Shortcuts box. Then, select either Limit to
1 keystroke, Limit to 2 keystrokes, or Limit to 3 keystrokes. For example, to
specify Ctrl+Y, Shift+Z, F9 as the three keystrokes for an action, select Limit to 3
keystrokes and then type the keystrokes.
5 In the Tools with shortcut column, click the down arrow and select which tools you want to
assign the keyboard shortcut to.

6 Evaluate and resolve any conflicts, indicated by the error icon and informational icon . The
error icon indicates that two different actions within the same tool have the same shortcut.
The informational icon indicates that two different actions in two different tools have the same
shortcut.

There is no requirement to resolve keyboard shortcut conflicts. However, if the same shortcut
specifies two different actions, the shortcuts can be confusing to use. Resolving all conflicts
indicated by the error icon is recommended, although in some situations, resolving a conflict
might be unnecessary. For example, resolving the conflict might be unnecessary if the conflict is
temporary or the two actions are associated with different modes of the same tool. Resolving
conflicts indicated by the informational icon is recommended if you use both tools frequently
and you perform both actions frequently.

To resolve a conflict, change or delete shortcuts such that there is a one-to-one correspondence
between shortcuts and frequently used actions.
7 Click OK or Apply.

New or modified keyboard shortcuts become available immediately. Changed shortcuts that
correspond to menu items immediately appear in the menu.

To delete a keyboard shortcut for a selected action, select the keyboard shortcut that you want to
delete and click the Delete button .

2-47
2 Desktop

Restore Default Keyboard Shortcut Sets

If you modify keyboard shortcuts, and then decide you do not want to keep the changes, you can
restore the default shortcuts. To restore the default state of a keyboard shortcut, click the Actions
button and select Undo Modifications to <Set Name> Default Set (modified), where <Set
Name> is the name of the modified default set.

Note Undoing modifications reverts all keyboard shortcuts changes that you made to the set. You
cannot undo modifications on a shortcut-by-shortcut basis.

Restrictions When Customizing Keyboard Shortcuts

There are some actions and tools for which you cannot change the keyboard shortcuts. Actions for
which the keyboard shortcut cannot be customized do not appear when you search for them in the
Keyboard Shortcuts Preferences page in the Preferences Window. Examples of these actions
include canceling the current action (Esc), interrupting MATLAB execution (Ctrl+C), and some of the
navigational actions described in “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30.

In addition, you cannot change the keyboard shortcuts associated with these tools or portions of
tools:

• Figure windows — For example, you cannot modify the keyboard shortcut, Ctrl+S, for saving a
MATLAB .fig file.
• Toolboxes — For example, you cannot modify keyboard shortcuts in the SimBiology® desktop.
• Incremental search — You can modify the keyboard shortcuts for initiating a forward or backward
incremental search. However, you cannot change the keyboard shortcuts that you use within
incremental search mode, such as Ctrl+Shift+S to search forward.
• Dialog boxes — For example, you cannot create a keyboard shortcut for the OK button.

Manage Sets of Keyboard Shortcuts


Select Set of Keyboard Shortcuts

By default, MATLAB uses the keyboard shortcut settings for your current platform. To select a
different set of keyboard shortcuts, open the Keyboard Shortcuts Preferences page in the
Preferences Window and, in Active settings, select from the available options. To use a keyboard
shortcut settings file that is on your system but not in the Active settings list, select Browse... to
find and select the desired file.

This table lists the keyboard shortcut settings files installed with MATLAB.

Operating Keyboard Shortcut Settings Files Installed with MATLAB


System
Windows • Windows Default Set (Default)
• Emacs Default Set
Linux • Emacs Default Set (Default)
• Windows Default Set
macOS • Macintosh Default Set (Default)

2-48
Customize Keyboard Shortcuts

You also can download keyboard shortcut settings files from File Exchange. For example, to restore
the MATLAB default keyboard shortcuts that were in place for MATLAB Version 7.9 (R2009a) and
earlier releases, go to File Exchange and search for MATLAB Desktop R2009a Default
Keyboard Shortcut sets. Download and extract the set and then select it as the active settings
file. A valid keyboard shortcut settings file appears with a keyboard key icon .

Compare Sets of Keyboard Shortcuts

To compare the current set of keyboard shortcuts to another set:

1 Open the Keyboard Shortcuts Preferences page in the Preferences Window and click the
Actions button .
2 From the drop-down menu, choose the set of keyboard shortcuts to which you want to compare
the current set.
3 The Comparison Tool opens and displays the two keyboard shortcut sets side-by-side. For more
information about how to read the results, see “Compare Text Files” on page 6-11.

Save Set of Keyboard Shortcuts to File

Saving a set of keyboard shortcuts to a settings file is useful if you want to:

• Save the changes you make to a default keyboard shortcut set to a new set.
• Use a set of customized keyboard shortcuts on another system running MATLAB.
• Overwrite a previously saved set of keyboard shortcuts.
• Share a set of keyboard shortcuts with others, for example, on File Exchange.

To save a keyboard shortcut settings file, open the Keyboard Shortcuts Preferences page in the
Preferences Window. Then, click the Actions button and select Save As. MATLAB saves the file
as an .xml file in the folder that you specify.

You cannot overwrite the default settings files that install with MATLAB. MATLAB saves modifications
that you make to a default set using the name of the default set appended with the text (modified),
for instance, Windows default (modified).

Delete Set of Keyboard Shortcuts

To delete a previously saved set of keyboard shortcuts, open the Keyboard Shortcuts Preferences
page in the Preferences Window and in Active settings, select the set of keyboard shortcuts that you
want to delete. Click the Actions button and select Delete filename, where filename is the
name of a keyboard shortcut set you want to delete. You cannot delete default keyboard shortcut sets,
such as Windows Default Set.

See Also

More About
• “Use Keyboard Shortcuts to Navigate MATLAB” on page 2-30
• “Rerun Favorite Commands” on page 3-13
• “Customize MATLAB Toolbars” on page 2-12

2-49
2 Desktop

Set Print Options for Command Window and Editor


In this section...
“Specify Layout Options” on page 2-50
“Add Header” on page 2-50
“Change Fonts” on page 2-52

You can customize how pages look when printing from the Command Window and Editor.

To specify page setup options, open the Page Setup dialog box using one of these methods:

• Command Window — Right-click in the Command Window and select Page Setup.
• Editor — Go to the Editor tab, and in the File section, select Print > Page Setup.

The Live Editor has a different way of controlling how pages look when printing. To change the page
setup options when exporting in the Live Editor, use settings. For more information, see the
matlab.editor.export settings described in matlab.editor.

Specify Layout Options


To specify layout options when printing, in the Page Setup dialog box, select the Layout tab. (On
macOS platforms, select MATLAB in the Settings menu to see the Layout tab.) Then, select from
the available options as described in the table below. A preview pane shows a sample document with
the selected layout options.

Layout Option Description


Print header Include a header at the top of each printed page.
Print line numbers Print line numbers.
Wrap lines Wrap any lines that are longer than the printed page width.
Otherwise, the line is cut off at page boundaries.
Syntax highlighting Specify how MATLAB elements appear when printed. Options
include:

• Black and white text — MATLAB elements print in black and


white with no highlighting.
• Colored Text — MATLAB elements print using the syntax
highlighting colors displayed in the Command Window or
Editor.
• Styled Text — Keywords print in bold, comments print in
italics, and all other text prints as plain text. Output is not
styled.

Add Header
When printing from the Command Window or Editor, you can include a header on each printed page.
The header includes information such as the current date and time, the name of the file you are

2-50
Set Print Options for Command Window and Editor

printing, and the page number. To include a header, in the Page Setup dialog box, select the Layout
tab and then select Print header.

To change the format and layout of the header, select the Header tab and then select from the
available options, as described in the table below. (On macOS platforms, select MATLAB in the
Settings menu to see the Header tab.) The preview area shows a sample of the header with the
selected options.

Header Option Description


Page number Format for the page number. Options include # of n, Page #, and
#/n
Border Border style for the header. Options include Single line, Double
line, Box, Shaded box, and None.
Layout Layout style for the header. Options include:

• Standard one line

• Standard two lines

• Simple one line

• Simple two lines

(This option is not available for Command Window printing.)

For example, in the Editor, print the example file fourier_demo2.m with a standard two line header
and a double line border.

2-51
2 Desktop

Change Fonts
You can specify the font to use when printing. By default, MATLAB uses the Editor or Command
Window font when printing.

To specify a different font to use when printing, follow these steps:

1 In the Page Setup dialog box, select the Fonts tab. (On macOS platforms, select MATLAB in the
Settings menu to see the Fonts tab.)
2 In the Choose font field, select Header to change the font for the header text, or Body to
change the font for all of text in Command Window or Editor except for header text.
3 Select Use custom font and then specify the font name, style, and size. The Sample area shows
a preview of the selected font.

See Also
print | matlab.editor

Related Examples
• “Print Figure from File Menu”
• “Zoom and Change Desktop Fonts” on page 2-2
• “Change Desktop Colors” on page 2-7

2-52
Web Browsers and MATLAB

Web Browsers and MATLAB

About Web Browsers and MATLAB


From MATLAB, Web sites and documents can display in the MATLAB web browser or your system
web browser, such as Mozilla® Firefox®

MATLAB uses the different browsers to display different types of information:

• Web sites and documentation display in your system web browser.


• Other HTML files display in the MATLAB web browser. For example, after publishing a MATLAB
program file to HTML, the HTML file displays in the MATLAB web browser:

System Web Browser

The system web browser that MATLAB uses depends on your platform:

2-53
2 Desktop

• On Microsoft Windows and Apple Macintosh platforms, MATLAB uses the default web browser for
your operating system.
• On UNIX® platforms, MATLAB uses the Mozilla Firefox web browser. You can specify a different
system web browser for MATLAB using Web preferences on page 2-55.

MATLAB Web Browser

The MATLAB web browser may not support all the features that a particular website or HTML page
uses. For example, the MATLAB web browser does not display .bmp (bitmap) image files. Instead
use .gif or .jpeg formats for image files in HTML pages.

To display an HTML document in the MATLAB web browser, double-click the document name in the
Current Folder browser.

Specify Proxy Server Settings for Connecting to the Internet


If your network uses a firewall or another method of protection that restricts Internet access, provide
information about your proxy server to MATLAB. Be aware that:

• MATLAB supports non-authenticated, basic, digest, and NTLM proxy authentication types.
• If a proxy with basic authentication is specified, MATLAB only supports HTTP connections. HTTPS
connections are not supported.
• You cannot specify the proxy server settings using a script.
• There is no automated way to provide the proxy server settings your system web browser uses to
MATLAB.

To specify the proxy server settings:

1 On the Home tab, in the Environment section, click Preferences. Select MATLAB > Web.
2 Select the Use a proxy server to connect to the Internet check box.
3 Specify values for Proxy host and Proxy port.

Examples of acceptable formats for the host are: 172.16.10.8 and ourproxy. For the port,
enter an integer only, such as 22. If you do not know the values for your proxy server, ask your
system or network administrator for the information.

If your proxy server requires a user name and password, select the Use a proxy with
authentication check box. Then enter your proxy user name and password.
4 Ensure that your settings work by clicking the Test connection button.

MATLAB attempts to connect to https://www.mathworks.com:

• If MATLAB can access the Internet, Success! appears next to the button.
• If MATLAB cannot access the Internet, Failed! appears next to the button. Correct the values
you entered and try again. If you still cannot connect, try using the values you used when you
authenticated your MATLAB license.
5 Click OK to accept the changes.
6 Restart MATLAB to enable the changes.

2-54
Web Browsers and MATLAB

Specify the System Web Browser for Linux Platforms


On Linux platforms, you can specify the system browser to use. Specifying the system web browser is
not supported on Windows and Mac platforms.

To specify the system web browser:

1 On the Home tab, in the Environment section, click Preferences. Select MATLAB > Web.
2 Under System Web browser, in the Command field, specify the system command to open the
browser, for example, opera, which opens the Opera Web browser.
3 Add options for opening your system web browser in the Options field. For example, geometry
1064x860 specifies the size of the window for Opera.
4 Click OK.

Note If you specify Firefox as the system web browser using the system command firefox, specify
a display option to ensure that the browser opens correctly.

See Also
web

More About
• “Web Preferences” on page 2-67

2-55
2 Desktop

Manage Your Licenses


You can manage many licensing-related tasks, such as activating licenses, deactivating licenses, or
updating licenses, through MATLAB or your MathWorks Account on www.mathworks.com.

Note Some options for license actions require an internet connection. If your internet connection
requires a proxy server, use MATLAB web preferences to specify the server host and port. See
“Specify Proxy Server Settings for Connecting to the Internet” on page 2-54 for more information.

Update Current Licenses


The simplest way to update your license file is from within MATLAB. You should perform this task
within your MathWorks Account only if you cannot access MathWorks from your computer. For
additional details on updating licenses, see “Update Your License”, or, if you are a license
administrator, see “Update Network License”.

User Interface Description


MATLAB On the Home tab, in the Resources section, select Help > Licensing >
Update Current Licenses, and follow the prompts to update your licenses.
When you restart MATLAB, it will use any updated licenses.

If the Update Current Licenses option is not present, then your license
updates automatically and no action is required from you.
MathWorks Account 1 Sign in to mathworks.com. If you are already signed in, select My
Account from the drop-down menu under your account icon.
2 Under My Software, click the license you want to update. If you have
more licenses than fit on the screen, click View additional Licenses or
Trials and then click the license you want. Clicking a license takes you to
the License Center.
3 In the License Center, click the Install and Activate tab.
4 Click Update License File. If this option is not present, then the license
updates automatically and no action is required from you.
5 Click one of the icons under Get License File. You can download the
license file or have it emailed to you.
6 Follow all prompts.

MathWorks retrieves the most current version of the license file for the license.
You need to restart MATLAB.

Activate Software
The simplest way to activate your software is from within MATLAB. You should perform this task
within your MathWorks Account only if your computer cannot communicate with MathWorks. For
additional details on activation, see “Activate MATLAB Installation Manually”.

2-56
Manage Your Licenses

User Interface Description


MATLAB On the Home tab, in the Resources section, click Help > Licensing >
Activate.

MATLAB starts the activation application, which walks you through the
activation process. Answer the questions on each dialog box, select the license
you want to activate, and click Activate.
MathWorks Account 1 Sign in to mathworks.com. If you are already signed in, select My
Account from the drop-down menu under your account icon.
2 Under My Software, click the license you want to activate. If you have
more licenses than fit on the screen, click View additional Licenses or
Trials, and then click the license you want.
3 Click the Install and Activate tab.
4 Click Activate to Retrieve License File or Activate a Computer.
5 Follow all prompts.

Deactivate Software
Although you can deactivate the software from within MATLAB, if you cannot access the computer to
deactivate, you can still deactivate the software from your MathWorks Account.

For more details on deactivating MathWorks software, see “Deactivate MATLAB License”.

User Interface Description


MATLAB On the Home tab, in the Resources section, click Help > Licensing >
Activate > Deactivate.

MATLAB displays a list of all your MathWorks licenses on this computer, with
their status. When you select a license and click Deactivate, MATLAB
deactivates all releases on this computer associated with the license, and
updates the licensing information at the MathWorks website. You will not be
able to use MathWorks software with that license on this computer.

If you are not connected to the Internet, MATLAB deactivates the licenses on
your computer but cannot update the corresponding license information stored
at the MathWorks website. In this scenario, MATLAB returns a deactivation
string. To complete deactivation, save a copy of this string, go to a computer
with an internet connection, and visit the License Center at the MathWorks
website. There you can sign in to your MathWorks Account and enter the
deactivation string.

2-57
2 Desktop

User Interface Description


MathWorks Account 1 Sign in to mathworks.com. If you are already signed in, select My
Account from the drop-down menu under your account icon.
2 Under My Software, click the license you want to deactivate. If you have
more licenses than fit on the screen, click View additional Licenses or
Trials, and then click the license you want.
3 Click the Install and Activate tab.
4
Find the activated computer in the list, then click the deactivate icon
on the right-hand side of the display.
5 Follow all prompts.

MathWorks deactivates all releases on the specified computer, and updates the
licensing information in License Center.

Link a License to Your Account


User Interface Description
MATLAB You cannot perform this task from within MATLAB.
MathWorks Account 1 Sign in to mathworks.com. If you are already signed in, select My
Account from the drop-down menu under your account icon.
2 Under My Software, click Link an additional license.
3 Follow all prompts.

If you are linking a network license, you may need to get the license number
from your organization's license administrator.

Get a Trial
Start a free 30-day trial of MathWorks software.

Although you can get a trial from within MATLAB or from your MathWorks Account, the simplest way
is to go directly to Free MATLAB Trial on mathworks.com.

User Interface Description


MATLAB To get a trial, go to Add-Ons > Get Add-Ons. Click on a toolbox, and then
click Get Trial. Follow all prompts.
MathWorks Account 1 Sign in to mathworks.com. If you are already signed in, select My
Account from the drop-down menu under your account icon.
2 Under My Software, click Get a trial. Follow all prompts.

See Also
license

2-58
Manage Your Licenses

Related Examples
• “Install Products”
• “Administer Network Licenses”

2-59
2 Desktop

Update an Existing Installation


You can download and install a more recent version of the release of MATLAB that you currently have
installed. For example, if you have R2020a installed, you might be able to download a more recent
version of R2020a. This version is called a MATLAB update. When you install a MATLAB update, you
get not only the most recent update for your version but also all previous updates for your version as
well.

Update from Notifications


Since R2019a

If a more recent version is available, a notification displays in MATLAB when you start the program.

To install the MATLAB update, click the notification icon and then select Install Update. If you click
the notification but decide not to install the update, the notification is cleared; however, you can still
install the update at a later time.

Check for Updates


Since R2016b

You also can check for updates manually. You must have an active internet connection to check for
and update your installation.

On the Home tab, click Help > Check for Updates. The Add-On Manager opens with the Updates
tab selected. If there is an update available for your version of MATLAB, click the Update button to
the right of the update name to install it. If there is no update available for your version or if you have
already installed the latest update, MATLAB displays that information.

In R2019a: On the Home tab, click Help > Check for Updates > Products. If there is an update
available, click Install Update.

Before R2019a: On the Home tab, click Add-Ons > Check for Updates > Products.

See Also

More About
• “Get New MATLAB Release”
• “Get and Manage Add-Ons” on page 8-2

2-60
macOS Platform Conventions

macOS Platform Conventions


In this section...
“Mouse Instructions and macOS Platforms” on page 2-61
“Navigating Within the MATLAB Root Folder on macOS Platforms” on page 2-61
“MATLAB Dock Menu” on page 2-61

Mouse Instructions and macOS Platforms


The documentation typically presents conventions for Microsoft Windows platforms. Therefore, some
conventions and operations differ on the macOS platform from those that appear in the rest of the
documentation. The intended action for the macOS platform is typically obvious. Mouse operations
follow macOS conventions.

Make the following replacements to adjust documented mouse instructions for Macintosh platforms if
you are using a one-button mouse:

• Replace right-click with Ctrl+click


• Replace middle-click with Command+click

Navigating Within the MATLAB Root Folder on macOS Platforms


On macOS platforms, MATLAB is installed as an application bundle. The root folder, the string
returned by the matlabroot command, has a .app extension.

To view the contents of the MATLAB root folder in the Mac Finder, right-click the MATLAB
application bundle, and then select Show Package Contents from the context menu.

To view the content of the MATLAB root folder from within MATLAB:

1
On the Home tab, in the File section, click .
2 In the File Browser dialog box, press Command+Shift+G to open the Go To Folder dialog box.
3 Enter the full path to a folder within the MATLAB application package, for example, /
Applications/MATLAB_R2019a.app/bin.
4 Press Go.

To open a file with a MATLAB command, such as edit, specify the full path of the MATLAB root
folder. For example:

edit(fullfile(matlabroot,'/toolbox/matlab/demos/lotka.m'))

MATLAB Dock Menu


Starting in MATLAB R2012a, the MATLAB Dock menu lists open windows and documents associated
with the running MATLAB. Choosing an open document from the Dock menu brings the selected
document's window to the foreground. In addition, the MATLAB Dock menu includes the item Open
Additional Instance of MATLAB. This option starts another instance of MATLAB. You can select
Options > Keep in Dock, but only for the first MATLAB instance. Use Open Additional Instance

2-61
2 Desktop

of MATLAB to start additional instances rather than trying to keep multiple MATLAB icons in the
Dock.

2-62
Where MATLAB Stores Preferences

Where MATLAB Stores Preferences

MATLAB and other MathWorks products store their preferences in the preferences folder. To see the
full path for the preferences folder type prefdir in the MATLAB Command Window. The name of the
preferences folder matches the name of the release. For instance, for release R2016b, the name of
the preferences folder is R2016b.

On macOS and iOS, the preferences folder might be inside another folder that is hidden. If so, to
access the hidden folder:

1 In the Finder, select Go > Go to Folder.


2 In the resulting dialog box, type the path returned by prefdir, and then press Enter.

You must have write access to the preferences folder. Otherwise, MATLAB generates an error in the
Command Window when you try to change preferences. MATLAB also can generate an error if the
preferences folder is hidden.

The default location of the preferences folder is platform specific:

• Windows— C:\Users\username\AppData\Roaming\MathWorks\MATLAB\release
• Linux — ~/.matlab/release
• macOS — ~/Library/Application Support/MathWorks/MATLAB/release

release is the current MATLAB release.

Temporary Preferences Folder


In some situations, if MATLAB is unable to create or use the preferences folder when starting up, it
creates a temporary preferences folder. If a preferences folder exists for any of the three releases of
MATLAB that immediately precede the one you are starting up, MATLAB copies the preference files
from that release to the temporary preferences folder. Otherwise, MATLAB creates the default
preference files for the current release. MATLAB continues to use the temporary preferences folder
until the issue is resolved.

If you make changes to preferences while MATLAB is using the temporary preferences folder, the
preferences persist across sessions. But, once the issue is resolved that was preventing MATLAB from
accessing the preferences folder, any changes made to the preferences while using the temporary
preferences folder are lost.

Each version of MATLAB can have a temporary preferences folder. MATLAB does not migrate
preferences from the temporary preferences folder across releases.

Effects of Installation and Deinstallation on the Preferences Folder


Installing MATLAB has no effect on the preferences folder. That is, MATLAB creates, checks, copies,
and writes to the preferences folder when it starts up, not when you install it. When you uninstall
MATLAB, there is an option in the uninstaller to remove the preferences folder. However, this option
is not selected by default.

2-63
2 Desktop

See Also
prefdir | Preferences

Related Examples
• “Import Preferences from Other Releases” on page 2-65

2-64
Import Preferences from Other Releases

Import Preferences from Other Releases


When you start a newly installed version of MATLAB for the first time, it attempts to import your
preferences from a previous release installed on your system. MATLAB looks for preferences folders
according to these guidelines.

• MATLAB looks for a preferences folder for release R2019b or newer. If MATLAB finds one or more
preferences folders matching that criteria, it migrates the files from the most recent version.

For example, if you start R2021b and preferences folders exist for both the R2020b and R2019b
releases, then MATLAB migrates the files from the R2020b preferences folder to the R2021b
preferences folder.

Note For releases before R2021b, MATLAB looks back three releases. For example, if you start
R2019a, MATLAB looks for preferences from R2018b, R2018a, and R2017b.
• If a preferences folder does not exist from a valid previous release, then MATLAB creates the
default preference files for the release starting up.

For example, if you start R2021a, MATLAB looks for preferences for versions R2020b, R2020a,
and R2019b. If none of those is installed, MATLAB creates the default files for the R2021a release.
This is true even if a preferences folder exists for the R2019a release or earlier.
• If you install a release older than the current version, MATLAB does not import preferences from
releases that are newer than that release.

To see the full path for the preferences folder, type prefdir in the MATLAB Command Window. The
name of the preferences folder matches the name of the release you are running. For example, for
MATLAB R2021a, the name of the preferences folder is R2021a.
prefdir

ans =
'C:\Users\username\AppData\Roaming\MathWorks\MATLAB\R2021a'

On macOS and iOS, the preferences folder might be inside another folder that is hidden. If so, to
access the hidden folder:
1 In the Finder, select Go > Go to Folder.
2 In the resulting dialog box, type the path returned by prefdir, and then press Enter.

Use Default Preferences


Instead of importing preferences from a previous release, you can use the default preferences for the
new release. To use the default preferences, delete all of the files in the preferences folder for the
corresponding release. Use the prefdir command to determine the full path of the preferences
folder.

For example, to use the default preferences for R2021a, start MATLAB, and in the Command Window,
type prefdir to determine the location of the preferences folder.
prefdir

ans =
'C:\Users\username\AppData\Roaming\MathWorks\MATLAB\R2021a'

2-65
2 Desktop

Close MATLAB, delete all of the files in the folder C:\Users\username\AppData\Roaming


\MathWorks\MATLAB\R2021a, and then start MATLAB again. MATLAB starts with all preferences
set to their default values. One file to consider keeping is history.m. For more information, see “Set
Command History Preferences” on page 3-24.

Alternatively, if you have not started the new release yet, create an empty preferences folder for it.
This will prevent MATLAB from importing preferences when you do open the new release, and force
it to use the default preferences instead. For example, to use the default preferences for MATLAB
R2021a, if your MATLAB preferences are stored in the C:\Users\username\AppData\Roaming
\MathWorks\MATLAB folder, create the folder C:\Users\username\AppData\Roaming
\MathWorks\MATLAB\R2021a.

See Also
prefdir | Preferences

Related Examples
• “Where MATLAB Stores Preferences” on page 2-63

2-66
Web Preferences

Web Preferences

Web preferences enable you to specify internet connection information to MATLAB.

Limitations

• MATLAB supports nonauthenticated, basic, digest, and NTLM proxy authentication types.
• You cannot specify proxy server settings using a script.
• There is no automated way to provide MATLAB with the proxy server settings that your system
browser uses.

You can set Web preferences on the Home tab, in the Environment section. Click Preferences.
Select MATLAB > Web, and then adjust preference options as described in this table.

Preference Usage
Use a proxy server to connect to Provide information that MATLAB needs to access the Internet when your
the Internet network uses a firewall or another method of protection that restricts
internet access.
Proxy host Specify a value for the Proxy host. For example, 172.16.10.8 or
ourproxy. If you do not know the values for your proxy server, ask your
system or network administrator for the information.
Proxy port Specify an integer value for the Proxy port. For example, 22. If you do
not know the values for your proxy server, ask your system or network
administrator for the information.
Use a proxy with authentication Specifies that your proxy server requires a user name and password.
Proxy username Specify the proxy server user name.
Proxy password Specify the proxy server password.
Test connection Ensure that your settings work.

If MATLAB cannot access the Internet, Failed! appears next to the


button. Correct the values you entered and try again. If you still cannot
connect, try using the values you used when you authenticated your
MATLAB license.
System Web browser UNIX platforms only, excluding Macintosh:

Specify the system Command to use to open the system browser. For
example, opera, opens the Opera Web browser.

Specify the Options to use for the system browser. For example,
geometry 1064x860 specifies the size of the window for Opera.

If you specify Firefox as the system browser using the system command
firefox, specify a display option to ensure that the browser opens
correctly.

2-67
3

Entering Commands

• “Enter Statements in Command Window” on page 3-2


• “Find Functions to Use” on page 3-4
• “Format Output” on page 3-6
• “Stop Execution” on page 3-9
• “Find Text in Command Window or History” on page 3-10
• “Rerun Favorite Commands” on page 3-13
• “Set Command Window Preferences” on page 3-15
• “Set Keyboard Preferences” on page 3-18
• “Check Syntax and Autocomplete Code as You Type” on page 3-19
• “Set Command History Preferences” on page 3-24
3 Entering Commands

Enter Statements in Command Window

As you work in MATLAB, you can enter individual statements in the Command Window. For example,
create a variable named a by typing this statement at the command line:

a = 1

MATLAB immediately adds variable a to the workspace and displays the result in the Command
Window.

a =

When you do not specify an output variable, MATLAB uses the variable ans, short for answer, to
store the results of your calculation.

sin(a)

ans =

0.8415

The value of ans changes with every command that returns an output value that is not assigned to a
variable.

If you end a statement with a semicolon, MATLAB performs the computation, but suppresses the
display of output in the Command Window.

b = 2;

To enter multiple statements on multiple lines before running any of the statements, use Shift+Enter
between statements. This action is unnecessary when you enter a paired keyword statement on
multiple lines, such as for and end.

You also can enter more than one statement on the same line by separating statements. To distinguish
between commands, end each one with a comma or semicolon. Commands that end with a comma
display their results, while commands that end with a semicolon do not. For example, enter the
following three statements at the command line:

A = magic(5), B = ones(5) * 4.7; C = A./B

A =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9

C =
3.6170 5.1064 0.2128 1.7021 3.1915
4.8936 1.0638 1.4894 2.9787 3.4043
0.8511 1.2766 2.7660 4.2553 4.6809
2.1277 2.5532 4.0426 4.4681 0.6383
2.3404 3.8298 5.3191 0.4255 1.9149

3-2
Enter Statements in Command Window

MATLAB displays only the values of A and C in the Command Window.

To recall previous lines in the Command Window, press the up- and down-arrow keys, ↑ and ↓. Press
the arrow keys either at an empty command line or after you type the first few characters of a
command. For example, to recall the command b = 2, type b, and then press the up-arrow key.

To clear a command from the Command Window without executing it, press the Escape (Esc) key.

You can evaluate any statement already in the Command Window. Select the statement, right-click,
and then select Evaluate Selection.

In the Command Window, you also can execute only a portion of the code currently at the command
prompt. To evaluate a portion of the entered code, select the code, and then press Enter.

For example, select a portion of the following code:

hello

See Also
Command Window

Related Examples
• “Check Syntax and Autocomplete Code as You Type” on page 3-19
• “Set Command Window Preferences” on page 3-15

3-3
3 Entering Commands

Find Functions to Use


This example shows how to find the name and description of a MathWorks function from the
Command Window using the Function browser.

1
In the Command Window, click the Browse for functions button to the left of the prompt. The
Function browser opens.

Tip The Function browser closes when you move the pointer outside of it. To keep the browser
open, drag it by the top edge to a different location.
2 Optionally, select a subset of products to display in the list. Click the product area at the bottom
of the browser (where the text All installed products appears by default), and then set the
Selected Products preference and click OK.
3 Find functions by browsing the list or by typing a search term. For example, search for the term
fourier.

3-4
Find Functions to Use

In the search results, a parenthetical term after a function name indicates either that the
function is in a product folder other than MATLAB, or that there are multiple functions with the
same name. For example, fft (comm) corresponds to the fft function in the Communications
Toolbox™ folder.
4 Select a function that you would like to use or learn more about, as follows.

• Insert the function name into the current window by double-clicking the name. Alternatively,
drag and drop the function name into any tool or application.
• View syntax information for the function by single-clicking its name. A brief description for
each of the syntax options displays in a yellow pop-up window.

Tip The pop-up window automatically closes when you move your pointer to a new item in the
results list. To keep the pop-up window open, drag it by the top edge to a different location.

You can change the font that the Function browser uses by setting preferences. On the Home tab, in
the Environment section, select Preferences > Fonts. By default, the Function browser uses the
desktop text font and the pop-up window uses the Profiler font.

3-5
3 Entering Commands

Format Output
MATLAB displays output in both the Command Window and the Live Editor. You can format the
output display using several provided options.

Format Line Spacing in Output


By default, MATLAB displays blanks lines in Command Window output.

You can select one of two line spacing options in MATLAB.

• loose — Keeps the display of blank lines (default).

>> x = [4/3 1.2345e-6]

x =

1.3333 0.0000
• compact — Suppresses the display of blank lines.

>> x = [4/3 1.2345e-6]


x =
1.3333 0.0000

To change the line spacing option, do one of the following:

• On the Home tab, in the Environment section, click Preferences. Select MATLAB >
Command Window, and then choose a Line spacing option.
• Use the format function at the command line, for example:

format loose
format compact

Note Line spacing options do not apply in the Live Editor.

Format Floating-Point Numbers


You can change the way numbers display in both the Command Window and the Live Editor. By
default, MATLAB uses the short format (5-digit scaled, fixed-point values).

For example, suppose that you enter x = [4/3 1.2345e-6] in the Command Window. The MATLAB
output display depends on the format you selected. This table shows some of the available numeric
display formats, and their corresponding output.

Numeric Display Format Example Output


short (default) x = 1.3333 0.0000
short e x = 1.3333e+00 1.2345e-06
long x = 1.333333333333333 0.000001234500000
+ x = ++

3-6
Format Output

Note The text display format affects only how numbers are shown, not how MATLAB computes, or
saves them.

To format the way numbers display, do one of the following:

• On the Home tab, in the Environment section, click Preferences. Select MATLAB >
Command Window, and then choose a Numeric format option.
• Use the format function, for example:

format short
format short e
format long

See the format reference page for a list and description of all supported numeric formats.

Wrap Lines of Code to Fit Window Width


A line of code or its output can exceed the width of the Command Window, requiring you to use the
horizontal scroll bar to view the entire line. To break a single line of input or output into multiple
lines to fit within the current width of the Command Window:

1 On the Home tab, in the Environment section, click Preferences. Select MATLAB >
Command Window.
2 Select Wrap Lines.
3 Click OK.

Note Line wrapping options do not apply in the Live Editor.

Suppress Output
To suppress code output, add a semicolon (;) to the end of a command. This is useful when code
generates large matrices.

Running the following code creates A, but does not show the resulting matrix in the Command
Window or the Live Editor:

A = magic(100);

View Output by Page

Output in the Command Window might exceed the visible portion of the window. You can view the
output, one screen at a time:

1 In the Command Window, type more on to enable paged output.


2 Type the command that generates large output.
3 View the output:

• Advance to the next line by pressing Enter.

3-7
3 Entering Commands

• Advance to the next page by pressing Space Bar.


• Stop displaying the output by pressing q.

To disable paged output, type more off.

Note Paged output options do not apply in the Live Editor.

Clear the Command Window


If the Command Window seems cluttered, you can clear all the text (without clearing the workspace)
by doing one of the following:

• On the Home tab, in the Code section, select Clear Commands > Command Window to clear
the Command Window scroll buffer.
• Use the clc function to clear the Command Window scroll buffer.
• Use the home function to clear your current view of the Command Window, without clearing the
scroll buffer.

See Also
clc | format | home | more

3-8
Stop Execution

Stop Execution
To stop execution of a MATLAB command, press Ctrl+C or Ctrl+Break.

On Apple Macintosh platforms, you also can use Command+. (the Command key and the period
key).

Ctrl+C does not always stop execution for files that run a long time, or that call built-ins or MEX-files
that run a long time. If you experience this problem, include a drawnow, pause, or getframe
function in your file, for example, within a large loop. Also, Ctrl+C might be less responsive if you
start MATLAB with the -nodesktop option.

Note For certain operations, stopping the program might generate errors in the Command Window.

To programmatically stop execution of a function or script before reaching the end, use the return
function. MATLAB returns control to the Command Window or the invoking function.

See Also
drawnow | getframe | pause | return

3-9
3 Entering Commands

Find Text in Command Window or History


In this section...
“Find Text in the Command Window” on page 3-10
“Find Text in the Command History Window” on page 3-11

Find Text in the Command Window


You can search text currently in the Command Window. This includes text that is visible on the
screen, and text that is in the scroll buffer. In MATLAB Online, to search text in the Command
Window, use the Ctrl+F keyboard shortcut to open the find and replace dialog box.

Search Using Find Dialog Box

To search for specified text in the Command Window, on the Command Window title bar, click the
action button , and then select Find. The Find dialog box opens. The search begins at the current
cursor position. MATLAB finds the text you specified and highlights it.

MATLAB beeps when a search for Find Next reaches the end of the Command Window, or when a
search for Find Previous reaches the top of the Command Window. If you have Wrap around
selected, MATLAB continues searching after beeping.

To search for the specified text in other MATLAB desktop tools, change the selection in the Look in
field.

You can increase the amount of information available in the Command Window so that more text is
available for searching. Doing so requires more memory. On the Home tab, in the Environment
section, click Preferences. Select MATLAB > Command Window, and then increase the setting
for Number of lines in the command window scroll buffer.

Clearing the command window (for example, with the clc function), empties the scroll buffer. The
cleared text is no longer available for searching. To clear your display in the Command Window
without clearing the buffer, use the home function.

Search Using Keyboard Shortcuts

You can also perform an incremental search in the Command Window using keyboard shortcuts.

1 Begin an incremental search by using one of the defined keyboard shortcuts.

Action Windows Default Macintosh or Emacs Default


Shortcut Shortcut
Initiate a forward Ctrl+Shift+S Ctrl+S
incremental search.
Initiate a backward Ctrl+Shift+R Ctrl+R
incremental search.

An incremental search field appears in the bottom right corner of the MATLAB Desktop window.
For a forward search, the text F Inc Search appears. The F indicates a forward search.

3-10
Find Text in Command Window or History

2 Begin typing your search term.

When you enter lowercase letters in the incremental search field, MATLAB looks for both
lowercase and uppercase instances of the letters. For example, if you enter b, MATLAB looks for
b and B. However, if you enter uppercase letters, MATLAB only looks for instances that match the
case you entered.
3 Perform incremental search actions using these keyboard shortcuts:

Action Keyboard Shortcut


Complete a partially highlighted set of characters. Ctrl+W
Find the next occurrence of a set of characters. Ctrl+S
Remove characters from the incremental search Ctrl+G
field, back to the last successful search

If you search for a set of characters that does not appear in the Command Window text, Failing
appears in the incremental search field.
4 End incremental searching by pressing Esc (escape), Enter, or any other key that is not a
character or number.

The incremental search field disappears. The cursor remains at the position where the text was
last found, with the search text highlighted.

Find Text in the Command History Window


You can search for text in the Command History Window. You can search for text either at the
beginning of a command, or anywhere within a command.

1 In the Command History window, type in the Search field. To display the Search field if it is not
visible, click the action button , and then select Find.

2 Begin typing your search term.

The Command History window searches backward and selects the previous entry that contains
the sequence of letters you typed.
3 Select from the different search options using the buttons to the right of the search field. Options
include Match case
, Match anywhere
within command ,
and Match at beginning of command
.
4 Find the previous or next occurrence of the entry with the up and down arrow keys, respectively.
5 Press Esc to clear the search.

In MATLAB Online, to search for text in the Command History window, click the Command History

icon in the sidebar and use the Search field to perform a search.

3-11
3 Entering Commands

See Also
Command Window | Command History

Related Examples
• “Find and Replace Text in Files and Go to Location”
• “Find Files” on page 6-2

3-12
Rerun Favorite Commands

Rerun Favorite Commands

Create and Run Favorite Commands

MATLAB favorite commands (previously called command shortcuts) are an easy way to run a group of
MATLAB language statements that you use regularly. For example, you can use a favorite command to
set up your environment when you start working, or to set the same properties for figures you create.

To create a favorite command:

1 On the Home tab, in the Code section, click Favorites and then click New Favorite. The
Favorite Command Editor dialog box opens.
2 In the Label field, enter a name for the favorite command. For this example, enter Setup
Workspace.
3 In the Code field, type the statements you want the favorite command to run. You also can drag
and drop statements from the Command Window, the Command History Window, or a file.
MATLAB automatically removes any command prompts (>>) from the Code field when you save
the favorite command. When navigating using the keyboard, use Esc to move out of the Code
field.

For example, enter these statements:

format compact
clear
workspace
filebrowser
clc
4 In the Category field, type the name of a new category or select an existing category from the
drop-down list. If you leave this field blank, the favorite command appears in the default
Favorite Commands category.
5 In the Icon field, select an icon.
6 To add the favorite command to the quick access toolbar, select both the Add to quick access
toolbar and Show label on quick access toolbar options.
7 To run the statements in the Code section and ensure that they perform the desired actions, click
Test.
8 When you are done configuring the favorite command, click Save.

To run a favorite command, on the Home tab, click Favorites and then click the icon for the desired
favorite command. All the statements in the Code field of the Favorite Command Editor execute as if
you ran those statements from the Command Window, although they do not appear in the Command
History window.

To edit a favorite command, click the Edit favorite command button to the right of the favorite

command. To delete a favorite command, click the Delete favorite command button to the right of
the favorite command. You also can right-click the favorite command and select Edit Favorite or
Delete Favorite.

3-13
3 Entering Commands

Organize Favorite Commands

You can organize your favorite commands by storing them in different categories.

To create a new category:

1 On the Home tab, in the Code section, click Favorites and then click New Category. The
Favorite Category Editor dialog box opens.
2 In the Label field, enter a name for the category. For this example, enter My Favorite
Favorites.
3 In the Icon field, select an icon.
4 To add the category to the quick access toolbar, select both the Add to quick access toolbar
and Show label on quick access toolbar options.
5 Click Save.

To move a category up or down in the list of categories, or to move a favorite command within a
category, drag the category or favorite command to the desired location. You also can use the Move

category to top and Move category to bottom buttons to the right of the category.

To change whether a single category or favorite command appears in the quick access bar, click the

Add to quick access toolbar and Remove from quick access toolbar buttons to the right of the
category or favorite command. In MATLAB Online, right-click the category or command and select
Add to quick access toolbar. To add all favorite commands to the quick access bar, on the
Home tab, right-click Favorites and select Add to quick access toolbar.

To further configure which favorite commands and categories appear in the quick access bar, on the
Home tab, in the Code section, click Favorites and then click Quick Access. Configuring the
quick access bar is not supported in MATLAB Online.

See Also

More About
• “Customize Keyboard Shortcuts” on page 2-45
• “Set Command History Preferences” on page 3-24

3-14
Set Command Window Preferences

Set Command Window Preferences

You can customize the visual display and behavior of the Command Window and the command output
within it using Command Window preferences.

General Preferences for the Command Window


You can specify what is displayed in the Command Window and how it is displayed including the
default format of Datetime objects.

On the Home tab, in the Environment section, click Preferences. Select MATLAB > Command
Window, and then adjust the options as described in this table.

Some Command Window preferences are not available in MATLAB Online.

Preference Usage
Text display Select a Numeric format option to specify the output format of numeric
values in the Command Window.

For details, see “Format Floating-Point Numbers” on page 3-6.


Select a Line spacing option to specify whether blank lines appear in
Command Window output. To suppress blank lines, select compact. To display
blank lines, select loose.
Datetime format Select a Locale option to specify the default input locale of the Datetime
object. You also can enter a custom locale. For more information, including a
list of common values, see datetime.
Select a Default date and time format option to specify the default format
of the Datetime object. You also can enter a custom format. For more
information, see the Format property for datetime arrays.
Select a Default date-only format option to specify the default date format
of the Datetime object. You also can enter a custom format. For more
information, see the Format property for datetime arrays.
Display Select Wrap lines to make each line of input or output in the Command
Window break into multiple lines to fit within the current width of the
Command Window.

For details, see “Wrap Lines of Code to Fit Window Width” on page 3-7.
Select Set matrix display width to eighty columns to limit the width of
matrix output.

If you also select Wrap lines, and the width of the Command Window is fewer
than 80 characters, each row of 80 characters of matrix output wraps to fit
within the width of the Command Window.
Select Show getting started message bar to display the Command Window
message bar that provides links to introductory information.

3-15
3 Entering Commands

Preference Usage
Select Show function browser button to display the Browser for functions
button to the left of the prompt in the Command Window. You can use the
Function browser to search for MATLAB functions.
Select Suggest corrections for mistyped functions and variables to
display suggestions in the Command Window. If you enter an undefined
function, variable name, or MATLAB operator, MATLAB displays:

Did you mean:

followed by a suggested command at the command line. You can press Enter
to execute that command or Esc to delete the suggestion.
Number of lines in command window scroll buffer specifies the maximum
number of lines displayed in the Command Window. A larger scroll buffer
provides a larger base for search features, but requires more memory. By
default, the scroll buffer is set to 5,000 lines.

The scroll buffer size does not impact the number of lines that you can recall.
By default, you can use the up arrow key ↑ to recall all lines shown in the
Command History window, regardless of how many lines you see in the
Command Window.
Tab key Tab size specifies the number of spaces assigned to the tab key.

This setting does not apply if you have enabled tab completion for the
Command Window or Editor. To enable or disable tab completion, on the
Home tab, select Preferences > Keyboard.

Command Window Automatic Completions Preferences

You can change how MATLAB suggests and completes names in the Command Window.

On the Home tab, in the Environment section, click Preferences. Select MATLAB > Command
Window > Automatic Completions, and then adjust the options as described in this table.

Preference Usage
Suggestions and completions Select Enable tab completion to suggest names when you type the first few
characters of the name and press the Tab key in the Command Window.

For more information, see “Check Syntax and Autocomplete Code as You
Type” on page 3-19.
Select Tab key narrows completions to continue to reduce the list of
suggestions as you type each additional character and press the Tab key.

For more information, see “Check Syntax and Autocomplete Code as You
Type” on page 3-19.

3-16
Set Command Window Preferences

Preference Usage
Select Enable function hints to display function syntax suggestions in the
Command Window.

When enabled, if you type a function name with an opening parenthesis, and
then pause, a tooltip opens showing the basic syntax information for the
function.

For more information, see “Check Syntax and Autocomplete Code as You
Type” on page 3-19.

In MATLAB Online, to show suggestions as you type in the Command Window, select Show
suggestions automatically. To show suggestions when you press the Tab key, select Use tab to
show suggestions (in addition to ctrl+space). To accept suggestions using the Right Arrow key,
select Use right arrow to accept suggestions (in addition to tab and enter). To reset the
window that displays the list of suggestions to it's original size, click the Reset Default Suggestion
Size button.

See Also

More About
• “Check Syntax and Autocomplete Code as You Type” on page 3-19
• “Set Keyboard Preferences” on page 3-18
• “Zoom and Change Desktop Fonts” on page 2-2

3-17
3 Entering Commands

Set Keyboard Preferences

You can set delimiter matching options in the Command Window, Editor, and Live Editor.

On the Home tab, in the Environment section, click Preferences. Select MATLAB > Keyboard,
and then adjust the options as described in this table.

Preference Usage
Delimiter Matching Specify when and if MATLAB alerts you to matched and mismatched
delimiters. Delimiters include parentheses, brackets, braces, and, in the
Editor only, paired keywords.

Select Show matches and mismatches when typing for MATLAB to alert
you to matched and mismatched delimiters as you type.

Select Show matches and mismatches when using arrow keys for
MATLAB to alert you to matched and mismatched delimiters when you move
the cursor over a delimiter by using an arrow key.

For details, see “Delimiter Matching” on page 3-19.

See Also

Related Examples
• “Check Syntax and Autocomplete Code as You Type” on page 3-19
• “Set Command Window Preferences” on page 3-15

3-18
Check Syntax and Autocomplete Code as You Type

Check Syntax and Autocomplete Code as You Type


You can avoid syntax errors using syntax highlighting and delimiter matching. You also can write
commands faster and autocomplete code using code suggestions and completions.

Syntax Highlighting
To help you identify MATLAB elements, some entries appear in different colors in the Command
Window, the Editor, and the Live Editor. This color display is known as syntax highlighting. By default:

• Keywords are blue.


• Character vectors and strings are purple.
• Unterminated character vectors are maroon.
• Comments are green.

% check to see if A is greater than B


if A > B
"greater"
elseif A < B
"less"
end

Except for errors, output in the Command Window does not appear with syntax highlighting.

MATLAB software copies the selection to the clipboard in RTF format, which many Microsoft
Windows and macOS applications support. When you paste or drag a selection from the Editor and
Live Editor to another application, such as Microsoft Word, the pasted text maintains the syntax
highlighting colors and font characteristics from the Editor and Live Editor.

To change syntax highlighting preferences, on the Home tab, in the Environment section, click
Preferences. Then, select MATLAB > Editor/Debugger > Language and from the Language
drop-down list, choose a language. To change syntax highlighting preferences in MATLAB Online,
select Editor/Debugger > MATLAB Language or Editor/Debugger > Other Languages.

Delimiter Matching

MATLAB indicates matched and mismatched delimiters, such as parentheses, brackets, and braces, to
help you avoid syntax errors. MATLAB also indicates paired language keywords, such as for, if,
while, else, and end statements.

In the Editor and Live Editor, MATLAB indicates matching delimiters by briefly underlining both
delimiters in the pair. In the Command Window, matching delimiters are indicated by highlighting
instead of underlining. In MATLAB Online, the Command Window behavior matches the Editor and
Live Editor behavior.

MATLAB indicates mismatching delimiters in the Editor, Live Editor, and Command Window by briefly
crossing out the mismatched delimiter.

If a matching delimiter exists, but it is not visible on the screen, a window opens and displays the line
containing the matching delimiter. Click in the window to go to that line.

3-19
3 Entering Commands

You can change if and when MATLAB alerts you to matched and mismatched delimiters. On the
Home tab, in the Environment section, click Preferences. Select MATLAB > Keyboard and in
the Delimiter matching section, select from the available options.

Code Suggestions and Completions

When you write code in the Command Window, Editor, Live Editor, and App Designer, MATLAB shows
suggestions for the names of functions, models, MATLAB objects, files, folders, variables, structures,
graphics properties, parameters, and options. In addition, MATLAB shows basic syntax information
for functions. You can use these suggestions to write commands faster and avoid typographical
errors.

Name Suggestions

In the Editor, Live Editor, and App Designer, name suggestions appear as you type. You also can press
Ctrl+Space or the Tab key to show suggestions. MATLAB shows the most relevant name suggestions
as you type. To show new and more refined suggestions, continue typing. If there are no name
suggestions, MATLAB displays No suggestions.

To insert a suggestion in your code, use the arrow keys to select the name that you want, and then
press the Right Arrow, Tab, or Enter key to accept the suggestion. To clear the list of suggestions
without selecting anything, press the Esc key.

In the Command Window, name suggestions appear only after you press the Tab key. To show
suggestions, type the first few characters of the name that you want suggestions for, and then press
the Tab key. Use the arrow keys to select the name that you want, and then press the Tab key again
to accept the suggestion. In MATLAB Online, the Command Window also shows suggestions as you
type and when you press Ctrl+Space or the Tab key.

Name suggestions are useful when completing the names and values of graphics properties. For
example, plot(x,y,"LineStyle","-").

3-20
Check Syntax and Autocomplete Code as You Type

You also can use suggestions to complete parameter names and options for certain functions. For
example, format("shortEng").

MATLAB displays suggestions based on its current state, including:

• Variables that are defined in the current workspace


• Files and folders that are on the search path or in the current folder
• Variables, functions, class properties, and class methods that are defined in the active document
and available at the current location of the cursor

MATLAB does not complete field names of structure arrays defined only within the active document.

Tip To insert a tab within a statement when suggestions and completions are enabled in the Editor,
Live Editor, and App Designer, first, add a space. Then, press the Tab key. Alternatively, go to the
Home tab, and in the Environment section, click Preferences. Select MATLAB > Editor/
Debugger > Automatic Completions and in the Suggestions and completions section, clear the
Use tab to show suggestions (in addition to ctrl+space) option. If there are no available
completions, MATLAB always inserts a tab.

In the Command Window, to insert a tab, you must disable showing name suggestions on tab. To
disable showing name suggestions, in the Preferences window, select MATLAB > Command
Window > Automatic Completions and clear the Enable tab completion option. In the MATLAB
Online Command Window, clear the Use tab to show suggestions (in addition to ctrl+space)
option.

3-21
3 Entering Commands

Function Syntax Suggestions

When you type the name of a function followed by an opening parenthesis, MATLAB shows the basic
syntax information for the function. In the Editor, Live Editor, App Designer, and MATLAB Online
Command Window, if a function has multiple syntaxes, you can use the drop-down arrow to the right
of the syntax to show all available syntaxes. Alternatively, use Ctrl+Down Arrow to show and hide
the additional syntaxes. On macOS systems, use the Command key instead of Ctrl.

You can type an input for any argument that appears in blue. Enter your own input variables or
values, and not the argument names shown in the suggestion. The displayed syntax options change
based on the arguments you enter.

In the Editor, Live Editor, App Designer, and MATLAB Online Command Window, MATLAB shows
descriptions for each argument. Optional arguments are indicated by the (Optional) keyword next to
the argument description. If MATLAB suggests multiple arguments, click the arrow to the right of the
argument description to view the additional arguments. Alternatively, you can use the Ctrl+Alt
+Right Arrow and Ctrl+Alt+Left Arrow keyboard shortcuts.

To open the documentation for the function MATLAB is showing syntax suggestions for, click the Help
button to the left of the function syntax suggestions, or, in the Command Window, click the More
Help... link below the function syntax suggestions.

Suggestions for function syntaxes and arguments appear for MATLAB installed functions and for
functions that you create. The suggestions for MATLAB functions come from the documentation. The
suggestions for functions that you create come from the function definition statement (first
executable line) in the MATLAB program file. That file must be on the search path or in the current
folder. For more information about adding help to the functions that you create, see “Add Help for
Your Program” and “Customize Code Suggestions and Completions”.

Disable Suggestions and Completions

In the Editor, Live Editor, and App Designer, you can disable showing suggestions automatically. You
also can disable the use of the Tab key for showing suggestions and the use of the Right Arrow key
for accepting suggestions. To disable these options, go to the Home tab, and in the Environment

3-22
Check Syntax and Autocomplete Code as You Type

section, click Preferences. Select MATLAB > Editor/Debugger > Automatic Completions
and in the Suggestions and completions section, clear one or more of the options:

• To disable showing suggestions automatically, clear the Show suggestions automatically option.
• To disable showing suggestions after you press the Tab key, clear the Use tab to show
suggestions (in addition to ctrl+space) option. When this option is cleared, you can still show
suggestions by pressing Ctrl+Space.
• To disable accepting a suggestion using the Right Arrow key, clear the Use right arrow to
accept suggestions (in addition to tab and enter) option. When this option is cleared, you can
still accept a suggestion using the Tab and Enter keys.

In the Command Window, you can disable showing name suggestions and function syntax
suggestions. To disable showing name suggestions, in the Preferences window, select MATLAB >
Command Window > Automatic Completions and clear the Enable tab completion option. To
disable showing function syntax suggestions, clear the Enable function hints option. To disable
reducing the list of suggestions as you type each additional character and press the Tab key, clear the
Tab key narrows completions option.

In MATLAB Online, the Command Window behavior matches the Editor, Live Editor, and App
Designer behavior. To disable showing suggestions automatically, using the Tab key for showing
suggestions, and using the Right Arrow key for accepting suggestions, in the Preferences window,
select MATLAB > Command Window > Automatic Completions. Then, in the Suggestions and
completions section, clear one or more of the options.

See Also

Related Examples
• “Enter Statements in Command Window” on page 3-2
• “Set Command Window Preferences” on page 3-15

3-23
3 Entering Commands

Set Command History Preferences

You can exclude statements from the command history and specify how many commands to save to
the command history file, History.xml. MATLAB uses the command history file for both the
Command History window and statement recall in the Command Window.

Note When you exclude statements from the command history file, you cannot recall them in the
Command Window, nor can you view them in the Command History window.

You can also change the way you search for previously executed statements in the command history.
Select from different search text matching options and change the way results are displayed in the
Command History window.

To set Command History preferences, on the Home tab, in the Environment section, click
Preferences. Select MATLAB > Command History, and then adjust the options as described in the
following table.

Some Command History preferences are not available in MATLAB Online.

Option Usage
Save Select Save exit/quit commands to save exit and quit
commands in the command history.
Select Save consecutive duplicate commands to save
consecutive executions of the same statement in the command
history.

• With this option selected, if you run magic(5) two times in a


row, the entries for magic(5) appear on separate lines in the
command history.
• With this option cleared, the command history retains only one
entry for magic(5) and displays a tally of consecutive
executions to the left.
Select Don't save history file to prevent saving the command
history across sessions. This option is useful when multiple users
share the same machine. For example, the option prevents each
user from viewing statements others have run.

Any entries predating the current session remain unless you first
delete entries from the Command History window.
Save last n commands specifies the number of commands to save.
Match Select Match anywhere to retrieve statements that contain the
search text in any location.

Select Match beginning to retrieve statements that begin with the


search text. This option is selected by default.
Select Match case to retrieve statements that match the case of the
search text.

3-24
Set Command History Preferences

Option Usage
Select Filter matches to display only statements that match the
search text. Clear Filter matches to display all previously executed
statements and highlight the statements that match the search text.
Show Select Show match toolbar to display a search toolbar at the top of
the Command History window. Search for previously executed
statements using the search field and change Match preferences
using the provided buttons.
Select Show match locations to display yellow markers to the
right of the scroll bar in the Command History window that indicate
the location of matches throughout the command history.
Select Show execution time to display an approximate execution
time to the right of each statement. Times display for any
statements that take longer than 0.1 seconds to execute.
Favorite Commands Select Don't show to disable showing favorite commands in the
Command History window.

Select Show default category to only show the default Favorite


Commands category in the Command History window.

Select Show all categories to show all the favorite commands


categories in the Command History window.

Change the Command History Date Format


MATLAB uses the short date format of your operating system to display dates in the Command
History window. To change the date format, for instance from MM/DD/YYYY to DD/MM/YYYY:

1 Change the short date format for your operating system as described in its documentation.
2 Restart MATLAB.

Note Clearing the command history deletes all entries from the Command History window. You
can no longer recall those entries in the Command Window.

See Also
Command History

3-25
4

Help and Product Information

• “Ways to Get Function Help” on page 4-2


• “MATLAB Code Examples” on page 4-4
• “Contact Technical Support” on page 4-6
• “Help Preferences” on page 4-8
• “Translated Documentation” on page 4-10
• “Information About Your Installation” on page 4-12
4 Help and Product Information

Ways to Get Function Help

Each MATLAB function has supporting documentation that includes examples and describes the
function inputs, outputs, and calling syntax. This table describes ways to access that documentation.

Type of Help How to Access Example or Icon


Reference page in the Use the doc command. doc mean
documentation
— or—

Select a function name in the


Editor, Live Editor, or Command
Window. Then, right-click and
select Help on Selection.
Function syntax hints in After you type an open mean(
Command Window parenthesis for function inputs,
pause or press Ctrl + F1.
Abbreviated help text in Use the help command. help mean
Command Window
Function browser in Command Click the function icon to the
Window left of the command prompt.
Complete documentation in your Click the Help button on the
system web browser quick access toolbar or on the
Home tab.

— or—

Enter search terms in the


Search box in the top-right
corner of the desktop.

Search the Documentation


To search for keywords in the documentation, enter text in the search box in the top-right corner of
the desktop. If you have the documentation open in your system web browser, you can search for
keywords by entering text in the search box at the top of the current documentation page.

When you open a page from the search results, the keywords that you searched for appear
highlighted. To clear the highlighting, press the Esc key. To filter the search results, use the facets
that appear on the left side of the page.

For example, view MATLAB topics by selecting MATLAB and Help Topics.

4-2
Ways to Get Function Help

See Also
doc

More About
• “MATLAB Code Examples” on page 4-4

4-3
4 Help and Product Information

MATLAB Code Examples


MATLAB and all MATLAB toolboxes include examples as part of the documentation. To view examples
for the current product category, click Examples at the top of the page.

For instance, to view examples demonstrating plotting in MATLAB, navigate to the MATLAB >
Graphics > 2-D and 3-D Plots category and click Examples at the top of the page.

Additional examples, created by members of the MATLAB community, are available at the File
Exchange.

Open Examples in MATLAB


To copy an example and supporting files onto your system and open the example in MATLAB, click the
Copy Command button next to the example in the documentation. Then, paste the copied command
into the MATLAB Command Window.

You also can open some examples directly in your web browser in MATLAB Online by clicking the Try
This Example button (if you are not logged into a MathWorks account) or the Open in MATLAB
Online button (if you are logged into a MathWorks account).

4-4
MATLAB Code Examples

Once the example is open, run it by clicking Run


. To run the example one
section at a time and view the incremental results, select the first section and then step through the
script by clicking Run and Advance
.

See Also
demo | echodemo | openExample

Related Examples
• “Create and Run Sections in Code”

External Websites
• File Exchange

4-5
4 Help and Product Information

Contact Technical Support

If you are using a MathWorks product and experience technical issues, you can contact MathWorks
technical support to report a bug or request help. Access to technical support requires a valid license
number and a Software Maintenance Service subscription.

To contact technical support directly from MATLAB, follow these steps. This method requires an
internet connection.
1
On the Home tab, in the Resources section, click Request Support.
2 When requested, sign in using your MathWorks Account email address and password. If you do
not have a MathWorks Account, create one.
3 In the Summary and Description fields. provide information to help technical support
reproduce your issue, such as a description of the steps you followed or a code excerpt.
Optionally, you can attach up to five files to your request, where each file is no larger than 5 MB.

4 In the Product field, specify the product that is related to the issue.
5 Press the Submit button to submit the request.

Alternatively, you can request support on the MathWorks Contact Support page. In MATLAB Online
and for certain license types, the Request Support button opens the MathWorks Contact Support
page instead of the Submit a MathWorks Support Request dialog box.

4-6
Contact Technical Support

There are also many resources available on the MathWorks Help Center page. These resources
include documentation for MathWorks products, MATLAB Answers, and installation help.

See Also

More About
• MathWorks Help Center Page

4-7
4 Help and Product Information

Help Preferences

You can customize how MATLAB displays documentation using Help preferences, including whether
to open web or locally installed documentation and, on some non-English systems, what language to
display the documentation in.

To open the Help preferences, on the Home tab, in the Environment section, click Preferences.
Select MATLAB > Help and adjust the preference options as described in the table below.

Preference Usage
Documentation Location Specify whether to view the documentation on the web at https://
www.mathworks.com/help (recommended) or the documentation
installed locally on your system. Viewing the web documentation requires
an internet connection.

The documentation is not installed as part of a MATLAB or other product


installation. If you set the documentation location to Installed locally
and MathWorks documentation is not installed on your system, you can
install it by clicking Install Documentation. If you run MATLAB on a
system with no internet connection (permanently offline), you can
download the documentation on a computer connected to the internet
and then install it on your system. For more information, see “Install
Documentation”.

If the documentation is already open in your system web browser,


changes to this preference apply only to new tabs.
Quick Help Display Specify whether help links display content in your system web browser or
in a small window. This preference applies to reference pages or program
help that you access using:

• Help on Selection in context menus or F1


• Function hints or the Function Browser
• Links in error messages
Selected Products Select the products to include for viewing and searching documentation
in the Function Browser.

If your Documentation Location is set to view documentation on the


web, then you can select Show products that are not installed to
select and access documentation for all MathWorks products in the
Function Browser.

4-8
Help Preferences

Preference Usage
Language (selected non-English Specify whether the installed documentation and the documentation in
systems only) other help windows appears in your system language or in English. This
option is available for selected non-English systems only.

Use the Language option to change the documentation language in the


Help browser. Supported languages include English, Japanese, Korean,
Chinese, Spanish, French, Italian, or German.

For more information, including how to change the language for the
documentation that opens in your system web browser, see “Translated
Documentation” on page 4-10.

To adjust the font size of the documentation, adjust the zoom settings for your system web browser.

See Also

More About
• “Install Documentation”
• “Translated Documentation” on page 4-10

4-9
4 Help and Product Information

Translated Documentation
Many MathWorks products have translated documentation in Japanese. In addition, some features of
MATLAB have translated documentation in Korean, simplified Chinese, Spanish, French, Italian, and
German. If you install documentation locally, a product with translated documentation usually installs
the translated documentation from the previous version and the English documentation for the
current version.

For information about documentation in other languages, contact your MathWorks Sales and Service
office.

Change Documentation Language in your System Web Browser


By default, the documentation open in your system web browser. To change the language of the
documentation that opens in your system web browser:
1
In MATLAB, go to the Home tab and click the Help button to open the documentation in
your system web browser. Alternatively, in your system web browser, navigate to the MathWorks
Help Center website.
2 Click the country selection button at the bottom of the webpage, and select a country based on
the language in which you want to view the documentation.

Use the Language option in the MATLAB Help preferences to change the documentation language in
the Help browser. Supported languages include English, Japanese, Korean, Chinese, Spanish, French,
Italian, or German. For more information, see “Help Preferences” on page 4-8.

Change Documentation Language for Installed Documentation


For Japanese, Korean, and Chinese systems, you can install the documentation in your system
language. Installing documentation in Spanish, French, Italian, or German is not supported.

To install and view documentation in your system language:


1 Make sure that the locale or display language setting on your system is set to Japanese, Korean,
or Chinese. In some cases, you might have to install a language pack or fonts for the language
that you want to select. Each platform uses different settings and options to specify locale and
display language. For more information, see “Set Locale and Display Language” on page 9-2.
2 Go to the Home tab, and in the Environment section, click Preferences and select MATLAB
> Help.
3 Set the Documentation Location to Installed locally.
4 Select a Language option.

Note

• The Language preference appears only when your system language is set to Japanese, Korean,
Chinese.

4-10
Translated Documentation

• The Language preference changes only the documentation language in the installed
documentation and other help windows. To change the language of the text in the MATLAB
desktop, see “Change the MATLAB Desktop Language” on page 9-9.

See Also

Related Examples
• “Change the MATLAB Desktop Language” on page 9-9
• “Help Preferences” on page 4-8
• “Set Locale and Display Language” on page 9-2

4-11
4 Help and Product Information

Information About Your Installation


MATLAB software can tell you what products are installed, their versions, and other information
about your license and platform. This information is important to have in the event you contact
technical support on page 4-6.

Type of Information You To Get the Information


Want
Version and license for From the product, select Help > About Product Name.
Installed product
Or use functions:

• license — for the license number


• version — for version numbers for MathWorks products
MATLAB platform In MATLAB, select Help > About MATLAB. The About MATLAB
dialog box shows 32-bit or 64-bit.
arch value used to locate In MATLAB, select Help > About MATLAB. The About MATLAB
library files for the mex dialog box shows the arch value, for example win64.
function and standalone
applications Or use the computer function.
Passcodes and licenses From any desktop tool, select Help > Licensing > Manage Licenses.

4-12
5

Workspace Browser and Variable Editor

• “Create and Edit Variables” on page 5-2


• “Display Statistics in the Workspace Browser” on page 5-10
• “Save and Load Workspace Variables” on page 5-12
• “Workspace and Variable Preferences” on page 5-14
5 Workspace Browser and Variable Editor

Create and Edit Variables

Create Variables
The MATLAB workspace consists of the variables you create and store in memory during a MATLAB
session. You can create new variables in the workspace by running MATLAB code or using existing
variables.

To create a new variable, enter the variable name in the Command Window, followed by an equal sign
(=) and the value you want to assign to the variable. For example, if you run these statements,
MATLAB adds the four variables x, A, I, and C to the workspace:
x = 5.71;
A = [1 2 3; 4 5 6; 7 8 9];
I = besseli(x,A);
C = {A A A};

You do not have to declare variables before assigning values to them.

If you do not end the assignment statement with a semicolon (;), MATLAB displays the result in the
Command Window. For example,
x = 5.71

x =
5.7100

If you do not explicitly assign the output of a statement to a variable, MATLAB generally assigns the
result to the reserved word ans. The value of ans changes with every statement that returns an
output value that is not assigned to a variable. For example,
sin(1)

ans =
0.8415

To view and edit variables, use the Workspace browser and Variables editor. (Some editing options
are not available in MATLAB Online.)

View Workspace Contents


To view a list of variables in your workspace, use the Workspace browser.

5-2
Create and Edit Variables

To open the Workspace browser if it is not currently visible, do either of the following:

• On the Home tab, in the Environment section, click Layout. Then, under Show, select
Workspace.
• Type workspace in the Command Window.

By default, the Workspace browser displays the base workspace. You also can view function
workspaces if MATLAB is in debug mode. For more information, see “Base and Function
Workspaces”.

To display additional columns such as size and range, on the Workspace browser title bar, click the
Show Workspace Actions button , and then click Choose Columns. In MATLAB Online, to select
which columns to display, right-click a column name in the Workspace panel and select or clear the
desired column names.

You also can use the who command in the Command Window to view a list of variables. To list
information about size and class, use the whos command. For example, if you have the variables x, A,
and I in your workspace, you can run the who and whos commands to view your workspace contents:

who

Your variables are:

A C I x

whos

Name Size Bytes Class Attributes

A 3x3 72 double
C 1x3 528 cell
I 3x3 72 double
x 1x1 8 double

View Variable Contents


You can view the contents of a variable in several ways:

• Command Window — Type the variable name at the command prompt. For example:

x =
5.7100
• Variables editor — In the Workspace browser, double-click a variable name. The Variables editor
opens for that variable.

5-3
5 Workspace Browser and Variable Editor

Some variables open a viewer or other tool appropriate for their type. For details, see the
documentation for that data or object type.

A Protected Property or Private Property icon next to a variable property in the


Variables editor indicates that the property is protected or private, respectively.

To change how the Variables editor displays variables, go to the View tab, and in the Format
section, select a number display format. The display format does not affect how values are
displayed in the Command Window or Workspace browser, or how the variables are saved.

Note The maximum number of elements in a variable that you can open in the Variables editor
depends on your operating system and the amount of physical memory installed on your system.

Edit Variable Contents


You can edit the contents of scalar (1-by-1) variables in the Workspace browser. To edit the contents,
click the variable value to select it and then enter a new value.

To edit other variables, open them in the Variables editor. For example, suppose that you create a cell
array, C, by running these commands in the Command Window:

A = magic(4);
C = {A A A};

In the Workspace browser, double-click the variable name C to open it in the Variables editor.

5-4
Create and Edit Variables

To edit an element of a variable, double-click the element. The element opens in a new document
within the Variables editor. For example, if you double-click element C{1,1} in the Variables editor,
the contents of that cell open in a new tab. You can edit the value of a variable element by clicking
the element and typing a new value. Press Enter or click another element to save the change.

To return to the parent cell array or structure of an element, go to the View tab and click the Go Up
button.

Changes you make in the Variables editor are automatically saved in the workspace. Changes you
make to variables via the Command Window or other operations automatically update the information
for those variables in the Workspace browser and Variables editor.

Note

• You cannot edit elements or subsets of multidimensional arrays in the Variables editor.
• You cannot edit tall arrays in the Variables editor.
• When editing strings in the Workspace browser or as part of a structure in the Variables editor,
you must use double quotes to surround the string value.

Edit Table and Structure Array Variables

Tables (including timetables) and structure arrays support additional editing actions.

5-5
5 Workspace Browser and Variable Editor

Action Procedure
Modify column or row name Double-click the name and enter the new text.

Reorder variables Hover over the left side of a variable until a four-headed arrow
appears. Then, click and drag the column to a new location.

Modify units and description of Click the arrow that appears to the right of a variable name. Then,
variables enter new text in the Units and Description fields.

5-6
Create and Edit Variables

Action Procedure
Sort variable data Click the arrow that appears to the right of a variable name and
select Ascending or Descending.

Note The contents of a table are only visible and modifiable when the number of variables is fewer
than 5000. When the number of variables equals or exceeds 5000, you can only view the table
properties.

Changes made to certain variable types in the Variables editor also appear in the Command Window.
For example, suppose you have a table T that contains three columns, A, B, and C. If you delete
column A in the Variables editor, the line T(:,'A') = []; displays in the Command Window. To
suppress code display in the Command Window, on the View tab, clear the Show MATLAB Code
check box.

Resize or Reshape Variables


To modify the size, shape, and order of variable elements in the Variable editor, use one of these
procedures.

Action Procedure
Delete row, column, or variable Right-click the desired row header, column header, or selected
elements elements and select Delete Row or Delete Column.
Insert new row or column Right-click the desired row header, column header, or element and
select Insert Row Above, Insert Row Below, Insert Column to
the Left, or Insert Column to the Right. You can also add rows
or columns simply by entering a value in an empty row or column.
For example, to add a row and column to the array in C{1,1},
enter a value in element (5,5).
Cut variable elements Right-click the desired row header, column header, or selected
elements and select Cut. The cut values move to the clipboard and
are replaced by the default value for empty elements. For more
information, see “Empty Elements” on page 5-8.

5-7
5 Workspace Browser and Variable Editor

Action Procedure
Copy variable elements Right-click the desired row header, column header, or selected
elements and select Copy.
Paste variable elements Right-click the row header, column header, or element where you
want the insertion to begin and select Paste.
Paste cells from Microsoft Excel Right-click the element where you want the insertion to begin, and
spreadsheet then select Paste Excel Data.

Empty Elements

Empty elements in variables are assigned default values. Default assignments are:

• 0 for numeric arrays


• [] for cell arrays and structure arrays
• <undefined> for categorical variables

Copy, Rename, and Delete Variables


You can copy and paste, duplicate, rename, and delete variables within the Workspace browser.

Action Procedure
Copy variable to and from Select the variables, right-click, and then select Copy. Then, you
clipboard can paste the names, for example, into the Command Window or
an external application. Multiple variables are comma-separated.
Duplicate variable Select the variables, right-click, and then select Duplicate.
MATLAB creates a copy of the selected variables.
Rename a workspace variable Right-click the variable name, and then select Rename. Type the
new variable name and press Enter.
Delete all variables in On the Home tab, in the Variable section, click Clear
workspace Workspace.

You also can use the clear function in the Command Window.
Delete selected variables from Select the variables in the Workspace browser, right-click, and
workspace then select Delete.

You can also use the clear function in the Command Window. For
example, to clear variables A and B, use the command clear A B.

To preserve specified variables, but delete others, use the


clearvars function with the -except option. For example, to
clear all variables except variable A, use the command clearvars
-except A.

To create a new workspace variable from an existing variable, in the Variables editor, select an
element, data range, row, or column in an array, and then in the Variable tab, select New from
Selection.

You can change the character that delimits decimals in the data when you cut and paste values from
the Variables editor into text files or other applications. You might do this, for instance, if you provide

5-8
Create and Edit Variables

data to a locale that uses a character other than the period (.). To change the delimiter character,
specify a Decimal separator for exporting numeric data via system clipboard in the “Variables
Preferences” on page 5-15.

Navigate Variable Contents


When editing variables in the Variables editor, some variables can contain large amounts of data,
making it difficult to navigate between elements. Use these keyboard shortcuts to move easily
between variable elements in the Variables editor. You cannot modify these keyboard shortcuts.

Action Keyboard Shortcut


Commit changes to element and move to next element. Enter

“Variables Preferences” on page 5-15 enable you to specify what


the next element is. The default is to move down.
Move right. Tab

Within a selection, Tab also moves from the last column in one row
to the first column in the next row.
Move in opposite direction of Enter or Tab. Shift+Enter or Shift+Tab
Move up m rows, where m is the number of visible rows. Page Up
Move down m rows, where m is the number of visible rows. Page Down
Move to column 1. Home
Move to row 1, column 1. Ctrl+Home
Edit current element, positioning cursor at the end of the element. F2 (Ctrl+U on Apple Macintosh
platforms)

See Also
openvar | Workspace Browser

More About
• “Variable Names”
• “Display Statistics in the Workspace Browser” on page 5-10
• “Workspace and Variable Preferences” on page 5-14
• “Save and Load Workspace Variables” on page 5-12

5-9
5 Workspace Browser and Variable Editor

Display Statistics in the Workspace Browser


For each variable or object, the Workspace browser can display statistics such as the Min, Max, and
Mean, when relevant. MATLAB performs these calculations using the min, max, and mean functions,
and updates the results automatically.

To display statistics, on the Workspace browser title bar, click the Show Workspace Actions
button, and then select Choose Columns. Select the statistics you want MATLAB to calculate. In
MATLAB Online, to select which columns to display, right-click a column name in the Workspace
panel and select or clear the desired column names.

Improve Workspace Browser Performance During Statistical


Calculations
If you show statistical columns in the Workspace browser, and you work with very large arrays, you
might experience performance issues when the data changes as MATLAB updates the statistical
results. To improve performance, consider one or both of the following:

• Show only the statistics of interest to you.

On the Workspace browser title bar, click the Show Workspace Actions button, and then
select Choose Columns. Clear the statistics that you do not want MATLAB to calculate. In
MATLAB Online, to change which statistics display, right-click a column name in the Workspace
panel and clear the statistics that you do not want MATLAB to calculate.
• Exclude large arrays from statistical calculations.

On the Home tab, in the Environment section, click the Specify preferences button. Select
MATLAB > Workspace, and then use the arrow buttons under Statistical calculations to
change the maximum array size for which the Workspace browser performs statistical
calculations. Any variable exceeding the maximum array size reports <Too many elements> in
Workspace browser statistics columns instead of statistical results.

Include or Exclude NaN Values in Statistical Calculations


If your data includes NaNs (Not-a-Number values), you can specify that the Workspace browser
statistical calculations consider or ignore the NaNs. On the Home tab, in the Environment section,
click the Specify preferences button. Select MATLAB > Workspace, and then select one of the
following:

• Use NaNs when calculating statistics

If a variable includes a NaN, and you select this option, the values for Min, Max, Var, and several
other statistics appear as NaN. However, Mode and several other statistics show a numeric result.
• Ignore NaNs whenever possible

If a variable includes a NaN, and you select this option, numeric results appear for most statistics
including Min, Max, and Mode. However, Var still appears as NaN.

5-10
Display Statistics in the Workspace Browser

See Also

More About
• “Infinity and NaN”
• “Workspace and Variable Preferences” on page 5-14

5-11
5 Workspace Browser and Variable Editor

Save and Load Workspace Variables

The workspace is not maintained across sessions of MATLAB. When you quit MATLAB, the workspace
clears. However, you can save any or all the variables in the current workspace to a MAT-file (.mat).
You can then reuse the workspace variables later during the current MATLAB session or during
another session by loading the saved MAT-file.

Save Workspace Variables


There are several ways to save workspace variables interactively:

• To save all workspace variables to a MAT-file, on the Home tab, in the Variable section, click
Save Workspace.
• To save a subset of your workspace variables to a MAT-file, select the variables in the Workspace
browser, right-click, and then select Save As. You also can drag the selected variables from the
Workspace browser to the Current Folder browser.
• To save variables to a MATLAB script, click the Save Workspace button or select the Save As
option, and in the Save As window, set the Save as type option to MATLAB Script. Variables
that cannot be saved to a script are saved to a MAT-file with the same name as that of the script.

You also can save workspace variables programmatically using the save function. For example, to
save all current workspace variables to the file june10.mat, use the command

save('june10')

To save only variables A and B to the file june10.mat, use the command

save('june10','A','B')

To store fields of a scalar structure as individual variables, use the save function with the -struct
option. This can be useful if you previously loaded variables from a MAT-File into a structure using
the syntax S = load(filename) and want to keep the original variable structure when saving to a
new MAT-File.

To save part of a variable, use the matfile function. This can be useful if you are working with very
large data sets that are otherwise too large to fit in memory. For more information, see “Save and
Load Parts of Variables in MAT-Files”.

In MATLAB Online, variables persist between sessions. Saving allows you to clear the workspace and
load variables at a later time. To save variables, use the save or matfile functions.

Load Workspace Variables


To load saved variables from a MAT-file into your workspace, double-click the MAT-file in the Current
Folder browser.

To load a subset of variables from a MAT-file on the Home tab, in the Variable section, click Import
Data. Select the MAT-file you want to load and click Open. You also can drag the desired variables
from the Current Folder browser Details panel of the selected MAT-file to the Workspace browser. In
MATLAB Online, you also can click the Preview button to the right of the MAT-file in the Files
browser and drag the desired variables from the preview to the Workspace panel.

5-12
Save and Load Workspace Variables

To load variables saved to a MATLAB script into the workspace, simply run the script.

You also can load saved variables programmatically, use the load function. For example, load all
variables from the file durer.mat

load('durer')

To load variables X and map from the file durer.mat

load('durer','X','map')

To load part of a variable, use the matfile function. This is useful if you are working with very large
data sets that are otherwise too large to fit in memory. For more information, see “Save and Load
Parts of Variables in MAT-Files”.

Caution When you load data into the MATLAB workspace, the new variables you create overwrite
any existing variables in the workspace that have the same name. To avoid overwriting existing
variables, use the load function to load the variables into a structure. For example, S =
load('durer') loads all the variables from the file durer.mat into the structure S.

View Contents of MAT-File


To see the variables in a MAT-file before loading the file into your workspace, click the file name in
the Current Folder browser. Information about the variables appears in the Details pane.

Alternatively, use the command whos -file filename. This function returns the name, dimensions,
size, and class of all variables in the specified MAT-file. For example, you can view the contents of the
example file durer.mat.

whos -file durer.mat

Name Size Bytes Class Attributes

X 648x509 2638656 double


caption 2x28 112 char
map 128x3 3072 double

The byte counts represent the number of bytes that the data occupies in memory when loaded into
the MATLAB workspace. Because of compression, data encoding, and metadata, the space occupied
in the file by a variable may be different from the in-memory size. MATLAB compresses data in
Version 7 or higher MAT-files. For more information, see “MAT-File Versions”.

See Also
save | load

More About
• “MAT-File Versions”
• “Save and Load Parts of Variables in MAT-Files”

5-13
5 Workspace Browser and Variable Editor

Workspace and Variable Preferences

In this section...
“Workspace Preferences” on page 5-14
“Variables Preferences” on page 5-15

Workspace Preferences

Workspace preferences enable you to configure options for saving workspace variables to MATLAB
scripts. They also enable you to restrict the size of arrays on which MATLAB performs calculations,
and to specify if you want those calculations to include or ignore NaNs.

To open Workspace preferences, on the Home tab, in the Environment section, click
Preferences. Select MATLAB > Workspace.

Preference Usage
Threshold for saving variables to MATLAB Specify Maximum array size to limit the
script number of elements of arrays saved to a MATLAB
script.
Specify Maximum struct/object nesting levels
to limit the nesting level of structures, arrays, or
objects saved to a MATLAB script.
Multidimensional array formatting Specify how multidimensional arrays are
formatted when saved to a MATLAB script.

To create a compact script, select Row vector


with reshape (compactness and efficiency).

To retain array representation, select As 2-D


pages (readability). Specify the dimensions of a
2-D slice as positive integers less than or equal to
the dimensions of the n-D array. The second
integer must be greater than the first.
File formatting Set the character width at which text in the
MATLAB script is wrapped by specifying
Maximum characters per line.
Statistical calculations Set the maximum array size to display statistics
for in the Workspace browser using the element
and smaller arrays show statistics option.
Excluding large arrays from statistical
calculations improves Workspace browser
performance.

For more information, see “Display Statistics in


the Workspace Browser” on page 5-10.

5-14
Workspace and Variable Preferences

Preference Usage
Specify whether NaN values are included or
excluded from calculations for the statistics
displayed in the Workspace browser.

Select Use NaNs when calculating statistics


to include NaN values or Ignore NaNs when
calculating statistics to exclude NaN values.

For more information, see “Display Statistics in


the Workspace Browser” on page 5-10.
MATLAB array size limit By default, MATLAB can use up to 100% of the
size of RAM (not including virtual memory) of
your computer to allocate memory for each
MATLAB array. To change this limit to a smaller
percentage, select the Limit the maximum
array size to a percentage of RAM check box.
Then move the slider to adjust the percentage of
RAM.

To allow MATLAB to use both RAM and virtual


memory when creating an array, clear the Limit
the maximum array size to a percentage of
RAM check box. If MATLAB attempts to allocate
memory that exceeds the resources available on
the computer, your system might become
nonresponsive.

This limit applies to the size of each array, not the


total size of all MATLAB arrays.

Variables Preferences

When working in the Variables editor, Variables preferences enable you to specify array formatting,
cursor movement, and the decimal separator for exporting data using the system clipboard.

To open Variables preferences, on the Home tab, in the Environment section, click Preferences.
Select MATLAB > Variables.

Preference Usage
Format Select an option from the Default array format to specify the
default array output format of numeric values displayed in the
Variables editor. This format preference affects only how numbers
display, not how MATLAB computes or saves them. For
information on formatting options, see the reference page for the
format function.

5-15
5 Workspace Browser and Variable Editor

Preference Usage
Editing Specify where the cursor moves to after you type an element and
press Enter.

To keep the cursor in the element where you typed, clear the
Move selection after Enter check box.

To move the cursor to another element, select the Move


selection after Enter check box. In the Direction field, specify
how you want the cursor to move.
International number In the Decimal separator for exporting numeric data via
handling system clipboard field, specify the decimal separator for
numbers you cut or copy from the Variables editor and then paste
into text files or other applications.

This preference has no effect on numeric data copied from and


pasted into MATLAB. Within MATLAB, decimal separators are
always periods.

Some Variables preferences are not available in MATLAB Online. To show generated code in the
Command Window when performing operations in the MATLAB Online Variables Editor, select Show
MATLAB code for operations.

See Also

More About
• “Create and Edit Variables” on page 5-2

5-16
6

Managing Files in MATLAB

• “Find Files” on page 6-2


• “Compare Files and Folders and Merge Files” on page 6-6
• “Compare and Merge Live Scripts and Functions” on page 6-17
• “Compare and Merge Apps” on page 6-22
• “Compare and Merge MAT-Files” on page 6-26
• “Compare XML Files” on page 6-30
• “Manage Files and Folders” on page 6-35
• “Files and Folders That MATLAB Accesses” on page 6-38
• “Current Folder Browser Preferences” on page 6-40
• “Specify File Names” on page 6-42
• “Create and Extract from Zip Archives” on page 6-45
• “What Is the MATLAB Search Path?” on page 6-47
• “Change Folders on Search Path” on page 6-50
• “Use Search Path with Different MATLAB Installations” on page 6-54
• “Add Folders to the MATLAB Search Path at Startup” on page 6-55
• “Assign userpath as Startup Folder (Macintosh or UNIX)” on page 6-57
• “Resolve Issue: MATLAB Did Not Appear to Successfully Set the Search Path” on page 6-58
• “Errors When Updating Folders on Search Path” on page 6-61
• “Troubleshoot Invalid or Unresponsive Windows Change Notification Handles” on page 6-62
6 Managing Files in MATLAB

Find Files

In this section...
“Simple Search for File Names” on page 6-2
“Advanced Search for Files” on page 6-2
“Advanced Search in MATLAB Online” on page 6-4

Simple Search for File Names


If you know the name of the file you want to find, begin typing the first characters of the name in the
Current Folder browser. As you type, the Current Folder browser searches downward from the top of
the window, looking through all expanded folders. To open the Current Folder browser if it is not
open, on the Home tab, in the Environment section, click Layout. Then, under Show, select
Current Folder.

Alternatively, to search for a series of characters anywhere in the name of a file:

1
Click the search button
in the Current Folder toolbar. The address bar becomes a search field.
2 Type a portion of a file name. The asterisk character (*) is a wildcard. For example, to show only
file names that begin with coll and have a .m extension, type coll*.m.
3 Press Enter.

MATLAB displays all files within the current folder (including its subfolders) that match that file
name. If you typed the full path to a folder, that folder becomes the current folder.

To clear the results and show all items in the current folder, press the Esc key.

In MATLAB Online, to search for files in the current folder or in the current project, go to the Home
tab and click the Go to File button.

Advanced Search for Files

To perform an advanced search for files, you can use the Find Files tool. Use the Find Files tool to:

• Search for specific text in file names and within files


• Include or exclude specified file types from your search
• Search in specified folders
• Exclude large files from your search

To open the Find Files tool, on the Home tab, in the File section, click Find Files. Enter your
search criteria in the dialog box that opens.

6-2
Find Files

Use the Look in menu to specify the folders you want to search. Select Entire MATLAB Path to
search all folders on the MATLAB search path. Alternatively, you can browse for a folder by selecting
Browse... or you can enter the full path for one or more folders. Separate each path with a semicolon
(;).

Click Find to begin the search. Search results appear in the right pane of the dialog box, with a
summary at the bottom. For text searches, results include the line number and line of code. To see file
locations, select Show full path names.

Open one or more files by right-clicking the files and selecting one of the Open options.

Include or Exclude File Types

You can search for files with only a specified extension, by selecting an option in the Include only
file type(s) menu. For example, select *.m, *.mlx to limit the search to MATLAB program files.

To exclude some file types from the search:

1 In the Include only file type(s) menu, select All files (*).
2 Under More options, select the Skip file type(s) box and click Edit. The Edit Skipped File
Extensions dialog box opens.
3 Select the State check box for the file types to exclude from your search.
4 Click OK to accept your changes.

You can remove any file extension from the list by selecting the extension to highlight it. Then, click
Remove.

Search Within File

Under More options, you can choose to search file contents for a partial word. From the Search
type menu, select Contains text. To find an exact full-word match, select Matches whole word.

6-3
6 Managing Files in MATLAB

Searching within large files can be time consuming. To speed up your search, specify a file size in the
Skip files over field. The Find Files tool ignores files larger than the size you specify.

Troubleshooting

If the Find Files tool does not find the file you want, try the following:

• When searching for file names, use the asterisk character (*) as a wildcard character to expand
your search. For example, to show file names that begin with coll and have a .m extension, type
coll*.m.
• Select the Include Subfolders check box if the file might be in a subfolder.
• If you select the Skip file type(s) check box, ensure that you do not exclude relevant file types
from your search. Click Edit and review the Edit Skipped File Extensions dialog box. Ensure that
relevant file types do not have the State check box selected.

Advanced Search in MATLAB Online


In MATLAB Online, you can search for and replace text in filenames and file content using the Find

Files panel. To open the Find Files panel, click the Find Files icon in the sidebar. If the Find Files
icon is not in the left or right sidebar, go to the Home tab, and in the File section, click Find
Files.

To change how the Find Files tool searches for text, select a search option:

• Match case – Search only for text with the precise case of the search text.
• Match whole word – Search only for exact full-word matches.
• Filters – Specify whether to search for file names or file content, what folders to search in, and
what file types to include in the results.

To replace text in filenames and file content, click the expand button to the left of the search field
to open the replace options. Then, to replace an instance of the search text in the results, select the
line containing the result, enter the text that you want to replace the search text with, and click the
Replace button. To replace all instances of the search text, click the Replace All button. Replacing
text is supported in text files (.txt) and MATLAB code files (.m).

6-4
Find Files

After performing a search, you can collapse or clear the list of search results, and export the results
as plain text. To collapse or clear the list of search results, click the Find Files actions button ( ) at
the top of the Find Files panel and select Collapse Results or Clear Results. To export the list of
search results as a plain text file (.txt) that can be viewed in an external text editor, click the Find
Files actions button ( ) and select Export as Plain Text.

See Also
dir | exist | what | which

More About
• “Find Functions to Use” on page 3-4
• “What Is the MATLAB Search Path?” on page 6-47

6-5
6 Managing Files in MATLAB

Compare Files and Folders and Merge Files

You can use the Comparison Tool to display the differences between selected pairs of files or folders.
For some file types, you also can merge changes from one file to the other.

Comparison Process
The comparison process involves three steps:
1 Select the files or folders to compare.
2 Choose a comparison type.
3 Explore the comparison report.

Select the Files or Folders to Compare

You can select files and folders to compare using any of these methods:

• MATLAB desktop — Go to the Home tab, and in the File section, click Compare. Click the
button to select items to compare, or drag and drop files from your file browser into the First file
or folder or Second file or folder fields.
• Current Folder browser — Select a file or folder, right-click, and select Compare Against. Click
the button to select a second item to compare, or drag and drop a file from your file browser
into the Second file or folder field. To select two files or subfolders to compare, Ctrl-click the file
names. Then right-click and select Compare Selected Files/Folders.
• Editor or Live Editor — Go to the Editor or Live Editor tab, and in the File section, click
Compare. The Comparison Tool includes the currently open file in the First file or folder field.
Click the button to select a second item to compare, or drag and drop a file from your file
browser into the Second file or folder field.

To compare a file with the autosave version or the saved version on disk, go to the Editor tab and
click Compare and select Compare with Version on Disk or Save and Compare with
Autosave. If your file is modified, the Editor saves the file before comparing. The Compare with
Version on Disk and Save and Compare with Autosave options are only available if the option
for automatically saving changes to a file is disabled. To disable the option, go to the Home tab,
and in the Environment section, click Preferences. Then, select Editor/Debugger and clear
Save changes upon clicking away from a file. This option is not available in the Live Editor.
• Command Window — Use the visdiff function. For example, to compare the two files
lengthofline.m and lengthofline2.m using the visdiff function and the default text
comparison, type visdiff('lengthofline.m','lengthofline2.m'). MATLAB opens the
Comparison Tool and displays the resulting comparison report.

Tip When selecting folders to compare, select Include subfolders to include subfolder content in
the comparison.

Choose a Comparison Type

The Comparison Tool compares selected items using the default comparison type defined for the
selected items. For some item types, you can select a different comparison type from the default. For

6-6
Compare Files and Folders and Merge Files

example, you can choose from a text, binary, file list, or XML comparison. To change the comparison
type, select the files or folders to compare. Then, select from the available Comparison type options.
The Comparison Tool displays only the valid options for the selected item types.

You cannot change the comparison type for an existing comparison report. To change the comparison
type, start a new comparison.

If you specify two files or folders to compare using either the Current Folder browser or the visdiff
function, then the Comparison Tool automatically performs the default comparison type. For example,
from the Current Folder browser, if you select two XML files to compare, the tool uses the default text
comparison. To change the comparison type to a hierarchical comparison instead, create a new
comparison using the Comparison Tool.

Explore the Comparison Report

After selecting the comparison type, click the Compare button. The comparison report opens. You
can explore the comparison report in different ways depending on the items being compared. For
more information, see the details described for each comparison type below.

Compare Folders and Zip Files

You can compare any combination of folders and ZIP files using the Comparison Tool. For example,
you can compare the contents of a folder to the contents of a ZIP file. The Comparison Tool performs
a file list comparison of the selected items.

Create a folder comparison report to:

• Identify common files.


• Determine whether files or folders with identical names have identical content. If such files or
folders exist, you can open a detailed comparison report for the items directly from the report.

When you perform a file list comparison, a new window opens and displays the contents of the
specified lists side by side. For example, suppose that you have two folders, curvefitting and
curvefitting2, with several differences. When you compare the two folders, the Comparison Tool
displays the resulting report.

6-7
6 Managing Files in MATLAB

The Comparison Tool highlights files and subfolders that do not match using the colors listed in this
table.

Highlight Color Description


Purple The contents of the files or folders differ. Click
the compare link to investigate.
Blue The file or folder only exists in the right list.
Yellow The file or folder only exists in the left list.
None The files or folders are identical.

You further can explore the results using several methods:

• To sort the results by name, type, size, or last modified timestamp, click the corresponding column
header. For example, click the Type column header to sort by folder and file type.
• To open a detailed comparison report for items with differing content, click the compare link next
to the item.
• To open a file in the Editor, click the open link next to a file name. If the file is present in both
folders, you can click links to open the left or right version of the file.
• If subfolders are very large and contain many files, analysis continues in the background. The tool
displays the number of items still to be compared at the top of the report. You can click Skip
Current to skip the current item or Cancel All to stop further analysis.

• To save time when reviewing differences, especially when comparing many subfolders, you can
filter the report. To apply a filter, on the View tab, select Filter > "filterName".

6-8
Compare Files and Folders and Merge Files

To create a new filter, on the View tab, select Filter > Add/Remove Filter. You can specify filters
to ignore certain files and folders, such as backup files or files created by a revision control
system. For example, to ignore all files and folders in a folder named CVS, type CVS/. To ignore all
files in a folder named CVS, but not ignore subfolders, type CVS/*.

To edit existing filters, double click the filter.

For information about how to further configure the comparison report, see “Additional Comparison
Tools” on page 6-15.

Compare MATLAB Projects in MATLAB Online

In MATLAB Online, you can compare project definition files. When you compare folders, MATLAB
detects whether they are project root folders. MATLAB looks for and compares the project definition
files stored in the resources or .SimulinkProject folder. Project definition files contain
information about the project path, project settings, shortcuts, labels, and referenced projects.

To compare project definition files, select the PRJ files or the project root folders, right-click your
selection, and select Compare Selected Files/Folders. When you select a node in the results report,
the Comparison Tool shows more details in the bottom pane.

6-9
6 Managing Files in MATLAB

This example comparison shows that:

• AnalogControl.slx (purple) is modified.


• f14_airframe.slx (yellow) is replaced by f14_airframe.mdl (blue) in the project.
• LinearActuator.slx is modified (purple) and the model has a new label associated to it (blue).
• A new label classification category named Release Branch is added.
• The reference to the Signal Multiplier project is deleted.
• The F14 Model shortcut is deleted.
• Project settings such as project details, path, and dependency settings are modified. For example,
in the Details section of Project Settings, the project description is modified.

6-10
Compare Files and Folders and Merge Files

You can compare project definition files only in MATLAB Online.

Compare Text Files


You can compare and merge lines in two text files using the Comparison Tool. When you perform a
text comparison, a new window opens and displays the two files side by side.

Compare Files

A user made some changes to lengthofline.m and saved the resulting file as lengthofline2.m.

Use visdiff to compare the lengthofline.m and lengthofline2.m files.

visdiff("lengthofline.m","lengthofline2.m")

The Comparison Tool displays the resulting report.

6-11
6 Managing Files in MATLAB

Understand Comparison Results

The Comparison Tool displays the total number of differences in the bottom-right corner of the
comparison report and highlights the lines that have changed with the colors listed in this table.

If the files are identical or differ only in line break, you see a message reporting there are no
differences.

Highlight Color Description


Purple The line contains differences.
Dark Purple The highlighted characters are different.
Blue The line exists only in the right file. This can happen when the
line is inserted in the right file, or when it is deleted from the
left file. The corresponding line in the left file is highlighted
using a gray striped pattern.

6-12
Compare Files and Folders and Merge Files

Highlight Color Description


Yellow The line exists only in the left file. This can happen when the
line is inserted in the left file, or when it is deleted from the
right file. The corresponding line in the right file is
highlighted using a gray striped pattern.

The Comparison Tool attempts to match lines and detects text that is added, deleted, or changed. For
example, in the text comparison of lengthofline.m and lengthofline2.m, the tool determines
that lengthofline2.m has a line of code that does not exist in lengthofline.m and highlights it
(line 22) in blue. Also, the tool takes the additional line into account and determines that the line
containing the end statement in each file matches, even though the end statement does not occur on
the same line number in both files.

You further can explore and configure the results using several methods:

• Ignore white space differences — To help distinguish between functional changes and changes to
indentation, you can hide white space differences. To hide differences that only involve white
space characters, click Filter, and select Ignore White Space.

Show compared files details — To show the file details, click the expand arrow next to the file
name.
• Save comparison report — To save a copy of the comparison report, select Publish > Publish to
HTML, Publish to Word, or Publish to PDF.

For information about how to further configure the comparison report, see “Additional Comparison
Tools” on page 6-15.

To step through the results one difference at a time, use the Next and Previous buttons.

By default, XML files are compared using a text comparison. To compare XML files with a
hierarchical comparison instead, see “Compare XML Files” on page 6-30.

Merge Text Files


When comparing text files, you can merge changes from one file to the other. Merging changes can
be useful when resolving conflicts between different versions of files. When merging changes, you
only can merge from left to right. If you want to merge into the left file, click the Swap Sides
button before you start merging. Clicking the Swap Sides button reverts any merges already
made and creates a new comparison report for the original files.

To begin merging, on the Comparison tab, click the Merge Mode button. Then, to replace
content from the right pane with content from the left pane, click the button located next to the
line you want to merge. You also can select a difference and, in the Comparison tab, click the
Replace Content button.

The right pane contains the merged result. An asterisk next to the merged file name in the right pane
(lengthofline2.m *) indicates that the file contains unsaved changes.

To undo a replacement, click the Undo button between the modified lines or on the Comparison
tab. To revert all merges and start again, click the Refresh button. You also can click the

6-13
6 Managing Files in MATLAB

Refresh button to update the comparison report after making changes to and saving the files.
Refreshing discards all unsaved merged changes.

To save your changes and return to the comparison report, click the
Save Result
button. To return to the comparison report without saving changes, click the

Return to
Comparison button.

Compare Binary Files

You can compare two binary files, such as DLL files or MEX files, using the Comparison Tool. You also
can perform a binary comparison on any two selected files, instead of the default comparison.

6-14
Compare Files and Folders and Merge Files

To compare any two files using a binary comparison, in the Comparison type menu, select Binary
comparison. When you perform a binary comparison, a new window opens and indicates whether
the two files are identical or different. If the files are different, click the Show Details link to view
the binary files and the byte offset of the first difference.

Compare Other File Types


You can use the Comparison Tool to compare other file types:

• Live Code — Compare and merge the code and text in two live code files. For more information,
see “Compare and Merge Live Scripts and Functions” on page 6-17.
• Apps — Compare and merge the code in two apps. For more information, see “Compare and
Merge Apps” on page 6-22.
• MAT-Files — Compare and merge variables in two MAT-files. For more information, see “Compare
and Merge MAT-Files” on page 6-26.
• XML Files — Compare two XML files using a text comparison or a hierarchical XML comparison.
For more information, see “Compare XML Files” on page 6-30.
• Simulink Models — If you have Simulink, you can compare and merge Simulink models. For
information, see “Model Comparison” (Simulink).
• MLDATX test files — Compare and merge Simulink Test™ test cases in MLDATX test files. For
information, see “Compare and Merge Test Files” (Simulink Test)

Additional Comparison Tools


You can further explore and configure a comparison report using these available tools:

• Swap Sides button — Switch the left side file or folder with the right side file or folder.
• Refresh button — Update the results in the Comparison Tool after making changes to and saving
the files in the Editor.
• Find button — Find a phrase in the current display. For more information, see “Find Text in
Command Window or History” on page 3-10.

Comparison Preferences

You can customize the Comparison Tool using Comparison preferences. To change the Comparison
preferences, on the Home tab, in the Environment section, click Preferences. Then, select
MATLAB > Comparison.

Color Preferences

You can change the colors that the Comparison Tool uses to highlight lines that have changed. Color
preferences apply to all comparison types.

To change the color preferences, in the Comparison preferences Colors section, change the colors for
differences, modified lines, modified content, and merged lines. The Sample area shows a preview of
the selected colors. After changing comparison colors, you must refresh any open comparison reports
to see the updated colors.

6-15
6 Managing Files in MATLAB

To save the modified color preferences for use in future MATLAB sessions, click Save As and enter a
name for your color settings profile. After saving a color profile, you can select the profile in the
Active Settings list. To restore the default color profile, click Reset.

External Source Control Integration Preferences

You can use the Comparison Tool to compare and merge files and folders in external source control
tools. To enable external source control tools to reuse open MATLAB sessions, in the Comparison
preferences External Source Control Integration section, select the Allow external source
control tools to use open MATLAB sessions for diffs and merges option. When you configure
your source control tool to use the MATLAB Comparison Tool, the Comparison Tool prompts you to
select this option.

For more information, see “Customize External Source Control to Use MATLAB for Diff and Merge”
(Simulink).

See Also
visdiff

Related Examples
• “Customize External Source Control to Use MATLAB for Diff and Merge”

External Websites
• Programming: Structuring Code (MathWorks Teaching Resources)

6-16
Compare and Merge Live Scripts and Functions

Compare and Merge Live Scripts and Functions

You can compare two live code files and merge changes between one file and another using the
Comparison Tool. The Comparison Tool highlights differences in code, text, and text formatting.

Select Files to Compare


There are multiple ways to select two files and start the Comparison Tool:

• Live Editor — Go to the Live Editor tab and, in the File section, click Compare. The Comparison
Tool includes the currently open file in the First file or folder field. Click the button to select a
second item to compare, or drag and drop a file from your file browser into the Second file or
folder field.
• Current Folder browser — Select a file, right-click, and select Compare Against. Click the
button to select a second item to compare, or drag and drop a file from your file browser into the
Second file or folder field. To select two files or subfolders to compare, Ctrl-click the file names.
Then right-click and select Compare Selected Files/Folders.
• Command Window — Use the visdiff function. For example, to compare the two files
averageweight.mlx and averageweight2.mlx using the visdiff function and the default
text comparison, type visdiff('averageweight.mlx','averageweight2.mlx'). MATLAB
opens the Comparison Tool and displays the resulting comparison report.

Explore Differences
When you compare MLX files, a new window opens and displays the two files side by side. For
example, suppose that you have two files, averageweight.mlx and averageweight2.mlx, with
several differences. When you compare the two files, the Comparison Tool displays the resulting
report.

6-17
6 Managing Files in MATLAB

When comparing live code files, the Comparison Tool highlights differences in code, text, and text
formatting. The Comparison Tool ignores output, even if the file contains saved output. If the tool
detects a difference within an equation, image, or control, the entire item is highlighted. The
Comparison Tool displays the total number of differences in the bottom-right corner of the
comparison report, and highlights the lines that do not match using the colors listed in this table.

Highlight Color Description


Purple The line contains differences.
Dark Purple The highlighted characters are different.
Blue The line exists only in right file. This can happen
when the line is inserted in the right file, or when
it is deleted from the left file. The corresponding
line in the left file is highlighted using a gray
striped pattern.

6-18
Compare and Merge Live Scripts and Functions

Highlight Color Description


Yellow The line exists only in left file. This can happen
when the line is inserted in the left file, or when it
is deleted from the right file. The corresponding
line in the right file is highlighted using a gray
striped pattern.

The Comparison Tool attempts to match lines and detects code and text that is added, deleted, or
changed. For example, in the live code comparison of averageweight.mlx and
averageweight2.mlx, the tool determines that averageweight.mlx has two lines of code that do
not exist in averageweight2.mlx and highlights them (line 5 and line 7) in yellow. Also, the tool
takes the additional lines into account and determines that the line containing the disp statement in
each file matches, even though the disp statement does not occur on the same line number.

To step through the results one difference at a time, use the Previous and Next buttons.

For information about how to configure the comparison report, see “Compare Files and Folders and
Merge Files” on page 6-6.

Merge Changes
When comparing live code files, you can merge changes from one file to the other. Merging changes
can be useful when resolving conflicts between different versions of files. You only can merge from
left to right. If you want to merge into the left file, click the Swap Sides button before you start
merging. Clicking the Swap Sides button reverts any merges already made and creates a new
comparison report for the original files.

To begin merging, on the Comparison tab, click the Merge Mode button. Then, to replace
content from the right pane with content from the left pane, click the button located next to the
line you want to merge. You also can select a difference and, in the Comparison tab, click the
Replace Content button.

The right pane contains the merged result. An asterisk next to the merged file name in the right pane
(averageweight2.mlx *) indicates that the file contains unsaved changes.

6-19
6 Managing Files in MATLAB

To undo a replacement, click the Undo button between the modified lines or on the Comparison
tab. To revert all merges and start again, click the Refresh button. You also can click the
Refresh button to update the comparison report after making changes to and saving the files in the
Live Editor. Refreshing discards all unsaved merged changes.

To save your changes and return to the comparison report, click the
Save Result
button. To return to the comparison report without saving changes, click the

Return to
Comparison button.

See Also
visdiff

More About
• “Compare Files and Folders and Merge Files” on page 6-6

6-20
Compare and Merge Live Scripts and Functions

• “Customize External Source Control to Use MATLAB for Diff and Merge”

6-21
6 Managing Files in MATLAB

Compare and Merge Apps


You can compare two apps and merge changes between one file and another using the Comparison
Tool. The Comparison Tool highlights differences in the code of two apps.

Select Files to Compare


There are multiple ways to select two files and start the Comparison Tool:

• App Designer — Go to the Designer or Editor tab and, in the File section, click Compare To.
The Comparison Tool includes the currently open file in the First file or folder field. Click the
button to select a second item to compare, or drag and drop a file from your file browser into the
Second file or folder field.
• Current Folder browser — Select a file, right-click, and select Compare Against. Click the
button to select a second item to compare, or drag and drop a file from your file browser into the
Second file or folder field. To select two files or subfolders to compare, Ctrl-click the file names.
Then right-click and select Compare Selected Files/Folders.
• Command Window — Use the visdiff function. For example, to compare the two files
ExplorerE.mlapp and ExplorerF.mlapp using the visdiff function and the default text
comparison, type visdiff('ExplorerE.mlapp','ExplorerF.mlapp'). MATLAB opens the
Comparison Tool and displays the resulting comparison report.

Explore Differences
When you perform an app comparison, a new window opens and displays the two files side by side.
For example, suppose that you have two files ExplorerE.mlapp and ExplorerF.mlapp with
several differences. When you compare the two files, the Comparison Tool displays the resulting
report.

6-22
Compare and Merge Apps

When comparing apps, the Comparison Tool attempts to match lines and detects code that is added,
deleted, or changed. The Comparison Tool displays the total number of differences in the bottom-right
corner of the comparison report and highlights the lines that do not match using the colors listed in
this table.

Highlight Color Description


Purple The line contains differences.
Dark Purple The highlighted characters are different.
Blue The line exists only in the right file. This can
happen when the line is inserted in the right file,
or when it is deleted from the left file. The
corresponding line in the left file is highlighted
using a gray striped pattern.
Yellow The line exists only in the left file. This can
happen when the line is inserted in the left file, or
when it is deleted from the right file. The
corresponding line in the right file is highlighted
using a gray striped pattern.

To step through the results one difference at a time, use the Next and Previous buttons.

6-23
6 Managing Files in MATLAB

For information about how to configure the comparison report, see “Compare Files and Folders and
Merge Files” on page 6-6.

Merge Changes
When comparing apps, you can merge changes from one app to the other. Merging changes can be
useful when resolving conflicts between different versions of an app.

To begin merging, on the Comparison tab, click the Merge Mode button. Then, to replace
content from the right pane with content from the left pane, click the button located next to the
line you want to merge. You also can select a difference and, in the Comparison tab, click the
Replace Content button.

The right pane contains the merged result. An asterisk next to the merged file name in the right pane
(ExplorerF.mlapp*) indicates that the file contains unsaved changes.

To undo a replacement, click the Undo button between the modified lines or on the Comparison
tab. To revert all merges and start again, click the Refresh button. You also can click the
Refresh button to update the comparison report after making changes to and saving the files in the
Live Editor. Refreshing discards all merged changes.

To save your changes and return to the comparison report, click the
Save Result
button. To return to the comparison report without saving changes, click the

Return to
Comparison button.

6-24
Compare and Merge Apps

Tips for Successful Merging

You can merge changes only in editable code. Sections of code with a white background are editable.
Examples of editable sections include the body of functions that you define (such as callbacks and
helper functions) and the definitions of custom properties. Sections with a gray background contain
non-editable generated code and therefore cannot be merged. If a change spans both an editable and
a non-editable section, you cannot merge it.

You can merge changes only from left to right. This makes the order of the files in the Comparison
Tool important.

If neither app contains changes in the generated code, place the file containing the changes that you
want to merge in the left pane. You can merge only from left to right. To swap a file from the left pane
to the right pane, click the Swap Sides button before you start merging. Clicking the Swap
Sides button reverts any merges already made and creates a new comparison report for the original
files.

If one of the apps contains changes in the generated code, place the file containing the generated
code that you want in the merged result in the right pane of the Comparison Tool. To swap a file from
the left pane to the right pane, click the Swap Sides button before you start merging.

If both apps contain changes in the generated code, those lines of code cannot be merged in the
Comparison Tool. To merge the files, use App Designer to interactively apply the desired changes to
the app

See Also
visdiff

More About
• “Compare Files and Folders and Merge Files” on page 6-6
• “Customize External Source Control to Use MATLAB for Diff and Merge”

6-25
6 Managing Files in MATLAB

Compare and Merge MAT-Files

You can use the Comparison Tool to compare two MAT-files. Compare two MAT-files to:

• Determine which variables are common to both files and which appear in only one file.
• Identify differences between individual variables. For example, you can determine which fields of
a structure are different or which elements of an array differ.

Select Files to Compare


There are multiple ways to select two files and start the Comparison Tool:

• MATLAB desktop — Go to the Home tab and, in the File section, click Compare. Click the
Browse to select File or Folder button to select items to compare, or drag and drop files
from your file browser into the First file or folder or Second file or folder fields.
• Current Folder browser — Select a file, right-click, and select Compare Against > Choose....
Click the Browse to select File or Folder button to select a second item to compare, or drag
and drop a file from your file browser into the Second file or folder field. To select two files or
subfolders to compare, Ctrl-click the file names. Then right-click and select Compare Selected
Files/Folders.
• Command Window — Use the visdiff function. For example, to compare the two files
data1.mat and data2.mat using the visdiff function, type
visdiff('data1.mat','data2.mat'). MATLAB opens the Comparison Tool and displays the
resulting comparison report.

Explore Differences
When you perform a MAT-file comparison, a new window opens and displays the two files side by side.
For example, suppose that you have two MAT-files, data1.mat and data2.mat. When you compare
the two files, the Comparison Tool displays the resulting report.

6-26
Compare and Merge MAT-Files

The Comparison Tool highlights changes in variables. If the variables in both files are equivalent but
the files are not identical, the Comparison Tool displays a message. Possible causes of the differences
between the files include file formats, file timestamps, the order in which the variables are stored, or
variables that contain ignored differences. The Comparison Tool uses these colors to highlight
differences.

Highlighting Description
Purple Values of the variable differ between the two files. Click the compare link
to investigate.
Blue The variable only exists in the right file.
Yellow The variable only exists in the left file.
None The variables in both files are equivalent. The tool ignores differences in
NaN patterns, field ordering in structs, and the difference between
negative zero or positive zero.
Purple (only in Class The variable data class changed. Click the compare link to investigate.
columns)

You can further explore the results in the report using several methods:

6-27
6 Managing Files in MATLAB

• Sort results — To sort the results by name, size, class, or difference summary, click the
corresponding column header. For example, click the Class column header to sort by class type.
• Load variable — To load the contents of a variable into the Variable Editor, click the name of that
variable.
• Load MAT-file — To load one of the MAT-files into the workspace, click the corresponding Load
link at the bottom of the report.
• Save HTML report — To save a copy of the report as an HTML file, go to the Comparison tab and
click Save As > HTML.

For information about how to further configure the comparison report, see “Compare Files and
Folders and Merge Files” on page 6-6.

Compare Variables

To investigate differences between instances of a variable in both files, click the compare link in the
Difference Summary column of the comparison report table. The Comparison Tool displays a report
for the specified variable. To further investigate differences in individual array elements or fields of a
structure, double-click a highlighted row.

Merge Changes
When comparing MAT-files, you can merge changes from one file to the other. There are no undo
capabilities when merging MAT-files, so merge with caution.

To copy modified variables from one file to the other, on the Comparison tab, in the Merge section,
click either the Copy the right variable to the left file or the Copy the left variable to the
right file button, as applicable.

Limitations
In MATLAB Online, the File Comparison Tool does not support variable comparison.

6-28
Compare and Merge MAT-Files

See Also
visdiff

More About
• “Compare Files and Folders and Merge Files” on page 6-6
• “Customize External Source Control to Use MATLAB for Diff and Merge”

6-29
6 Managing Files in MATLAB

Compare XML Files

In this section...
“Choose XML Files to Compare” on page 6-30
“Change Comparison Type” on page 6-31
“Navigate the XML Comparison Report” on page 6-31
“Save Comparison Log Files in a Zip File” on page 6-32
“Export Results to the Workspace” on page 6-33

You can use the Comparison Tool to compare a pair of XML text files. The tool processes the results
into a report that you can use to explore the file differences. You can compare XML files with a text
comparison or a hierarchical XML comparison.

You can access the XML Comparison Tool from the Current Folder browser, the Comparison Tool, or
programmatically using the visdiff function.

The XML comparison compares the files using the “Chawathe” algorithm, as described in this paper:
Change Detection in Hierarchically Structured Information, Sudarshan Chawathe, Anand Rajaraman,
and Jennifer Widom; SIGMOD Conference, Montreal, Canada, June 1996, pp. 493-504.

This conference paper is based on work published in 1995: see http://


dbpubs.stanford.edu:8090/pub/1995-45.

XML comparison reports display in the Comparison Tool. For more information about the Comparison
Tool, see “Compare Files and Folders and Merge Files” on page 6-6.

The XML comparison report shows a hierarchical view of the portions of the two XML files that differ.
The report does not show sections of the files that are identical.

If the files are identical or differ only in line break, you see a message reporting there are no
differences.

Note It might not be possible for the analysis to detect matches between previously corresponding
sections of files that have diverged too much.

Change detection in the Chawathe analysis is based on a scoring algorithm. Items match if their
Chawathe score is above a threshold. The implementation of Chawathe's algorithm uses a comparison
pattern that defines the thresholds.

Choose XML Files to Compare


From the Current Folder Browser

To compare two files from the Current Folder browser:

• For two files in the same folder, select the files, right-click and select Compare Selected Files/
Folders.
• To compare files in different folders:

6-30
Compare XML Files

1 Select a file, right-click, and select Compare Against


2 Select the second file to compare in the Select Files or Folders for Comparison dialog box.
3 Select the Comparison type XML text comparison.
4 Click Compare.

The XML Comparison Tool performs an analysis on the files and displays a report in the Comparison
Tool. The file you right-click to open the XML Comparison Tool displays on the right side of the report.

For more information about comparisons of other file types with the Comparison Tool, such as text,
MAT, or binary, see “Compare Files and Folders and Merge Files” on page 6-6.

Compare from the Comparison Tool

To compare files using the Comparison Tool, from the MATLAB toolstrip, in the File section, select
the Compare button. In the dialog box, select files to compare.

If the files you select to compare are XML files and you select an XML text comparison, the XML
Comparison Tool performs a Chawathe analysis of the XML files, and generates a report.

Compare from the Command Line

To compare XML files from the command line, enter


visdiff(filename1, filename2, 'xml')

where filename1 and filename1 are XML files.

Change Comparison Type


If you specify two XML files to compare using either the Current Folder Browser or the visdiff
function, then the Comparison Tool performs the default comparison type for the selected files. You
can compare XML files with a text comparison or a hierarchical XML comparison.

To change comparison type, either create a new comparison from the Comparison Tool, or use the
Compare Against option from the Current Folder browser. You can change comparison type in the
Select Files or Folders for Comparison dialog box. Select XML text comparison before clicking
Compare.

Navigate the XML Comparison Report


The XML comparison report shows changes only. The report is a hierarchical view of the differences
between two XML text files, and is not a hierarchical view of the original XML data.

To step through differences, use the Comparison tab on the toolstrip. To move to the next or
previous group of differences, on the Comparison tab, in the Navigate section, click the arrow
buttons to go to the previous or next difference.

You can also click to select items in the hierarchical trees.

• Selected items appear highlighted in a box.


• If the selected item is part of a matched pair, it is highlighted in a box in both left and right trees.

Report item highlighting indicates the nature of each difference as follows:

6-31
6 Managing Files in MATLAB

Type of report Highlighting Notes


item
Modified Purple Modified items are matched pairs that differ between the two files.
When you select a modified item it is highlighted in a box in both
trees.
Changed parameters for the selected pair are displayed
underneath.
Inserted Blue When you select an unmatched item it is highlighted in a box in
Deleted Yellow one tree only.

Container None Rows with no highlighting indicate a container item that contains
other modified or unmatched items.

Use the Comparison tab for the following functions:

• Refresh — Run Chawathe analysis again to refresh the comparison report.


• Swap Sides — Swap sides and rerun comparison. Runs the Chawathe analysis again.
• Save As > HTML — Opens the Save dialog box, where you can choose to save a printable version
of the XML comparison report. The report is a noninteractive HTML document of the differences
detected by the Chawathe algorithm for printing or archiving a record of the comparison.
• Save As > Workspace Variable — Export XML comparison results to workspace.
• In the Navigate section, click the arrow buttons (or press Up or Down keys) to go to the previous
difference or go to the next difference.
• Compare Selected Parameter — Open a new report for the currently selected pair of
parameters. Use this when the report cannot display all the details in the Parameters pane, e.g.,
long character vectors or a script.

Use the View tab controls on the toolstrip for the following functions:

• Expand All — Expands every item in the tree.

Tip Right-click to expand or collapse the hierarchy within the selected tree node.
• Collapse All — Collapses all items in the tree to the most compact view possible.

Note It may not be possible for the analysis to detect matches between previously corresponding
sections of files that have diverged too much.

Save Comparison Log Files in a Zip File


Temporary XML comparison files accumulate in tempdir/MatlabComparisons/
XMLComparisons/TempDirs/. These temporary files are deleted when you close the related
comparison report.

You can zip the temporary files (such as log files) created during XML comparisons, for sharing or
archiving. While the comparison report is open, enter:
xmlcomp.zipTempFiles('c:\work\myexportfolder')

The destination folder must exist. The output reports the zip file name:

6-32
Compare XML Files

Created the zipfile "c:\work\myexportfolder\20080915T065514w.zip"

To view the log file for the last comparison in the MATLAB Editor, enter:

xmlcomp.showLogFile

Export Results to the Workspace


To export the XML comparison results to the MATLAB base workspace,

1 On the Comparison tab, in the Comparison section, select Save As > Workspace variable.

The Input Variable Name dialog box appears.


2 Specify a name for the export object in the dialog box and click OK. This action exports the
results of the XML comparison to an xmlcomp.Edits object in the workspace.

The xmlcomp.Edits object contains information about the XML comparison including file names,
filters applied, and hierarchical nodes that differ between the two XML files.

To create an xmlcomp.Edits object at the command line without opening the Comparison Tool,
enter:

Edits = xmlcomp.compare(a.xml,b.xml)

Property of xmlcomp.Edits Description


Filters Array of filter structure arrays. Each structure
has two fields, Name and Value.
LeftFileName File name of left file exported to XML.
LeftRoot xmlcomp.Node object that references the root of
the left tree.
RightFileName File name of right file exported to XML.
RightRoot xmlcomp.Node object that references the root of
the right tree.
TimeSaved Time when results exported to the workspace.
Version MathWorks release-specific version number of
xmlcomp.Edits object.

Property of xmlcomp.Node Description


Children Array of xmlcomp.Node references to child
nodes, if any.
Edited Boolean — If Edited = true then the node is
either inserted or part of a modified matched
pair.
Name Name of node.
Parameters Array of parameter structure arrays. Each
structure has two fields, Name and Value.
Parent xmlcomp.Node reference to parent node, if any.

6-33
6 Managing Files in MATLAB

Property of xmlcomp.Node Description


Partner If matched, Partner is an xmlcomp.Node
reference to the matched partner node in the
other tree. Otherwise empty [].

See Also

Related Examples
• “Compare Files and Folders and Merge Files” on page 6-6

6-34
Manage Files and Folders

Manage Files and Folders

This table shows how to create, open, move, and rename files and folders on local and network
drives. If you have MATLAB Connector installed on your system, you also can access files and folders
in MATLAB Drive™ from MATLAB.

Action Tools Workflow Function Alternative


Create a new folder In the Current Folder browser, right- Use the mkdir function. For example,
click in white space, and then select create a subfolder named newdir in a
New > Folder. parent folder named parentFolder:

MATLAB creates and selects a folder mkdir('parentFolder','newdir');


named New Folder in the current
folder.
Move a file or folder In the Current Folder browser, click Use the movefile function. For
and drag the item. example, move the file named
myfile.m in the current folder to the
You cannot move a folder while it is on folder, d:/work:
the search path.
movefile('myfile.m','d:/work');
Rename a file or In the Current Folder browser, right- Use the movefile function. For
folder click the item and select Rename. example, in the current folder, rename
myfile.m to oldfile.m:
File names must start with a letter,
and can contain letters, digits, or movefile('myfile.m','oldfile.m');
underscores.
Open a file in On the Home tab, in the File section, Use the open function. The file opens
MATLAB click Open , and then select a file in MATLAB or in an external
to open. application, depending on the file
extension.
You also can double-click the file in
the Current Folder browser.

To open a file in the Editor as a text


file, even if the file type is associated
with another application or tool, in the
File section, click Open > Open as
Text.
Open a file in In the Current Folder browser, right-
another program click the file and select Open Outside
MATLAB. The file opens in the
application or tool that the operating
system associates with the file type.
Reopen a recently On the Home tab, in the File section, none
opened file click Open , and select a file from
the Recent Files section. To reopen a
recently opened project, select a
project from the Recent Projects list.

6-35
6 Managing Files in MATLAB

Action Tools Workflow Function Alternative


Preview file contents In the Current Folder browser, right- none
without opening the click the file and select Show Details.
file The Details Panel expands.

Not supported for live scripts and


functions.
Delete a file or folder In the Current Folder browser, select To delete a file, use the delete
the file or folder and press Delete. function. For example, delete a file
named myfile.m in the current
By default, MATLAB deletes or folder:
recycles files and folders according to
your operating system preferences. To delete('myfile.m');
permanently remove the selection
By default, files are permanently
when the system preference is set to
removed. To move deleted files to a
recycle, press Shift+Delete.
temporary folder instead, use the
On Linux systems, you can request recycle function or set the Deleting
that MATLAB move deleted files to a files preference.
temporary folder by setting the
To delete a folder, use the rmdir
Deleting files preference. Access this
function.
preference on the Home tab, in the
Environment section, by clicking
Preferences. Select MATLAB > Note You cannot recover folders
General. deleted using rmdir.
View MATLAB Drive In the Current Folder browser, right- none
recent activity click any MATLAB Drive file or folder
and select MATLAB Drive > View
Recent Activity....
Open MATLAB Drive In the Current Folder browser, right- none
online click any MATLAB Drive file or folder
and select MATLAB Drive > Go to
MATLAB Drive Online....

To open the Current Folder browser if it is not visible, go to the Home tab, and in the Environment
section, click Layout. Then, under Show, select Current Folder. Double-clicking a subfolder
displays its contents, and makes that folder the current folder.

Manage Files and Folders in MATLAB Online


MATLAB Online provides access to MATLAB from a standard web browser. In MATLAB Online, you
only have access to the files and folders in your MATLAB Drive, and some file actions are not
supported.

For more information about how to access files in MATLAB Online, see “Access Files in MATLAB
Online” on page 10-2.

See Also
edit | mkdir | open | movefile | rmdir | delete | recycle

6-36
Manage Files and Folders

More About
• “Save and Back Up Code”
• “Save and Load Workspace Variables” on page 5-12
• “Errors When Updating Folders on Search Path” on page 6-61
• “Access Files in MATLAB Online” on page 10-2
• “Share Folders Using MATLAB Drive” on page 12-15

6-37
6 Managing Files in MATLAB

Files and Folders That MATLAB Accesses

In this section...
“Where Does MATLAB Look for Files?” on page 6-38
“Files and Folders You Should Add to the Search Path” on page 6-38
“When Multiple Files Have the Same Name” on page 6-38
“Locations of MathWorks Products” on page 6-39

Where Does MATLAB Look for Files?


When you do not specify a path to a file, MATLAB looks for the file in the current folder or on the
search path. Functions in the current folder take precedence over functions with the same file name
that reside anywhere on the search path. To identify the current folder, type pwd in the Command
Window.

To make files accessible to MATLAB, do one of the following:

• Change the current folder to the folder that contains the files. Use the cd function or browse to a
different folder in the Current Folder toolbar:

• Add the folder that contains the files to the search path. Changes you make to the search path
apply to the current MATLAB session. To reuse the modified search path in future MATLAB
sessions, save your changes.
• Store individual files in the userpath MATLAB folder, which is on the search path. To determine
the location of this folder, run the userpath function.

Files and Folders You Should Add to the Search Path


The MATLAB search path should include:

• Folders containing files that you run.


• Folders containing files that are called by files you run.
• Subfolders containing files that you run. Making a folder accessible does not make its subfolders
accessible.

For files in @ (class) and + (namespace) folders, make the parent folder accessible. For details, see
“Folders Containing Class Definitions”.

If files call other files that are in multiple folders, determine the location of all the called files by
performing a dependency analysis on your files. For more information, see “Dependencies Within a
Folder”

When Multiple Files Have the Same Name

6-38
Files and Folders That MATLAB Accesses

Name conflicts arise when MATLAB has access to multiple files with the same name, and when a file
has the same name as a variable in the base workspace or a built-in function for a MathWorks
product.

When there are name conflicts, MATLAB follows these precedence rules:

• “Function Precedence Order”


• “Class Precedence and MATLAB Path”

The file that MATLAB does not use is called a shadowed file. In some cases, MATLAB warns you that a
shadowed file exists.

Locations of MathWorks Products


Files and folders for products provided by MathWorks are in matlabroot/toolbox. The files and
folders under matlabroot are important to your installation. In particular:

• Do not store your personal files and folders in matlabroot/toolbox.


• Do not change files, folders, and subfolders in matlabroot/toolbox. The exception is the
pathdef.m file, which you can update and save in its default location, matlabroot/toolbox/
local.

To see a list of all toolbox folder names supplied with MathWorks products, run:

dir(fullfile(matlabroot,'toolbox'))

See Also
userpath | cd | pwd

More About
• “What Is the MATLAB Search Path?” on page 6-47
• “MATLAB Startup Folder” on page 1-15
• “Toolbox Path Caching in MATLAB” on page 1-22

6-39
6 Managing Files in MATLAB

Current Folder Browser Preferences

You can specify the number of files that display in the Current Folder browser, and customize their
appearance.

On the Home tab, in the Environment section, click Preferences. Then, select MATLAB >
Current Folder.

Some Current Folder Browser preferences are not available in MATLAB Online.

Preference Usage
History Specify the number of recently used folders maintained in the Current
Folder toolbar drop-down list.
Refresh Specify how frequently the Current Folder browser updates to reflect
changes to files made from programs and tools other than MATLAB.

When you access files on a network, frequent refreshing of the Current


Folder browser can slow performance in MATLAB. If this seems to be a
problem, try increasing the value for Number of seconds between
auto-refresh. Alternatively, clear the Auto-refresh view from file
system selection to disable automatic refresh.

To manually refresh the view at any time, right-click in the Current


Folder browser and select Refresh.
Path indication Control the appearance of folders and files that are inaccessible to
MATLAB, and whether to display tooltips describing their status.
MATLAB cannot access files if they are not on the search path or, in
some cases, if they are in a private folder.

Select the Indicate inaccessible files check box to dim the display of
files and folders inaccessible to MATLAB. Move the Text and icon
transparency slider to adjust the level of dimming.

Select the Show tooltip explaining why files are inaccessible check
box to display a tooltip that provides information on why a dimmed file
is inaccessible, when you hover over it.

If you do not select the Indicate inaccessible files check box, then the
Current Folder browser displays all files and folders as undimmed and
provides no tooltips.
Toolbar Use the Toolbar preferences to adjust the layout and controls of the
Current Folder toolbar. For more information about how to access
Toolbar preferences, see “Customize MATLAB Toolbars” on page 2-12.
Initial working folder Use the General Preferences options in the Preferences Window to
specify the current folder in MATLAB at startup. For more information
about General Preferences options, see Preferences.

6-40
Current Folder Browser Preferences

Preference Usage
Hidden Files Specify whether the Current Folder browser displays files and folders
that the operating system hides from system file browsers and file-
listing commands.

This preference does not apply to Microsoft Windows platforms. On


Windows platforms, the Current Folder browser follows the Windows
preference for showing hidden files. To set or change the Windows
preference, access the Folder Options, and then select an option for
viewing Hidden files and folders.

To change how dates display in the Current Folder browser, change the short date format for your
operating system. Then, refresh the date display: Right-click in the Current Folder browser and select
Refresh. MATLAB uses your operating system's short date format to display dates in both the
Current Folder browser and the Command History.

See Also
Preferences

More About
• “Manage Files and Folders” on page 6-35
• “Customize MATLAB Toolbars” on page 2-12

6-41
6 Managing Files in MATLAB

Specify File Names


In this section...
“Construct Valid Path and File Names” on page 6-42
“Case Sensitivity of File Names” on page 6-44

Construct Valid Path and File Names


Specify Path Names

A path name specifies file locations, for example, C:\work\my_data (on Microsoft Windows
platforms) or /usr/work/my_data (on Linux or Mac platforms). If you do not specify a path name
when accessing a file, MATLAB first searches in the current folder. To indicate a file in a particular
location, specify a path name.

Path name specifications differ, depending on the platform on which you are running MATLAB. Use
the fullfile function to construct path names in statements that work on any platform. This
function is particularly useful when you provide code to someone using it on a platform other than
your own.

fullfile inserts platform-specific file separators where necessary. The file separator character is
the symbol that distinguishes one folder level from another in a path name. A forward slash (/) is a
valid separator on any platform. A backward slash (\) is valid only on Microsoft Windows platforms. In
the full path to a folder, the final slash is optional. Type filesep in the Command Window to
determine the correct file separator character to use on your platform.

To identify the platform on which MATLAB is currently running, use the ismac, ispc, and isunix
functions.

Characters Within File and Folder Names

File names must start with a letter, and can contain letters, digits, or underscores.

Avoid using accent characters such as umlauts or circumflexes in path names. MATLAB might not
recognize the path. In addition, attempts to save a file to such a path might result in unpredictable
behavior.

If a path or file name contains spaces, enclose the input in single quotes. For example:

load 'filename with space.mat'

or

load('filename with space.mat')

Absolute and Relative Path Names

MATLAB always accepts absolute path names (also called full path names), such as I:/Documents/
My_Files or /users/myuserid/Homework/myfile.m. An absolute path name can start with any
of the following:

• UNC path '\\'.

6-42
Specify File Names

• Drive letter, on Microsoft Windows platforms, such as C:\.


• '/' character on Linux platforms.

Some MATLAB functions also support relative path names. Unless otherwise noted, the path name is
relative to the current folder. For example:

• myfile.m refers to the myfile.m file in the current folder.


• myfolder refers to the myfolder folder in the current folder.
• ../myfolder/myfile.m refers to the myfile.m file in the myfolder folder, where myfolder is
at same level as the current folder. Each repetition of ../ at the beginning of the path moves up
an additional folder level.

Tip If multiple documents are open and docked in the Editor, you can copy the absolute path of any
of these documents to the clipboard. This practice is useful if you need to specify the absolute path in
another MATLAB tool or an external application. Right-click the document tab, and then select Copy
Full Path to Clipboard.

Partial Path Names in MATLAB

A partial path name is the last portion of a full path name for a location on the MATLAB search path.
Some functions accept partial path names.

Examples of partial path names are: matfun/trace, private/cancel, and demos/clown.mat.

Use a partial path name to:

• Specify a location independent of where MATLAB is installed.


• Locate a function in a specific toolbox when multiple toolboxes contain functions with that name.
For example, to open the file for the set function in the Database Toolbox™ product, type:

open database/set
• Locate method files. For example, to check if a plot method exists for the time series object, type:

exist timeseries/plot

Specifying the at sign character (@) in method folder names is optional.


• Locate private and method files, which sometimes are hidden.

Be sure to specify enough of the path name to make the partial path name unique.

Maximum Length of Path Names in MATLAB

The maximum length allowed for a path name depends on your platform.

For example, on Microsoft Windows platforms:

• The maximum length is known as MAX_PATH.


• You cannot use an absolute path name that exceeds 260 characters.
• For a relative path name, you might need to use fewer than 260 characters. When the Windows
operating system processes a relative path name, it can produce a longer absolute path name,
possibly exceeding the maximum length.

6-43
6 Managing Files in MATLAB

If you get unexpected results when working with long path names, use absolute instead of relative
path names. Alternatively, use shorter names for folders and files.

Case Sensitivity of File Names


In general, it is best to specify path and case precisely when specifying a file name.

Case Sensitivity When Calling Functions

You call function files by specifying the file name without the file extension. MATLAB returns an error
if it cannot find a case-sensitive match on the search path. By default, MATLAB suggests a function
with the correct case.

When multiple files have the same name, MATLAB follows precedence rules to determine which to
call. For more information, see “Function Precedence Order”.

Case Sensitivity When Loading and Saving Files

Linux platforms — File names are case sensitive.

• When loading or reading from a file, specify the file name using the correct case.
• When saving or writing to a file, MATLAB saves the file in the case you specify. Two files with the
same name, but different cases can exist in the same folder.

Windows platforms — File names are case insensitive. The Windows operating system considers
two files with the same name to be the same file, regardless of case. Therefore, you cannot have two
file names that differ only by case in the same folder.

• When loading or reading from a file, MATLAB accesses the file with the specified name that is
higher on the search path, regardless of case. For example, if you attempt to load MYFILE and
myfile.mat is higher on the search path than MYFILE.MAT, then MATLAB loads myfile.mat
without warning that there is a case mismatch.
• When saving or writing to a file, if you specify a file name that already exists in the folder,
MATLAB accesses the existing file without warning. For example, if you save data to a file named
myfile using the save function, and MYFILE.mat already exists in the folder, the data replaces
the contents of MYFILE.mat. However, the file name remains MYFILE.mat.

See Also
filesep | fullfile | which | ismac | ispc | isunix

More About
• “What Is the MATLAB Search Path?” on page 6-47

6-44
Create and Extract from Zip Archives

Create and Extract from Zip Archives


In this section...
“Create a Zip Archive” on page 6-45
“Add Files to a Zip Archive” on page 6-45
“Extract Files from a Zip Archive” on page 6-45
“Compare Zip Archive to Unzipped Files” on page 6-46

Create a Zip Archive


Create archives using zip files to back up files, conserve file storage space, or to share collections of
files with others. You can either create an empty archive, or select files and folders to create an initial
archive. In either case, you can add more files later.

Create zip archives interactively using the Current Folder browser:

• To create an empty zip file, right-click white space, and then select New > Zip File.
• To create a populated zip file from selected files and folders, select the folders and files you want
to archive, right-click, and then select Create Zip File.

MATLAB creates an archive with a default name of Untitledn.zip, where n is an integer. Type over
the default file name to specify a descriptive name.

You also can create zip archives programmatically using the zip function. For example, to zip all files
with a .m and .mat extension in the current folder to a zip file archive named backup.zip, call:
zip('backup',{'*.m','*.mat'});

Add Files to a Zip Archive


To add files and folders to a zip file archive in the Current Folder browser, do one of the following:

• Select, and then drag the file that you want to add onto the archive.
• Copy the file that you want to add to the archive. Then, select the archive to which you want to
add the file and paste the file into the archive.

Extract Files from a Zip Archive


To extract a single file from within a zip file archive in the Current Folder browser:

1 Expand the zip file archive to view the archive contents, by clicking the associated + (expand)
button. By default, files within a zip file archive appear dimmed to indicate that they are not on
the MATLAB path.
2 Drag the file into a folder in the Current Folder browser.

MATLAB extracts the file and saves it to the folder where you dragged or pasted it.

To extract all the contents of a zip file, double-click the zip file in the Current Folder browser.
MATLAB creates a folder with the same name as the zip file, and extracts the entire contents of the
zip file into this folder.

6-45
6 Managing Files in MATLAB

To extract the contents of a zip file programmatically, use the unzip function. unzip also allows you
to specify a target folder. For example, to unzip the file, examples.zip, to a folder named
myfolder, call:

unzip('examples.zip','myfolder')

Note Archives created outside of MATLAB can be encrypted or password-protected. You cannot add
files to, or extract files from, protected archives from within MATLAB.

Compare Zip Archive to Unzipped Files


To determine differences between archived and unarchived files, use the Comparison Tool from
within the Current Folder browser as you would for any other files and folders.

• Right-click a zip archive, and then from the context menu select Compare Against and specify
the folder to which you want to compare the contents of the zip archive.
• Expand a zip archive, right-click a file within it, and then from the context menu select Compare
Against. Specify the file to which you want to compare the archived file.

See Also
unzip | zip

More About
• “Compare Files and Folders and Merge Files” on page 6-6

6-46
What Is the MATLAB Search Path?

What Is the MATLAB Search Path?


The MATLAB search path is a subset of all the folders in the file system. MATLAB uses the search
path to locate files used with MathWorks products efficiently.

The order of folders on the search path is important. When files with the same name appear in
multiple folders on the search path, MATLAB uses the one found in the folder nearest to the top of
the search path.

By default, the search path includes

• The MATLAB userpath folder, which is added to the search path at startup, and is the default
location for storing user files
• The folders defined as part of the MATLABPATH environment variable
• The folders provided with MATLAB and other MathWorks products, which are under
matlabroot/toolbox, where matlabroot is the folder displayed when you run matlabroot in
the Command Window

Class, namespace, private, and resources folders are special folders that cannot be specified
explicitly as part of the search path. A special folder is added to the search path implicitly when its
parent folder is specified as part of the path. To access the files and folders within a special folder,
you must add its parent folder to the path.

You can explicitly add folders to the search path for the files you run. For more information about
adding files to the search path, see “Change Folders on Search Path” on page 6-50.

userpath Folder on the Search Path


The userpath folder is first on the search path. By default, MATLAB adds the userpath folder to
the search path at startup. This folder is a convenient place for storing files that you use with
MATLAB.

The default userpath folder is platform-specific.

• Windows platforms — %USERPROFILE%/Documents/MATLAB.


• Mac platforms — $home/Documents/MATLAB.
• Linux platforms — $home/Documents/MATLAB if $home/Documents exists.
• MATLAB Online — /users/youruserid.

Alternatively, to determine or change the current userpath folder, call userpath.

By default, the userpath folder is also the startup folder when you start MATLAB by double-clicking
either the MATLAB shortcut on Windows systems or the MATLAB application on Mac systems.

MATLABPATH Environment Variable


The MATLABPATH environment variable can contain a list of additional folders to be added to the
MATLAB search path at startup. These folders are placed after the userpath folder, but ahead of the
folders supplied by MathWorks. By default, the MATLABPATH environment variable is not set. For
more information on how to set the MATLABPATH environment variable, see “Set the MATLABPATH
Environment Variable” on page 6-55.

6-47
6 Managing Files in MATLAB

Determine If Files and Folders Are on the Search Path


There are several ways to determine if files and folders are on the search path. You can either check
whether an individual file or folder is on the search path, or you can view the entire search path.

Check Whether File or Folder on Search Path

To determine whether a file is on the search path, run which filename. If the file is on the search
path, MATLAB returns the full path to the file.

To determine whether a file or folder is on the search path, use the Current Folder browser. Files and
folders not on the path are dimmed. To ensure that the Current Folder browser is set to indicate
whether a file or folder in on the search path, right-click any file or folder, and select the Indicate
Files Not on Path option.

Hover the pointer over any dimmed file or folder in the Current Folder browser to find out why it is
dimmed. A tooltip opens with an explanation. Frequently, the tooltip indicates that the file or folder is
not on the MATLAB path. If a tooltip does not appear, it may be disabled. To enable it, go the Home
tab and in the Environment section, click Preferences. Then, select MATLAB > Current
Folder. Select Show tooltip explaining why files are inaccessible to display the tooltip.

View Entire Search Path

Run the path command to view all the folders on the MATLAB search path.

Alternatively, use the Set Path dialog box to view the entire MATLAB search path. On the Home tab,
in the Environment section, click Set Path. The Set Path dialog box opens, listing all folders on the
search path. For more information on using the Set Path dialog box, see “Change Folders on Search
Path” on page 6-50.

6-48
What Is the MATLAB Search Path?

The Search Path Is Not the System Path


The search path is not the same as the system path. Furthermore, there is no explicit relationship
between the MATLAB search path and the system path. However, both paths help in locating files, as
follows:

• MATLAB uses the search path to locate MATLAB files efficiently.


• The operating system uses a system path to locate operating system files efficiently.

How MATLAB Stores the Search Path

MATLAB saves search path information in the pathdef.m file. This file contains a series of full path
names, one for each folder on the search path.

By default, pathdef.m is in matlabroot/toolbox/local.

When you change the search path, MATLAB uses it in the current session, but does not update
pathdef.m. To use the modified search path in the current and future sessions, save the changes
using savepath or the Save button in the Set Path dialog box. This updates pathdef.m.

In MATLAB Online, all changes to the search path are automatically saved.

See Also
userpath

More About
• “Add Folders to the MATLAB Search Path at Startup” on page 6-55
• “Change Folders on Search Path” on page 6-50

6-49
6 Managing Files in MATLAB

Change Folders on Search Path

In this section...
“Add or Remove Folders on the Search Path Programmatically” on page 6-50
“Change Folders on Search Path Interactively” on page 6-50
“Change Folders Using Current Folder Browser” on page 6-52
“Change Folders on Search Path Using MATLAB Editor” on page 6-53

You can programmatically and interactively add or remove folders and change the order of MATLAB
folders on the search path, for the current session and future sessions. When files with the same
name appear in multiple folders on the search path, MATLAB uses the one in the folder nearest to the
top of the search path.

Add or Remove Folders on the Search Path Programmatically


You can programmatically add one or more folders on the path using the addpath function. This
example adds the folder to the top of the search path. See addpath for other options.

addpath("c:\matlab\MyFolder")

You can remove one or more folders from the path using the rmpath function.

rmpath("c:\matlab\MyFolder")

To save changes to the search path across MATLAB sessions, use the savepath function. This
function also saves changes that you make interactively with the Set Path dialog box, from the
Current Folder browser, or in the MATLAB Editor.

In MATLAB Online, changes to the path are automatically saved. Therefore, calling savepath is not
necessary.

Change Folders on Search Path Interactively


Use the Set Path dialog box to interactively make changes to the search path.

1 On the Home tab, in the Environment section, click Set Path. The Set Path dialog box appears.

Alternatively, you can access this dialog box using the pathtool function.

6-50
Change Folders on Search Path

2 Use the Add Folder or Add Folder with Subfolders button to add new folders to MATLAB
search path.
3 Use the Move Down and Move Up buttons to change the order of files on the search path. Files
contained in folders at the top of the search path have precedence over those in folders farther
down. For more information, see “Function Precedence Order”.
4 Apply or cancel the search path changes:

• To use the newly modified search path only in the current session, click Close.
• To reuse the newly modified search path in the current session and future sessions, click
Save, and then Close.
• To undo your changes, click Revert, and then Close.
• To restore the default search path, click Default, and then Close. The default search path
contains only folders provided by MathWorks.

Note The MATLAB (userpath) folder automatically moves to the top of the search path the next time
you start MATLAB. For more information about the userpath folder, see “userpath Folder on the
Search Path” on page 6-47.

In MATLAB Online, you can use the buttons at the top of the Set Path dialog box to add folders to the
search path and revert changes to the search path. To make changes to an existing folder on the

6-51
6 Managing Files in MATLAB

search path, right-click the folder and select from the available options. To search for folders on the
path, use the search field at the top of the Set Path dialog box.

Change Folders Using Current Folder Browser


You can add or remove folders on the search path from the Current Folder browser. Folders that are
not on the path appear transparent, while those on the path appear solid.

1 From the Current Folder browser, right-click the folder or select and then right-click multiple
folders to add or remove.
2 From the context menu, select Add to Path or Remove from Path, and then select an option:

• Selected Folders
• Selected Folders and Subfolders

Changes to the search path using this method do not persist in future MATLAB sessions. To save
these changes, use savepath.

6-52
Change Folders on Search Path

Change Folders on Search Path Using MATLAB Editor


In the MATLAB Editor, you also can add or remove the folder that contains a script on the search
path. Right-click the document tab, and then select an option to add or remove the folder from the
search path.

Changes to the search path using this method do not persist in future MATLAB sessions. To save
these changes, use savepath.

See Also
addpath | rmpath | savepath

More About
• “What Is the MATLAB Search Path?” on page 6-47

6-53
6 Managing Files in MATLAB

Use Search Path with Different MATLAB Installations


The default search path changes for each MATLAB version because the default folders that come with
the products change. Different MATLAB versions cannot use the same pathdef.m file.

To use your files with a new MATLAB version or with multiple versions, do one of the following:

• For each version, add the folders containing your files to the search path. Save the search path
(that is, save the pathdef.m file) where that version of MATLAB can access it.
• Include addpath statements in the startup.m file. Use the same startup.m file with the
multiple versions of MATLAB.

Including addpath statements in the startup.m file also allows you to use your files with MATLAB
on different platforms.

See Also
addpath

More About
• “Startup Options in MATLAB Startup File” on page 1-20

6-54
Add Folders to the MATLAB Search Path at Startup

Add Folders to the MATLAB Search Path at Startup


There are two ways to add folders to the MATLAB search path at startup. You can either use a
startup.m file or you can set the MATLABPATH environment variable.

Use a startup.m File


The startup.m file is for specifying startup options. You can add folders to the search path by
including addpath statements in a startup.m file. For example, to add the specified folder, /home/
username/mytools to the search path at startup, include this statement in a startup.m file:

addpath /home/username/mytools

For more information on creating a startup.m file with addpath statements, see “Startup Options
in MATLAB Startup File” on page 1-20.

Set the MATLABPATH Environment Variable


You can also add folders to the search path at startup by setting the MATLABPATH environment
variable. :

Windows

To set the MATLABPATH environment variable in Windows, from the Windows Control Panel, go to
System and select Advanced system settings. Click the Environment Variables... button. Click
New... or Edit... to create or edit the MATLABPATH environment variable. In the dialog box that
appears, set the variable name to MATLABPATH and the variable value to a semicolon-separated list of
folders you want to add to the search path. For example, to add two folders, c:\matlab_files
\myfolder1 and c:\matlab_files\myfolder2, to the MATLABPATH environment variable, enter
c:\matlab_files\myfolder1;c:\matlab_files\myfolder2 as the variable value. Click OK to
set the variable and exit the dialog box. Restart MATLAB for the new settings to take effect.

To set the environment variable from a command window, run the command set
MATLABPATH=folders, where folders is a semicolon-separated list of folders. For example,
suppose that you want to add two folders, c:\matlab_files\myfolder1 and c:\matlab_files
\myfolder2, to the MATLABPATH environment variable. Run the command
set MATLABPATH=c:\matlab_files\myfolder1;c:\matlab_files\myfolder2

Once the environment variable is set, you must start MATLAB from the same command window for
the settings to take effect. The environment variable persists only as long as the command window is
open.

UNIX and Mac

To set the MATLABPATH environment variable in UNIX and Mac, in a terminal, run the command
export MATLABPATH=folders, where folders is a colon-separated list of folders.

For example, suppose that you want to add two folders, /home/j/Documents/MATLAB/mine and /
home/j/Documents/MATLAB/research, to the MATLABPATH environment variable on a UNIX
platform. Run the command
export MATLABPATH=/home/j/Documents/MATLAB/mine:/home/j/Documents/MATLAB/research

6-55
6 Managing Files in MATLAB

Once the environment variable is set, you must start MATLAB from the same shell for the settings to
take effect. The environment variable persists only as long as the shell remains open.

Note If you are using a C shell (csh or tcsh), the command for setting the MATLABPATH
environment variable is setenv MATLABPATH folders.

To add the folders for all future MATLAB sessions, set the MATLABPATH environment variable as part
of your shell configuration script.

See Also

More About
• “What Is the MATLAB Search Path?” on page 6-47
• “Change Folders on Search Path” on page 6-50

6-56
Assign userpath as Startup Folder (Macintosh or UNIX)

Assign userpath as Startup Folder (Macintosh or UNIX)


This example shows how to assign the userpath folder as the startup folder on a Macintosh
platform. The procedure is similar for UNIX platforms. Assume that userpath is set to the default
value on a Macintosh platform where smith is the home folder.

Using a bash shell, set the MATLAB_USE_USERWORK environment variable so that userpath will be
used as the startup folder.

export MATLAB_USE_USERWORK=1

From that shell, start MATLAB. Next, verify the current folder in MATLAB.

pwd

/Users/smith/Documents/MATLAB

Confirm that this is the same as the folder defined for userpath.

userpath

/Users/smith/Documents/MATLAB;

Confirm that the userpath is at the top of the search path.

path

/Users/smith/Documents/MATLAB
/Users/smith/Applications/MATLAB/R2009a/toolbox/matlab/general
/Users/smith/Applications/MATLAB/R2009a/toolbox/matlab/ops

...

6-57
6 Managing Files in MATLAB

Resolve Issue: MATLAB Did Not Appear to Successfully Set the


Search Path

Issue
When MATLAB starts, if there is a problem with the search path, then the following message appears:

Warning: MATLAB did not appear to successfully set the search


path...

If there is a problem with the search path, you cannot use MATLAB successfully. Search path
problems occur when:

• You save the search path on a Windows platform, and then try to use the same pathdef.m file on
a Linux platform.
• The pathdef.m file becomes corrupt, invalid, renamed, or deleted.
• MATLAB cannot locate the pathdef.m file.

Possible Solutions
For problems with the search path, try these recovery steps. Proceed from one possible solution to
the next only as necessary. After correcting problems with the search path, make any changes to run
your files. For example, us userpath to add the userpath folder to the search path or use addpath
to add other folders to the search path.

Confirm Correct pathdef.m File Is Being Used

Ensure MATLAB is using the pathdef.m file you expect:

which pathdef

If you want MATLAB to use the pathdef.m file at another location, make corrections. For example,
delete the incorrect pathdef.m file and ensure the correct pathdef.m file is in a location that
MATLAB can access.

Restart MATLAB to ensure that the problem does not recur.

Fix Problems In pathdef.m And startup.m Files

Look for and correct problems with the pathdef.m and startup.m files by following these steps:

1 Open pathdef.m and startup.m in a text editor. Depending on the problem, you might not be
able to open the pathdef.m file.
2 Look for obvious problems, such as invalid characters or path names.
3 Make corrections and save the files.
4 Restart MATLAB to ensure that the problem does not recur.

Restore the Default Path

Run restoredefaultpath, which sets the search path to the default and stores it in matlabroot/
toolbox/local. If restoredefaultpath seems to correct the problem, run savepath.

6-58
Resolve Issue: MATLAB Did Not Appear to Successfully Set the Search Path

Restart MATLAB to ensure that the problem does not recur.

Depending on the problem, the following message could appear during this workflow:
The path may be bad. Please save your work (if desired), and quit.

Restore Default Path Using the Set Path Dialog Box

Try to correct the problem using the Set Path dialog box. On the Home tab, in the Environment
section, click Set Path. The Set Path dialog box appears. Alternatively, you can access this dialog box
using the pathtool function.

Click Default to restore the default search path and then click Save to save it. See “Change Folders
on Search Path” on page 6-50 for additional information on using the Set Path Dialog box.
Depending on the problem, you might not be able to open the dialog box.

Restart MATLAB to ensure that the problem does not recur.

Correct Search Path Problems Encountered During Startup

Run the following command:

restoredefaultpath; matlabrc

6-59
6 Managing Files in MATLAB

Wait a few minutes until it completes.

Once the command completes, if there is a pathdef.m file in the startup folder, then it caused the
problem. Either remove the problematic pathdef.m file or replace it with a functional pathdef.m
file. For example, run:

savepath('path_to_your_startup_folder/pathdef.m')

See “MATLAB Startup Folder” on page 1-15 for additional information..

Restart MATLAB to ensure that the problem does not recur.

See Also
restoredefaultpath | pathtool | userpath

Related Examples
• “What Is the MATLAB Search Path?” on page 6-47
• “MATLAB Startup Folder” on page 1-15
• “Change Folders on Search Path” on page 6-50

6-60
Errors When Updating Folders on Search Path

Errors When Updating Folders on Search Path


You can encounter errors or unexpected behavior when you try to delete, rename, or move folders
that:

• Are on the search path


• Contain subfolders that are on the search path

The behavior varies by platform because it depends on the behavior of similar features in the
operating system.

If your task fails and the error message indicates it is because the folder is on the search path, then
do the following:

1 Remove the folder from the search path.


2 Delete, rename, or move the folder.
3 Add the folder to the search path.

6-61
6 Managing Files in MATLAB

Troubleshoot Invalid or Unresponsive Windows Change


Notification Handles
MATLAB uses a Windows operating system feature called change notification handles to detect when
files in an associated folder are modified. Under certain circumstances, Windows fails to provide
MATLAB with a valid or responsive Change Notification Handle. The three most common causes for
invalid or unresponsive change notification handles are:

• Windows has exhausted its supply of notification handles.


• The specified folder resides on a file system that does not support change notification. (Syntax
TAS file server, SAMBA file server, and many NFS file servers are known to have this limitation.)
• Network or file server latency delays the arrival of the change notification so that changes are not
detected on a timely basis.

When MATLAB is unable to obtain a valid or responsive Change Notification Handle, it cannot
automatically detect changes to files and folders. For example, new functions added to an affected
folder might not be visible, and changed functions in memory might not be reloaded.

Control How MATLAB Detects Changes in Files and Folders


If MATLAB is unable to detect changes to your files and folders due to invalid or unresponsive change
notification handles, you can control how MATLAB detects changes in folders.

If your file system updates folder timestamps when files are added to folders, you can set your system
remote path policy to detect changes by testing the timestamps of folders. To do so, include these
commands in a startup.m file. For more information on creating a startup.m file, see “Startup
Options in MATLAB Startup File” on page 1-20.
system_dependent('RemotePathPolicy', 'TimecheckDir');
rehash path;

You might notice a performance degradation due to the time required to check the timestamps.

If your file system does not update folder timestamps (such as an NT file system), you can set your
system remote path policy to detect changes by rereading the affected folders at frequent intervals.
To do so, include these commands in a startup.m file.
system_dependent('RemotePathPolicy', 'Reload');
rehash path;

You might notice a significant performance degradation due to the time required to reread the
folders.

To determine how MATLAB detects changes in folders, use this command:


system_dependent('RemotePathPolicy', 'Status');

In some cases, detecting new files or changed files in folders affected by the invalid or unresponsive
change notification handles is not necessary. If detecting changes is not necessary, to provide
maximum performance, you can disable your system remote path policy. To do so, include these
commands in a startup.m file.
system_dependent('RemotePathPolicy', 'None');
rehash path;

6-62
Troubleshoot Invalid or Unresponsive Windows Change Notification Handles

Clear Functions from Memory


Sometimes, changing your system remote path policy is not effective in preventing problems related
to remote file system caching or network latency. If MATLAB is still unable to detect the changes that
you have made to a function, you can clear the old copy of the function from memory using the clear
function. MATLAB reads the updated function the next time it is called.

Configure Change Notification Handle Warnings


To analyze which folders are affected by invalid or unresponsive Windows change notification
handles, you can configure the number of warning messages issued by Windows. To do so, include
one of these commands in a startup.m file. For more information on creating a startup.m file, see
“Startup Options in MATLAB Startup File” on page 1-20.

• Show warning messages for all invalid or unresponsive change notification handles.

system_dependent('DirChangeHandleWarn', 'Always');
• Only show the first warning message about invalid or unresponsive change notification handles.

system_dependent('DirChangeHandleWarn', 'Once');
• Never show warning messages about invalid or unresponsive change notification handles.

system_dependent('DirChangeHandleWarn', 'Never');

To determine when Windows warns about invalid or unresponsive change notification handles, use
this command.

system_dependent('DirChangeHandleWarn', 'Status');

See Also
addpath | rehash

More About
• “What Is the MATLAB Search Path?” on page 6-47
• “Startup Options in MATLAB Startup File” on page 1-20

6-63
7

Editor Preferences

• “Editor/Debugger Preferences” on page 7-2


• “Code Analyzer Preferences” on page 7-17
• “Configure Code Analyzer” on page 7-21
• “Index of Code Analyzer Checks” on page 7-27
7 Editor Preferences

Editor/Debugger Preferences

In this section...
“General Preferences for the Editor/Debugger” on page 7-2
“Editor/Debugger Display Preferences” on page 7-4
“Editor/Debugger Tab Preferences” on page 7-5
“Editor/Debugger Language Preferences” on page 7-5
“Editor/Debugger Code Folding Preferences” on page 7-8
“Editor/Debugger Backup Files Preferences” on page 7-9
“Editor/Debugger Autoformatting Preferences” on page 7-10
“Editor/Debugger Automatic Completions Preferences” on page 7-11
“Editor/Debugger Find and Replace Preferences” on page 7-14
“Editor/Debugger Indenting Preferences” on page 7-15
“Editor/Debugger Saving Preferences” on page 7-16

You can customize the visual display and functionality of the Editor, Live Editor, and Debugger using
Editor/Debugger preferences.

General Preferences for the Editor/Debugger

You can specify which editor MATLAB uses, as well as how the MATLAB Editor and Live Editor
behave under various circumstances.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger, and
then adjust preference options as described in the table below.

Some general preferences are not available in MATLAB Online.

Preference Usage
Editor Select which editor you want the MATLAB desktop to
use when you edit a file:

• MATLAB Editor
• Text editor

If you select Text editor, specify the full path for the
editor application you want to use, such as Emacs or
vi. For example, c:/Applications/Emacs.exe.

This preference applies only to plain text files such as


files with a .m or .txt extension.
Most recently used file list In the Number of entries field, type the number of
files that you want to appear in the list of recently used
files at the bottom of the File menu.

7-2
Editor/Debugger Preferences

Preference Usage
Opening files in editor Select On restart reopen files from previous
MATLAB sessions if you want the Editor and the files
it contained during your last MATLAB session to
reopen when you restart MATLAB.
Select Automatically open files when MATLAB
reaches a breakpoint to open a running program file
when MATLAB encounters a breakpoint in that file.
Select Display full path of files in the Editor to
display the full path of files open in the MATLAB
Online Editor and Live Editor. The path displays at the
top of each open file.
Automatic file changes Select Save changes upon clicking away from a
file if you want the Editor and Live Editor to
automatically save changes to a file when you click
away from the file. For the changes to be automatically
saved upon clicking away, you must have already saved
the file at least once.

In MATLAB Online, this preference is located under


MATLAB > Editor/Debugger > Saving.
Select Reload unedited files that have been
externally modified if you want the Editor to
automatically reload the version of a file that you
opened and edited outside of MATLAB when the file
currently open in the Editor has no unsaved changes.
Select Add line termination at end of file to have
MATLAB add a new empty line (sometimes referred to
as a <CR>) to the end of a file automatically if the last
line in the file is not empty.

This preference applies only to plain text files such as


files with a .m or .txt extension.
Debugging Specify when to show the inline Step in button using
the Show inline Step in buttons option.

• Select Always to show the button for all functions


and scripts.
• Select For user-defined functions to show the
button only for user-defined functions and scripts.
• Select Never to never show the button.
Select Open Debugger panel automatically to open
the Debugger panel automatically when MATLAB
enters debug mode. Clear Open Debugger panel
automatically to disable opening the Debugger panel
automatically. This option is available in MATLAB
Online only.

7-3
7 Editor Preferences

Editor/Debugger Display Preferences

You can change the appearance of the Editor and Live Editor.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Display, and then adjust preference options as described in the table below.

Preference Usage
General display options Select Highlight Current Line and select a color to
highlight the row with the cursor (also called the
caret).

This preference does not apply in the Live Editor.


Select Show line numbers to display line numbers
along the left edge of the Editor and Live Editor
window.
Select Enable data tips in edit mode to display data
tips when you are editing a MATLAB code file. (Data
tips are always enabled in debug mode.)

For details, see “View Variable Value”.

This preference does not apply in the Live Editor.


Select an option from Live Editor default view to
specify the default location of output when creating
new live scripts:

• Output on right — Output displays to the right of


the code. Each output displays with the line that
creates it. This option is ideal when writing code.

To disable the alignment of output to code when


output is on the right, right-click the output section
and select Disable Synchronous Scrolling.
• Output inline — Output displays inline with the
code. Each output displays underneath the line that
creates it. This option is ideal for sharing.
Select Focus outputs using keyboard when output
is inline to enable using the up arrow and down arrow
keys to move focus to the output when output is inline.
Select Display the Open as a Live Script banner if
you want the Open as a Live Script banner to appear
at the top of documents in the Editor.

7-4
Editor/Debugger Preferences

Preference Usage
Right-hand text limit Select Show line to display a vertical line with the
specified Color at the specified column (Placement)
in the Editor.

For details, see “Change the Right-Side Text Limit


Indicator”.

This preference does not apply in the Live Editor.

Editor/Debugger Tab Preferences

You can specify the size of tabs and indents and details about how tabs behave in the Editor and Live
Editor.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Tab, and then adjust preference options as described in the table below.

In MATLAB Online, these preferences are located under MATLAB > Editor/Debugger > Indenting.

Option Usage
Tab size Specify the amount of space inserted when you press
the Tab key.

When you change the Tab size, it changes the tab size
for existing lines in that file, unless you also select Tab
key inserts spaces.
Indent size Specify the indent size for automatic indenting. To set
automatic indenting preferences, see “Editor/
Debugger Language Preferences” on page 7-5.
Tab key inserts spaces Select to insert a series of spaces when you press the
Tab key. Otherwise, a tab acts as one space whose
length is equal to the Tab size.
Emacs-style Tab key smart indenting Specifies an indenting style similar to the style that the
Emacs editor uses.

Lines indent according to automatic indenting


preferences when you position the cursor in a line or
select a group of lines, and then press the Tab key. To
set automatic indenting preferences, see “Editor/
Debugger Language Preferences” on page 7-5.

If you select this preference, you cannot insert tabs


within a line.

Editor/Debugger Language Preferences

7-5
7 Editor Preferences

You can specify how various languages appear in the Editor and Live Editor. MATLAB applies
language preferences based on the file extension of the file that is open.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Language, and then adjust preference options as described in the table below.

In MATLAB Online, these preferences are located under Editor/Debugger > MATLAB Language
and Editor/Debugger > Other Languages.

Not all preferences are available for all languages.

Preference Usage
Language Select the language for which you want to set preferences.
Syntax highlighting Select Enable syntax highlighting to have the Editor and
Live Editor use different colors for different language
constructs. Then, adjust the colors you want to use for each
language element.

To change the MATLAB syntax highlighting colors, click Set


syntax colors. For more information, see “Syntax
Highlighting” on page 3-19.

To change syntax highlighting colors for all other languages,


select from the options under Enable syntax highlighting.
Variable and function renaming Select Enable automatic variable and function renaming
to have MATLAB prompt you to rename all instances of a
MATLAB Language only function or variable in a file when you rename a function or
variable.

For details on when MATLAB prompts you, see “Automatically


Rename All Variables or Functions in a File”.
Comment formatting In the Maximum column width field, enter the maximum
number of characters you want to allow in a line of
MATLAB Language only comments, and then select where you want counting to begin.

Consider selecting:

• Start from beginning of line when the absolute width of


the comments is important. For example, set 75 columns
from the start of the line to match the width that fits on a
printed page when you use the default font for the Editor.
• Start from beginning of comment when comments are
indented, and you want each block of comments to have a
consistent indent and width.

7-6
Editor/Debugger Preferences

Preference Usage
Select Wrap comments automatically while typing to
automatically wrap comments at the Maximum column
width value when you type comments in an Editor or Live
Editor document.

If you clear this option, you can still wrap comments


manually, as described in “Add Comments to Code”.
Indenting Select Apply smart indenting while typing to
automatically:

• Indent the body of loops within the start and end of the
loop statement.
• Align subsequent lines with lines you indent using tabs or
spaces.
• Indent functions as specified with the Function
indenting format option.

You also can manually apply automatic indenting after you


type the code. For more information, see “Indent Code”.

7-7
7 Editor Preferences

Preference Usage
Select an option from Function indenting format (MATLAB
Language only) to specify how functions indent in the Editor
and Live Editor, as follows:

• Classic — The Editor and Live Editor align the function


code with the function declaration.

• Indent nested functions — The Editor and Live Editor


indent the function code within a nested function.

• Indent all functions — The Editor and Live Editor indent


the function code for both main and nested functions.

File extensions Add one or more file extensions to associate with the
Language. The preferences you set for that language apply
to all files with the listed extensions.

Editor/Debugger Code Folding Preferences

Code folding enables you to expand and collapse blocks of MATLAB code that you want to hide when
you are not currently working on them.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Code Folding, and then adjust preference options as described in the table below.

For examples and detailed information about code folding, see “Fold Code”.

Code folding preferences do not apply in the Live Editor.

7-8
Editor/Debugger Preferences

Option Usage
Enable Code Folding Specifies whether you want code folding enabled for
the programming constructs that have their
corresponding Enable check box selected.
Enable Specifies whether you want code folding enabled for
the corresponding Programming Construct.

If you select this option for any construct, but clear the
Enable Code Folding option, the construct will not
have code folding enabled.
Fold Initially Specifies whether the corresponding Programming
Construct displays collapsed (folded) the first time
that you open a MATLAB file.

Editor/Debugger Backup Files Preferences

You can specify if, when, and how you want MATLAB to automatically back up files that are open in
the Editor.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Backup Files, and then adjust preference options as described in the table below.

Backup files preferences do not apply in the Live Editor and are not available in MATLAB Online.

Preference Usage
Automatically create backup files while working Select to have MATLAB automatically save a copy of
in the MATLAB Editor the files you are currently editing.
Save options Save the backup every: n minutes specifies how
often you want MATLAB to save a copy of the file you
are editing.
Save untitled files saves a copy of new, untitled, files
to Untitled.asv.

When there is more than one untitled file, each


additional file is saved to Untitledn.asv (where n is
an integer value).
Close options Automatically delete backup files when the Editor
closes directs MATLAB to delete the backup file when
you close the source file in the Editor.

To ensure clear and current backup-to-file


relationships if you disable this option, when you
rename or remove a file, consider deleting or renaming
the corresponding backup file.

7-9
7 Editor Preferences

Preference Usage
File name Select the naming convention that you want MATLAB
to use for autosave files. For example:

• If you specify Replace extension with: asv, the


backup file for filename.m is filename.asv
• If you specify Append file name with: ~, the
backup file for filename.m is filename.m~
Location Source file directories specifies that you want
backup files stored in the same folder as the files being
edited.

Single directory specifies that you want autosave


files stored in a single folder. Specify the full path to
that folder and be sure you have write permissions for
it.

If you edit a file in a read-only folder and the back up


Location is Source file directories, then the Editor
does not create a backup copy of the file.

For more information about automatically creating backup copies of modified files in the Editor, see
“Save and Back Up Code”.

Editor/Debugger Autoformatting Preferences

You can quickly format live scripts and functions using autoformatting markup in the Live Editor. You
can enable and disable autoformatting as a whole, or as individual options.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Autoformatting, and then adjust preference options as described in this table.

Autoformatting preferences do not apply in the Editor.

Preference Usage
Enable autoformatting in Live Editor Select to enable autoformatting options in the Live
Editor. Once enabled, options can then be enabled or
disabled individually.
Text format Select *italic*, **bold** to enable bold and italic
formatting using asterisks (*).
Select _italic_, __bold__ to enable bold and italic
formatting using underscores (_).
Select `monospace`, |monospace| to enable
monospace autoformatting.
Section break Select %%, ***, or --- for section break to enable
inserting section breaks by entering %%, ***, or ---
and then Enter.

7-10
Editor/Debugger Preferences

Preference Usage
Select %% text for section break and heading to
enable inserting section breaks with heading 1 style
headings by entering %%text and then Enter.
Insert Options Select $LaTeX$ for LaTeX equation to enable
converting LaTeX expressions into equations using the
format $LaTeX$.
Select URL for hyperlink to enable converting
internet paths automatically to hyperlinks.
Select <URL> for hyperlink to enable converting
internet paths to hyperlinks using the format <URL>.
Select [Label](URL) for labeled hyperlink to enable
converting internet paths to labeled hyperlinks using
the format [Label](URL).
Select (TM), (SM), (R), and (C) for trademark,
service mark, and copyright symbols to enable
inserting trademark and copyright symbols (™, ℠, ®,
and ©) using the format (TM), (SM), (R), and (C).
Text Style Select #text for title to enable inserting titles using
the format #text.
Select ##text, ###text, or ####text for heading
to enable inserting headings using the format ##text
for heading 1, ###text for heading 2, or ####text
for heading 3.
Select Automatic bulleted lists (*, +, or -) to enable
creating bulleted lists by entering *, +, or - followed
by a space.
Select Automatic numbered lists (1., 2., etc.) to
enable creating numbered lists by entering 1., 2., and
so on, followed by a space.

For more information about autoformatting in the Live Editor, see “Autoformatting”.

Editor/Debugger Automatic Completions Preferences

You can change how MATLAB suggests and completes names in the Editor, Live Editor, and App
Designer. You also can change whether MATLAB automatically completes block endings, parentheses,
quotes, comments, character vectors, and strings in the Editor, Live Editor, and App Designer.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Automatic Completions, and then adjust preference options as described in this table.

7-11
7 Editor Preferences

Preference Usage
Suggestions and completions Select Show suggestions automatically to
automatically show suggestions as you type in the
Editor, Live Editor, and App Designer. Clear Show
suggestions automatically to show suggestions only
when you press Ctrl+Space or press the Tab key.

For more information, see “Check Syntax and


Autocomplete Code as You Type” on page 3-19.
Select Use tab to show suggestions (in addition to
ctrl+space) to show suggestions when you press the
Tab key in the Editor, Live Editor, and App Designer.
Clear Use tab to show suggestions (in addition to
ctrl+space) to show suggestions only when you press
Ctrl+Space.

For more information, see “Check Syntax and


Autocomplete Code as You Type” on page 3-19.
Select Use right arrow to accept suggestions (in
addition to tab and enter) to accept suggestions
using the Right Arrow key in the Editor, Live Editor,
and App Designer. Clear Use right arrow to accept
suggestions (in addition to tab and enter) to
accept suggestions using the Tab and Enter keys.

For more information, see “Check Syntax and


Autocomplete Code as You Type” on page 3-19.
Click the Reset Default Suggestion Size button to
reset the window that displays the list of suggestions
to it's original size.
Autocoding options Select Enable autocoding to enable autocoding
options in the Editor, Live Editor, and App Designer.
Once enabled, options can be enabled or disabled
individually.
Autocomplete pairs

• Select Parentheses ( ) to autocomplete


parentheses.
• Select Curly braces { } to autocomplete curly
braces.
• Select Square brackets [ ] to autocomplete
square brackets.
• Select Single quotes (' ') to autocomplete single
quotes.
• Select Double quotes (" ") to autocomplete
double quotes.

7-12
Editor/Debugger Preferences

Preference Usage
Autocomplete on new line

• Select Comments (%) to automatically split


comments when you press Enter. For example,
place your cursor after the first period in the
comment below and press Enter.

% This is my first comment. This is my second comment.

The text after the cursor moves to a new line and


the Editor adds a percent (%) symbol to the
beginning of the new line.

% This is my first comment.


% This is my second comment.
• Select Character vectors (' ') to automatically
split character vectors when you press Enter. For
example, place your cursor after the word Random
in the character vector below and press Enter.

title('Mean of Random Uniform Data')

The Editor splits the character vector into two


character vectors across two lines.

title(['Mean of Random' ...


' Uniform Data'])
• Select Strings (" ") to automatically split strings
when you press Enter. For example, place your
cursor after the word long in the string below and
press Enter.

exist("exceptionally_long_file_name.txt")

The Editor splits the string into two strings on two


lines.

exist("exceptionally_long" + ...
"_file_name.txt")
• Select Parentheses () to automatically split
parentheses when you press Enter. For example,
place your cursor after the number 10 and the
comma in the command below and press Enter.

plot(x,y,'--gs','LineWidth',2,'MarkerSize',10,'MarkerEd

The Editor splits the command onto two lines.

plot(x,y,'--gs','LineWidth',2,'MarkerSize',10, ...
'MarkerEdgeColor','b')

7-13
7 Editor Preferences

Preference Usage
Autocomplete block endings

• Select Control flow statements (if, for, etc.) to


autocomplete control flow statements. To
autocomplete a statement, enter the statement and
press Enter. For a list of control flow statements,
see “Loops and Conditional Statements”.
• Select Function and class definitions to
autocomplete function and class definitions. To
autocomplete a definition, enter either function
or class and press Enter.

Editor/Debugger Find and Replace Preferences

You can change the behavior of the Find and Replace dialog box, including disabling wrap-around
search, MATLAB Online.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Find and Replace, and then adjust preference options as described in this table.

Find and replace preferences are not available in installed versions of MATLAB.

Option Usage
Search behavior Select Wrap around to continue searching from the
start of the document when the end of the document is
reached, until the whole document has been searched.
Select Move cursor while typing to move the cursor
to the first result while typing the search phrase. Clear
Move cursor while typing to move the cursor only
after the entire search phrase has been entered.
Select Highlight search results to highlight all
search results in the document.
Search text Select Use selection for initial search text to use
the current selection as the initial search text.
Select Use nearest word for initial search text to
use the word closest to the cursor position as the
initial search text.
Search history Select Persist search and replace history across
sessions to save the search and replace history and
the Find and Replace dialog box state across sessions.
Clear Persist search and replace history across
sessions to disable saving any search and replace
data, including the Find and Replace dialog box state.

7-14
Editor/Debugger Preferences

Option Usage
Position Select Position dialog box above document to
position the Find and Replace dialog box in added
space above the document when the dialog box is
open. When the Find and Replace dialog box is closed,
the space is removed. This added space prevents the
dialog box from covering part of the document when
the dialog box is open.

Editor/Debugger Indenting Preferences

You can change the size of tabs and indents and the behavior of automatic indenting in the MATLAB
Online Editor and Live Editor. To enable or disable automatic indenting, see “Editor/Debugger
Language Preferences” on page 7-5.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Indenting, and then adjust preference options as described in this table.

Indenting preferences are not available in installed versions of MATLAB.

Option Usage
Tabs and indents Specify Tab size to determine the amount of space
inserted when you press the Tab key.

When you change the Tab size value, the tab size
changes for existing lines in that file, unless you also
select Tab key inserts spaces.
Specify Indent size for automatic indenting.
Select Tab key inserts spaces to insert a series of
spaces when you press the Tab key. Otherwise, a tab
acts as one space whose length is equal to Tab size.
Select Tab key applies smart indenting to
automatically indent lines according to automatic
indenting preferences when you position the cursor in
a line or select a group of lines and then press the Tab
key.

If you select this preference, you cannot insert tabs


within a line.
Smart indenting Select Smart indenting formats entire document
to indent the entire document when automatically
indenting in the MATLAB Online Editor and Live
Editor. Clear this option to indent only the current line
or selection.

7-15
7 Editor Preferences

Option Usage
Select Add whitespace to empty lines to indent
empty lines when automatically indenting in the
MATLAB Online Editor and Live Editor by adding
white space to those lines. Clear this option to indent
only lines that are not empty.
Select Remove automatically inserted whitespace
while typing to remove white space added by
automatic indenting while typing in the MATLAB
Online Editor and Live Editor. Clear this option to
leave added white space as is.

Editor/Debugger Saving Preferences

You can specify if and when MATLAB Online saves files automatically.

On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger >
Saving, and then adjust preference options as described in this table.

Saving preferences are not available in an installed version of MATLAB.

Preference Usage
Autosave options Select Save files periodically to have MATLAB Online
periodically save the files you are currently editing.
In the Every: n minutes field, specify how often you
want MATLAB to save the files you are editing. By
default, MATLAB saves files every 1 minute.
Select Save changes upon clicking away from a
file if you want the Editor and Live Editor to
automatically save changes to a file when you click
away from the file. For the changes to be automatically
saved upon clicking away, you must have already saved
the file at least once.

In an installed version of MATLAB, this preference is


located under MATLAB > Editor/Debugger.

7-16
Code Analyzer Preferences

Code Analyzer Preferences

In this section...
“Code Analyzer Preferences” on page 7-17
“Search for Messages in the Code Analyzer Preferences” on page 7-18

Code Analyzer Preferences


You can change how Code Analyzer messages appear in the Editor and Live Editor. With a few
exceptions, these preferences apply to messages in the Editor, Live Editor, MATLAB Function Block
Editor (if your products use that tool), and Code Analyzer Report.

On the Home tab, in the Environment section, click Preferences. Select Code Analyzer, and
then adjust preference options as described in the table below.

Option Usage
Enabled Integrated Warning and Error Messages Specify whether you want to display Code Analyzer
message indicators, such as the underlining of code
and the message indicator bar, for documents open in
the Editor.

For more information, see “Check Code for Errors and


Warnings Using the Code Analyzer”.
Underlining Specify the type of coding issues that you want to have
underlined.

Regardless of the underlining menu option you choose,


the Editor marks errors and warnings in the message
indicator bar.
Autofix Provides a link to a preference panel that enables you
to adjust the color highlighting errors and warnings
that MATLAB can autofix. You trigger autofix by
clicking the Fix button in a Code Analyzer message.
Active Settings Select the set of message settings to use. Click the
down arrow to select or browse to a previously saved
settings file.
Actions button Click to open a menu that enables you to select:

• Save as — Saves the current Code Analyzer


message settings to a file.

The default location for settings is the MATLAB


preferences folder (the folder returned when you
run prefdir).
• Restore Defaults — Restores default Code
Analyzer message settings.

7-17
7 Editor Preferences

Option Usage
Search field Searches the list of Code Analyzer messages that
display below the search field. For details, see “Search
for Messages in the Code Analyzer Preferences” on
page 7-18.
Code Analyzer message settings Select or clear messages to enable or suppress their
appearance in your Editor documents.

To expand or collapse all categories in the list, right-


click anywhere in the list and select Expand All or
Collapse All.

To suppress a message on a line-by-line or file-by-file


basis, see “Adjust Code Analyzer Message Indicators
and Messages”.

Search for Messages in the Code Analyzer Preferences


You can search the list of Code Analyzer messages in the Code Analyzer preferences to display only
those messages that are currently of interest to you. Use any combination of the methods that the
following table presents.

Note If you do not have the MATLAB Compiler™ installed, the Code Analyzer preferences pane does
not display the MATLAB Compiler (deployment) messages category.

To See a List of Perform this action... Example Scenario


Messages ...
Containing specified text in Type the text in the search field. You recall seeing a message containing
the: some text that you want to review, but
you cannot remember the exact
• Short message message text.
• Extended message
For example, type com in the search
• Message category field to display those messages that
• Message ID contain that text in the short message,
extended message, or message ID.
In MATLAB Online, the
extended message is not
included in the search.

7-18
Code Analyzer Preferences

To See a List of Perform this action... Example Scenario


Messages ...
Corresponding to a given Type msgid: followed by a space and You are reviewing the code that
message ID the message ID in the search field. someone else wrote and you want to
see the message that corresponds to a
suppressed one using the
%#ok<AGROW> directive.

Type msgid: agrow in the search


field. Messages IDs containing AGROW
display as links. Click each link for
more information about the message.

Not all Code Analyzer messages have


additional information. These messages
do not appear as links.
That you can set using Code Click the down arrow to the right of the You want to see the complete list of
Analyzer preferences search field, and then click Show All. messages after you have searched the
messages for some text or a given
search menu option.
Different from the default Click the down arrow to the right of the A coworker gave you a settings file and
setting (of enabled or search field, and then click Show you want to review each message that
disabled) Messages Modified from Default. the coworker changed from its default
setting.
A gray dot precedes a message with a
setting different from the default. For
example:

In a given category Click the down arrow to the right of the You want to review messages that
search field, click Show Messages in describe coding practices that make it
Category, and then click the category difficult for others to use your code.
you want.
Click the down arrow to the right of the
search field, select Show Messages in
Category, and then select Aesthetics
and Readability.

Click the messages that appear as links


for more information. Not all messages
appear as links.
That are warnings Click the down arrow to the right of the You recall previous warnings that your
search field, and then select Show All code generated, but you cannot
Warnings. An exclamation point in a remember enough details to use the
yellow triangle indicates a warning search field to find it. You want to skim
message. all the warning messages to find a
particular one of interest.

7-19
7 Editor Preferences

To See a List of Perform this action... Example Scenario


Messages ...
Are errors Click the down arrow to the right of the You want to find a message elicited by a
search field, and then select Show All script you worked on previously. All you
Errors. By default, an X in a red dot can recall is that it was an error and it
indicates an error message, . involved parfor.

Click the down arrow to the right of the


search field, and then select Show All
Errors. Then, type a space and parfor
in the search field.

The Code Analyzer preference pane


displays only error messages that
contain the word parfor.
Are disabled Click the down arrow to the right of the You want to see the messages that are
search field, and then select Show disabled by default or you have
Disabled Messages. previously disabled.

Example of Searching Messages

To display Code Analyzer error messages that contain the word variable and are disabled:

1 Click the down arrow in the search field, and then select Show All Errors.

The search field contains severity:error.


2 At the end of the text severity:error, press the Space key, and then type variable.
3 Click the down arrow in the search field and select Show Disabled Messages.

The search field now contains severity:error variable enabled:false. Only the messages
that fulfill those requirements appear in the Preferences pane. To restore the list of all messages,
click the clear search button
.

The Show All Errors and Show Disabled Messages options are not available in MATLAB Online.

See Also

More About
• “Configure Code Analyzer” on page 7-21
• “Check Code for Errors and Warnings Using the Code Analyzer”

7-20
Configure Code Analyzer

Configure Code Analyzer


The Code Analyzer checks code and provides information about errors and warnings. To configure the
Code Analyzer, place a file named codeAnalyzerConfiguration.json in a resources folder. In
this configuration file, you can add custom checks and modify existing checks of the Code Analyzer.
Configure the Code Analyzer to enable or disable messages, customize message text, or change the
severity of the displayed message.

Note Changing the severity of a Code Analyzer message does not affect execution. Code is still
executed even if the severity of a check has been set to error. Syntax errors still prevent execution
even if their severity is changed or the message disabled.

This file configures the Code Analyzer checks performed for the resources folder's parent folder
and its subfolders. The configuration is cached at the start of a MATLAB session. The MATLAB Editor
does not automatically get the latest configuration when you add a new configuration file to a
resources folder or update an existing file during a MATLAB session. To refresh the cache, call
matlab.codeanalysis.refreshConfiguration.

Verify that the file is a valid JSON file using the matlab.codeanalysis.validateConfiguration
function.

Sample Configuration File


This code shows the contents of a sample configuration file. The
codeAnalyzerConfiguration.json file uses JSON format, and // designates the text that follows
as a comment.

{
// Configuration File Information

"name": "Acme Corp Guideline",


"description": "Internal MATLAB Coding Guideline",
"author" : "Alex",
"schemaVersion" : "1.0.0",
"guidelineVersion" : "1.0.0",

// Base Configuration Settings

"baseConfiguration" : "closestParentFolder",

// New and Modified Checks

"checks":
{

7-21
7 Editor Preferences

"MyFunctionCheck" :
{
"rule":
{
"template": "functionCall",
"functionNames" : "evalin"
},
"severity" : "error",
"messageText" : "Do not use evalin.",
"enabled" : true
},
"MyVariableCheck" :
{
"rule":
{
"template": "variableName",
"variableNames" : ["size", "error", "length", "max", "isa", "nargin" , "numel" , "
},
"severity" : "warning",
"messageText" : "Avoid using function names for variables.",
"enabled" : true
},
"LLMNC" :
{
"severity" : "error",
"limit" : 10,
"enabled": true
},
"FCNOL" :
{
"severity" : "error",
"messageText": "Too many outputs.",
"limit" : 15,
"enabled": true
},
"AGROW" :
{
"severity" : "info",
"messageText" : "Growing array in a loop is not recommended",
"enabled" : false
}
}
}

Configuration File Information


You can optionally include the following properties in the configuration file. These properties do not
affect the configuration. Each property accepts a string containing the relevant information.

• "name" — Name of the configuration file


• "description" — Description of the configuration file
• "author" — Author name
• "schemaVersion" — Schema version in the format "1.2.3"
• "guidelineVersion" — Guideline version in the format "1.2.3"

7-22
Configure Code Analyzer

Base Configuration Settings


A configuration file can inherit the rules of a configuration file contained in the resources folder of a
parent folder. The property "baseConfiguration" specifies what base configuration should be
used and accepts these values:

• "closestParentFolder" (default) — Use the configuration file found in the closest parent
folder. If "baseConfiguration" is not defined, then the "closestParentFolder" setting is
used.
• "factory" — Use the standard MATLAB Code Analyzer configuration.

Add Custom Checks for Existing Functions


You can configure the Code Analyzer to display a check when specific functions are used. To create a
new check, you must assign a check ID that is a valid MATLAB identifier. For example, define
"MyFunctionCheck" to check for an evalin function call.

The "MyFunctionCheck" check has these properties:

Property Name Example Description


"rule" "rule": { "template" : Define the rules for the custom
"functionCall", check. The "rule" field
"functionNames" : contains a JSON array
"evalin" } containing these fields:

• "template" — Define the


template as
"functionCall" so the
message is generated when
the specified functions are
called.
• "functionNames" — Define
the names of the functions
that trigger the custom
check. Specify a string or
string array containing the
function names.
"messageText" (optional) "messageText" : "Do not Specify the text displayed in the
use evalin." Code Analyzer message.
"severity" (optional) "severity" : "error" Specify the check severity as
"warning", "error", or
"info". Messages that have
been changed to "error" do
not prevent execution.
"enabled" (optional) "enabled": true Specify whether this check is
enabled in the MATLAB Editor.

7-23
7 Editor Preferences

Add Custom Checks for Specified Variable Names


You can configure the Code Analyzer to display a check when specific variable names are used. To
create a new check, you must assign a check ID that is a valid MATLAB identifier. For example, define
"MyVariableCheck" to check for variables with the names size, error, or length.

The "MyVariableCheck" check has these properties:

Property Name Example Description


"rule" "rule": { "template" : Define the rules for the custom
"variableName", check. The "rule" field
"variableNames" : contains a JSON array
["size", "error", containing these fields:
"length"] }
• "template" — Define the
template as
"variableName" so the
message is generated when
the specified variable names
are used.
• "variableNames" — Define
the variable names that
trigger the custom check.
Specify a string or string
array containing the variable
names.
"messageText" (optional) "messageText" : "Avoid Specify the text displayed in the
using function names for Code Analyzer message.
variables."
"severity" (optional) "severity" : "warning" Specify the check severity as
"warning", "error", or
"info". Messages that have
been changed to "error" do
not prevent execution.
"enabled" (optional) "enabled": true Specify whether this check is
enabled in the MATLAB Editor.

Configure Maximum Input and Output Arguments


You can configure the Code Analyzer to limit the number of input and output arguments for a
function. Use the check ID "FCNIL" to specify the maximum number of input arguments for a
function. Use the check ID "FCNOL" to specify the maximum number of output arguments.

The "FCNIL" and "FCNOL" checks have these properties:

Property Name Example Description


"messageText" (optional) "messageText" : "Too Specify the text displayed in the
many outputs." Code Analyzer message.

7-24
Configure Code Analyzer

Property Name Example Description


"severity" (optional) "severity" : "error" Specify the check severity as
"warning", "error", or
"info". Messages that have
been changed to "error" do
not prevent execution.
"limit" (optional) "limit" : 10 Specify the maximum number of
arguments.
"enabled" (optional) "enabled": true Specify whether this check is
enabled in the MATLAB Editor.

Configure Maximum Characters per Line, Lines in a Function, and


Nested Control Statements
You can configure the maximum characters per line, lines in a function, and nested control
statements. Use the check ID "FCNLL" to specify the maximum number of lines of code for a
function. Use the check ID "LLMNC" to specify the maximum number of characters (including
whitespaces) in a line. Use the check ID "MNCSN" to specify the maximum number of control
statements, such as for and if, that can be nested.

The "FCNLL", "LLMNC", and "MNCSN" checks have these properties:

Property Name Example Description


"messageText" (optional) "messageText" : "Too Specify the text displayed in the
many outputs." Code Analyzer message.
"severity" (optional) "severity" : "error" Specify the check severity as
"warning", "error", or
"info". Messages that have
been changed to "error" do
not prevent execution.
"limit" (optional) "limit" : 10 Specify the maximum number of
arguments.
"enabled" (optional) "enabled": true Specify whether this check is
enabled in the MATLAB Editor.

Modify Existing Code Analyzer Checks


You can use the configuration file to modify existing Code Analyzer checks. Use the check ID you
want to modify as the check name. Then, specify the properties you want to modify and their new
values. For example, to disable a check in the editor, specify "enabled" : false.

To identify the check ID for checks in a given file, use codeIssues. For a full list of configurable
checks, see “Index of Code Analyzer Checks” on page 7-27.

The built-in Code Analyzer checks have these properties:

7-25
7 Editor Preferences

Property Name Example Description


"messageText" (optional) "messageText" : "Growing Specify the text displayed in the
array in a loop is not Code Analyzer message
recommended"
"severity" (optional) "severity" : "info" Specify the check severity as
"warning", "error", or
"info". Messages that have
been changed to "error" do
not prevent execution.
"enabled" (optional) "enabled" : true Specify whether this check is
enabled in the MATLAB Editor.

See Also
Apps
Code Analyzer

Objects
codeIssues

Functions
matlab.codeanalysis.validateConfiguration |
matlab.codeanalysis.refreshConfiguration

Related Examples
• “Check Code for Errors and Warnings Using the Code Analyzer”
• “MATLAB Code Analyzer Report”
• “Index of Code Analyzer Checks” on page 7-27

7-26
Index of Code Analyzer Checks

Index of Code Analyzer Checks


This topic describes Code Analyzer checks available in MATLAB. You can enable, disable, or configure
these checks in addition to writing new checks to meet your set of coding standards. See “Configure
Code Analyzer” on page 7-21 for more information.

Incomplete Analysis

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BDCFG Error Unable to run code false
analysis due to
invalid Code
Analyzer
configuration file.
Run
matlab.codeanalysis.
validateConfiguratio
n(VAR_NAME) to
identify specific
issues.
DEEPC Error Block comments are false “Add Comments to
nested too deeply. Code”
DEEPN Error Functions are nested false “Nested Functions”
too deeply.
DEEPS Error Statements are false “Enter Statements in
nested too deeply. Command Window”
on page 3-2
EOFER Error Code analysis did not false “Check Code for
complete. File Errors and Warnings
contains too many Using the Code
syntax errors. Analyzer”
EOFMI Error Invalid syntax at end false
of file. File is
incomplete.
MBIG Error Code analysis did not false “Check Code for
complete. File Errors and Warnings
VAR_FILE is too Using the Code
large. Analyzer”
MDEEP Error Parentheses, false “MATLAB Operators
brackets, and braces and Special
are nested too Characters”
deeply.
MDMCR Error Unable to run code false
analysis. VAR_FILE
is a deployed
MATLAB file.

7-27
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MDOTM Error Unable to run code false “Programming”
analysis. VAR_FILE
has an invalid file
extension.
MXASET Error The file is too false
complex to analyze.
Simplify the code to
improve code
maintainability. For
example, reduce the
number of operations
in expressions.
NOFIL Error Unable to open file false “File Operations”
VAR_FILE. File is not
found.
NOSPC Error The file is too false “Check Code for
complex to analyze. Errors and Warnings
Refactor the code to Using the Code
improve code Analyzer”
maintainability. For
example, reduce the
nesting level of
conditions or
functions.
QUIT Error Code analysis did not false
complete. Code
Analyzer
encountered an
error.
RDERR Error Unable to read file false “File Operations”
VAR_FILE.
TEXTL Error Text is too long for false
MATLAB to parse.
TMMSG Error More than 10,000 false
Code Analyzer
messages were
generated, leading to
some being deleted.
TMSMS Error More than 1,000 false
parse error
messages were
generated, leading to
some being deleted.

7-28
Index of Code Analyzer Checks

Syntax Errors
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
BADCH Error Invalid text true “MATLAB Operators
character(s). and Special
Characters”
BADCT Error Unicode explicit true
directional
formatting
characters are not
supported.
BADFP Error Invalid floating-point true “Floating-Point
constant. Numbers”
BADHBB Error Invalid digit in true
binary literal.
Supported binary
digits are 0 and 1.
Supported type
suffixes are u8, u16,
u32, u64, and s8,
s16, s32, s64.
BADHBBT Error Binary literal has too true
many digits for
specified type suffix.
BADHBH Error Invalid digit in true
hexadecimal literal.
Supported
hexadecimal digits
are 0-9 and A-F.
Supported type
suffixes are u8, u16,
u32, u64, and s8,
s16, s32, s64.
BADHBHT Error Hexadecimal literal true
has too many digits
for specified type
suffix.
BADNE Error 'Not Equals' is true “MATLAB Operators
spelled ~= in and Special
MATLAB, not !=. Characters”
BADNOT Error Using ~ to ignore a true “MATLAB Operators
value is not and Special
permitted in this Characters”
context.

7-29
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BADNOTL Error Invalid use of logical true
HS not operator (~) on
left side of an
assignment. To use ~
to ignore function
outputs, separate
output variables with
commas.
BADOT Error Use of two dots (..) is true “MATLAB Operators
an invalid MATLAB and Special
construction. Characters”
BADSP Error Invalid text true
character(s). The
text contains an
unsupported non-
ASCII whitespace
character.
BDFIL Error Invalid MATLAB file true “Specify File Names”
name. MATLAB file on page 6-42
names must start
with a letter, contain
only letters,
numbers, or
underscores, and
have no more than
VAR_NUMBER
characters.
BINARYT Error Binary literal has too true
OOLONG many digits.
CLIS Error Defining a class in true
script is not allowed.
CLTWO Error Only one class true
definition is allowed
per file, and it must
come at the head of
the file.
DOUQT Error A double quoted true “Characters and
string is Strings”
unterminated.
ENDCT Error An END might be true end
missing, possibly
matching
VAR_RESERVED_WO
RD.

7-30
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ENDCT2 Error An END might be true
missing (after line
VAR_RESERVED_WO
RD), possibly
matching
VAR_NUMBER.
ENDCT3 Error An END might be true
missing (before
VAR_RESERVED_WO
RD on line
VAR_NUMBER),
possibly matching
VAR_RESERVED_WO
RD.
ENDCT4 Error A METHODS block true
or END might be
missing before the
function definition.
This might be
causing additional
error messages.
ENDPAR Error A VAR_NAME might true “MATLAB Operators
be missing a closing and Special
VAR_NAME, causing Characters”
invalid syntax at end
of file.
EOLPAR Error A VAR_NAME might true “MATLAB Operators
be missing a closing and Special
VAR_NAME, causing Characters”
invalid syntax at end
of line.
FISST Error Function definitions true “Add Functions to
in a script must Scripts”
appear at the end of
the file. Move
statements to before
the function
definitions.
FNDOT Error Function name can true
only contain dots if it
is a class method.
FNSWA Error Function name must true
start with alphabetic
character.

7-31
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FVACI Error Use of name-value true
arguments in cell
indexing is not
supported.
FVACS Error Using a character true
vector or string as a
name in name=value
syntax is not
supported. Remove
the quotes around
the name.
FVAMI Error Name in name-value true
argument syntax
must be a valid
MATLAB identifier.
FVNST Error Arguments blocks in true “Where to Use
nested function Argument
declarations are not Validation”
supported.
FVSYN Error Invalid function true
argument syntax at
VAR_RESERVED_WO
RD.
HEXTOOL Error Hexadecimal literal true
ONG has too many digits.
INBLK Error A block comment is true “Add Comments to
unterminated at the Code”
end of the file.
LHROW Error The left side of an true “Creating,
assignment cannot Concatenating, and
have multiple rows Expanding Matrices”
(';').
MCPLD Error Invalid property true “Property Syntax”
syntax at
VAR_RESERVED_WO
RD.
NOLHS Error Left side of an true
assignment is empty.
NOPAR Error A VAR_NAME might true “MATLAB Operators
be missing a closing and Special
VAR_NAME, causing Characters”
invalid syntax at
VAR_NAME.

7-32
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NOPAR2 Error A VAR_NAME might true
be missing a closing
VAR_NAME, causing
invalid syntax at
VAR_NAME on line
VAR_NUMBER.
REDEF Error The current use of true
VAR_NAME is
inconsistent with its
previous use or
definition (line
VAR_NUMBER).
RESWD Error Invalid use of a true iskeyword
reserved word.
SBTMP Error Invalid array true
indexing or function
call. Chaining
outputs after
parenthesis is not
supported.
SEMFU Error Script file must true
contain executable
code. Remove empty
statements to make
this file a function
file.
SEPEXR Error Use a newline, true “Enter Statements in
semicolon, or comma Command Window”
before this on page 3-2
statement.
SOFOC Error Statement outside a true
class definition is not
allowed.
STRIN Error A quoted character true “Characters and
vector is Strings”
unterminated.
SYNEND Error Invalid use for END true
operator.
SYNER Error Parse error at true “MATLAB Operators
VAR_RESERVED_WO and Special
RD: usage might be Characters”
invalid MATLAB
syntax.

7-33
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TWOCM Error A comma cannot true
immediately follow
another comma.
UNSET Error Invalid use of true “MATLAB Operators
VAR_OPERATOR on and Special
the left side of an Characters”
assignment.
VTPOD Error Specify validation in true “Validate Property
the following order: Values”
size, then class, then
functions.

Language Specification Errors


Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
ATAS Error The attribute value is true
unexpected. Use a
single meta-class
object or a cell array
of meta-class objects.
ATLAB Error Attribute 'Input' and true
'Output' must not be
assigned a value or
negated.
ATNAS Error Set attribute to a true
single meta-class
object or a cell array
of meta-class objects.
ATNPI Error Set attribute to true
'public', 'private',
'protected',
'immutable', or a cell
array of meta-classes
instead.
ATNPP Error Set attribute to true
'public', 'private',
'protected', or a cell
array of meta-classes
instead.

7-34
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ATPPI Error The attribute value is true
unexpected. Use
'public', 'private',
'protected',
'immutable', or a cell
array of meta-classes
instead.
ATPPP Error The attribute value is true
unexpected. Use
'public', 'private',
'protected', or a cell
array of meta-classes
instead.
ATUNK Error Unknown attribute true
name.
ATVIZE Error The 'Visible' true
attribute is invalid
for classes and
events. Use the
'~Hidden' attribute
instead or omit the
attribute since
'Hidden' is false by
default.
BRKFOR Error BREAK statement true
can only be used in a
FOR or WHILE loop.
CLSAT Error Specify class true
attributes before the
name of the class.
CLSUNK Error This class, or one of true
its superclasses,
could not be found
on MATLAB's path.
CONTFOR Error CONTINUE true
statement can only
be used in a FOR or
WHILE loop.
CTOINE Error Use of constructed true
object as input to
constructor is not
supported.
CTORO Error Class constructors true
must be declared
with at least one
output argument.

7-35
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ERTXT Error Specify an error true
message with the
message identifier.
FCNANS Error Using ANS as a true
function name is not
supported.
FCONF Error Unable to define true
local function
VAR_NAME because
it has the same name
as the file.
FCONV Error Unable to define true
variable VAR_NAME
because it has the
same name as the
script.
FVAPN Error Move name-value true
arguments that use
the name=value
syntax to the end of
the argument list.
FVATF Error Attribute values in true
arguments blocks
must be logical
constants.
FVBTN Error Use of this function true
is not supported in
arguments blocks.
FVDAN Error Using the same true
name as both a
name-value
argument structure
and as a positional
argument is not
supported.
FVDAP Error Positional argument true
can only be declared
once.
FVDNF Error Name-value true
argument can only
be declared once.
FVDREP Error Multiple Repeating true
arguments blocks
are not supported.

7-36
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FVIDV Error Specifying validation true
or default value for
ignored arguments is
not supported.
FVIOA Error Specifying both true
'Input' and 'Output'
attributes on the
same arguments
block is not
supported.
FVMCL Error Specifying multiple true
name-value
structures using .?
syntax and a class
name is not
supported.
FVNDE Error When specifying true
name-value
arguments using a
class name, it is
illegal to specify
default values for the
arguments.
FVNIV Error This variable is not true
an input to the
function and cannot
be used in an
arguments block.
FVNREP Error Name-value true
arguments are not
supported in a
Repeating
arguments block.
FVNSC Error Calling nested true
functions is not
supported in
arguments blocks.
FVNVL Error When specifying true
name-value
arguments using a
class name, it is
illegal to specify
validation for the
arguments.

7-37
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FVOBI Error Declare all input true
argument blocks
before all output
arguments blocks.
FVOCON Error For output true
arguments,
validation functions
must only use the
argument being
validated or literals.
FVOND Error Use of name-value true
arguments in default
values is not
supported.
FVONV Error Use of name-value true
arguments without
dotted name in the
validation is not
supported.
FVOOD Error Specifying a default true
value for an output
argument is not
supported.
FVOOI Error Use of ignored true
arguments in output
arguments block is
not supported.
FVOON Error Using name-value true
argument as output
argument is not
supported.
FVORDI Error Ignored input true
arguments are not
allowed after a
Repeating
arguments block or
name-value
arguments.
FVORDN Error Positional arguments true
must be defined
before name-value
arguments.

7-38
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FVORDO Error Repeating output true
arguments must be
defined after
required output
arguments.
FVORDP Error Positional arguments true
must be defined in
the following order:
required, optional,
and repeating.
FVORM Error Declaring multiple true
repeating output
arguments is not
supported.
FVOVREP Error Output argument true
varargout can only
be used inside a
Repeating output
arguments block.
FVREPD Error Default values are true
not supported in a
Repeating
arguments block.
FVREPO Error Repeating input true
arguments block
containing varargin
must not have other
arguments.
FVSOR Error Input arguments true
block declarations
and the function line
must contain the
same input
arguments in the
same order,
including ignored
arguments.
FVSORO Error Output arguments true
block declarations
and the function line
must contain the
same output
arguments in the
same order.

7-39
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FVUBD Error Argument is true
referenced before it
is declared in the
arguments block.
FVVCON Error For input arguments, true
validation functions
must only use
previously declared
positional
arguments, the
argument being
validated, or literals.
FVVIN Error Validation function true
must use the
argument as an
input.
FVVREP Error varargin can only be true
used inside
repeating input
arguments block.
GPFST Error A GLOBAL or true
PERSISTENT
declaration must
precede first use.
GPNES Error A GLOBAL or true
PERSISTENT
declaration must be
in the outermost
function where it is
used.
IDXCOLN Error The END operator true
D must be used within
an array index
expression.
MABSEAC Error Instance properties true
and methods are
illegal in classes that
are both Sealed and
Abstract.
MABSEAM Error A method cannot be true
both Abstract and
Sealed.
MCANI Error Abstract property true
VAR_NAME cannot
be initialized.

7-40
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCAPP Error Private property true
cannot be Abstract.
MCASC Error Abstract property true
VAR_NAME cannot
be used in a Sealed
class.
MCCBD Error Constructor must be true
fully defined in the
class definition file.
MCCBS Error A superclass true
constructor is being
called, but
VAR_NAME is not a
declared superclass
name.
MCCBU Error This superclass true
constructor is called
after a use of the
constructed object.
MCCMC Error Constructor for true
superclass can only
be called once.
MCCSOP Error Unable to modify true
Constant property
VAR_NAME.
MCDIR Error Class name true
VAR_NAME and
@directory name do
not agree: VAR_FILE.
MCEB Error Events can be true
defined only in a
handle class.
MCFIL Error Class name true
VAR_NAME and file
name do not agree:
VAR_FILE. Update
the class name and
constructor, if
defined, or change
the file name to
match the class
name.
MCG1I Error Get methods must true
have exactly one
input.

7-41
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCG1O Error Get methods must true
have exactly one
output.
MCGSA Error Method VAR_NAME true
tries to set or get an
abstract property.
MCMIO Error Method has too true
many inputs or
outputs.
MCMSP Error Private method true
cannot be Abstract.
MCMTP Error TestParameterDefinit true
ion methods must be
Static, so that they
can be called at test
suite creation time to
set test parameter
values.
MCPIN Error Unable to initialize true
class property to an
instance of the class
itself.
MCPSG Error Set or get method true
must be fully defined
in the class definition
file.
MCRED Error Property, event, or true
enumeration names
must be different
from the name of the
class VAR_NAME.
MCS1O Error Set Methods must true
have at most one
output.
MCS2I Error Set Methods must true
have exactly two
inputs.
MCSCC Error To call the superclass true
constructor, the
name of the subclass
constructor
VAR_NAME must
match the name of
the subclass
VAR_NAME.

7-42
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCSCF Error A superclass true
constructor must be
assigned to the first
constructor output
argument.
MCSCM Error To call a superclass true
method, the method
name VAR_NAME
must match the
name of the subclass
method VAR_NAME.
MCSCN Error Method VAR_NAME true
tries to set a
constant property.
MCSCO Error A superclass true
constructor must be
called using the first
constructor output
argument.
MCSCT Error Superclass true
constructor call must
not be
conditionalized or be
part of another
expression.
MCSGA Error Set or get method true
must be defined in a
METHODS block
with no attributes.
MCSGP Error The method true
VAR_NAME does not
refer to a valid
property name.
MCSMO Error Returning multiple true
outputs from a
superclass object
initialization is not
supported.
MCSWA Error A sealed class cannot true
specify allowed
subclasses.
MHERIT Error Deriving from the true
built-in MATLAB
VAR_NAME class is
not supported.

7-43
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MTAGS3 Error Cannot use the true
Access attribute
when using the
SetAccess or
GetAccess attribute.
MTMAT Error Attribute can only be true
set once.
MWKCL Error A WeakHandle true
property must
restrict its type using
a class validation.
MWKCT Error Specifying both true
WeakHandle and
Constant attributes
on the same property
is not supported.
MWKREF Error Specifying both true
WeakHandle and
Dependent attributes
is invalid. A
dependent property
does not store a
value.
NCHKOS Error NARGINCHK does true
not return any
values.
NOPRV Error A class definition true
cannot be inside a
private directory.
NPERS Error A PERSISTENT true
declaration is not
valid in scripts.
PFANON Error Using a sliced output true
variable in an
anonymous function
is not supported in
parfor loops.
PFANSLP Error 'ans' is not supported true
as a parfor loop
variable.
PFANSNS Error 'ans' is not supported true
as a for loop variable
in parfor loops.

7-44
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFANSRE Error 'ans' is not supported true
as a reduction
variable in parfor
loops.
PFANSSL Error 'ans' is not supported true
as a sliced variable
in parfor loops.
PFBRK Error break statements true
cannot be used
inside a parfor loop.
PFCEL Error The function true
VAR_NAME does not
support cell arrays
(argument
VAR_NUMBER).
PFCTXT Error When indexing a true
sliced variable with a
nested for loop
variable, the sliced
variable must be
inside the for loop
that defines the
range of the for loop
variable.
PFDF Error FOR with DRANGE true
(old PARFOR)
becomes a
conventional FOR
when used inside a
PARFOR loop.
PFEVC Error EVALIN('caller') and true
ASSIGNIN('caller')
are invalid inside of a
PARFOR loop.
PFFORA Error Assigning to for loop true
variables is not
supported in parfor
loops.

7-45
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFFRNG Error When indexing a true
sliced variable with a
nested for loop
variable, the range of
the for loop variable
must be a row vector
of positive constant
numbers or
variables.
PFFSUB Error Indexing a nested for true
loop variable is not
supported in parfor
loops.
PFGLOB Error Global variable true
declarations are not
supported in parfor
loops.
PFINCR Error Using different true
reduction functions
with the same
reduction variable is
not supported in
parfor loops.
PFINPT Error 'inputname' is not true
supported in parfor
loops.
PFLD Error 'load' must assign to true
an output variable in
parfor loops.
PFMLTI Error When indexing a true
sliced variable with a
nested for loop
variable, the for loop
variable must not be
assigned other than
by its for statement.
PFNACK Error 'narginchk' and true
'nargoutchk' cannot
be used in parfor
loops.
PFNAIO Error 'nargin' and 'nargout' true
require a function
argument in parfor
loops.

7-46
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFNF Error Nested functions true
cannot be called
from within parfor
loops.
PFPERS Error Persistent variable true
declarations are not
supported in parfor
loops.
PFPF Error parfor loops cannot true
be used inside other
parfor loops.
PFPIE Error Valid indices for true
VAR_NAME are
restricted in PARFOR
loops.
PFRFH Error The PARFOR true
reduction function
VAR_NAME must
either be a function
name or a broadcast
variable.
PFRNG Error The range of a true
PARFOR statement
must be increasing
consecutive integers.
PFRTN Error return statements true
cannot be used
inside a parfor loop.
PFSAME Error In a PARFOR loop, true
variable VAR_NAME
is indexed in
different ways,
potentially causing
dependencies
between iterations.
PFSPMD Error spmd statements true
cannot be used
inside parfor loops.
PFSV Error SAVE cannot be true
called in a PARFOR
loop without the '-
fromstruct' option.

7-47
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFTIN Error The temporary true
variable VAR_NAME
must be set inside
the PARFOR-loop
before it is used.
PFUNK Error The PARFOR loop true
cannot run due to
the way variable
VAR_NAME is used.
PFVARS Error Parfor loop contains true
too many variables.
PFVSUB Error Indexing parfor loop true
variables is not
supported in parfor
loops.
PFXST Error Assigning to the true
parfor loop index
variable is not
supported in parfor
loops.
ROWLN Error All matrix rows must true
be the same length.
SPBFN Error Use of this function true
is invalid inside an
SPMD block because
it accesses or
modifies the
workspace in a non-
transparent way.
SPBRK Error The loop containing true
the BREAK or
CONTINUE must be
completely contained
in the SPMD block.
SPDEC Error The bounds on the true
number of workers
an SPMD block can
use must be a
nonnegative integer.
SPDEC3 Error An SPMD block can true
only specify a lower
and upper bound for
the number of
workers to use.

7-48
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SPEVC Error EVALIN('caller') and true
ASSIGNIN('caller')
are invalid inside of
an SPMD block.
SPGP Error Setting the GLOBAL true
or PERSISTENT
variable VAR_NAME
in an SPMD block
might fail because
the set happens on a
worker machine.
SPLD Error To avoid a true
transparency
violation, assign the
output of LOAD to a
variable in SPMD
blocks.
SPNF Error The nested function true
VAR_NAME cannot
be called from within
an SPMD block.
SPNST Error PARFOR or SPMD true
cannot be used
inside an SPMD
block.
SPRET Error VAR_RESERVED_WO true
RD statement cannot
be used inside an
SPMD block.
SPSV Error SAVE cannot be true
called in an SPMD
block without the '-
fromstruct' option.
SPWHOS Error Using "who" or true
"whos" without "-file"
is invalid inside an
SPMD block because
it accesses the
workspace in a non-
transparent way.
TINVALD Error Each dimension must true
IM be a nonnegative
integer number or a
colon.
TTOOFEW Error Specify at least two true
DIMS dimensions for size.

7-49
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VTPCON Error For properties, true
validation functions
must only use the
property being
validated or literals.
VTPEAL Error Specify at least one true
input argument for
validator.
VTPIN Error Validation function true
must use the
property as an input.
WTXT Error Specify a warning true
message with the
message identifier.

Bugs
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
ASSRT Error The first input true
argument to 'assert'
must be a condition.
To always throw an
error, use
'error(msg)' instead.
CFALSE Error This logical true
comparison always
returns false. Did
you mean to use
VAR_NAME to
evaluate function
argument:
VAR_NAME(...VAR_N
AME...)?
CMDAND Error Use 'A & B' or 'A & true
B' to test whether A
and B are both true
in MATLAB.
CMDOR Error Use 'A || B' or 'A | B' true
to test whether
either A or B is true
in MATLAB.

7-50
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CTRUE Error This logical true
comparison always
returns true. Did you
mean to use
VAR_NAME to
evaluate function
argument:
VAR_NAME(...VAR_N
AME...)?
DEBUGFU Error Debug functions are true
N intended to be used
at the command line.
At runtime, they will
generate an error.
Remove the debug
function.
DECR Error --x operation does true
not decrement the
value of x. To
decrease the value
by 1, use x = x - 1.
DEFSIZE Error Do not overload 'size' true
for fundamental data
types.
DUPNAME Error This named true
ARG argument will
override a previous
one. Remove one of
the duplicated
named arguments.
FNAN Error Use ISNAN when true
comparing values to
NaN.
FPFORP Error 'fprintf' is writing to true
a file that is opened
with read permission
only. Open a file
using
'fopen(...,'W',...)'
instead.
FUNFUN Error The first input true
argument must be a
function handle. Did
you mean
'@VAR_NAME'?

7-51
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FWFORP Error 'fwrite' is writing to a true
file that is opened
with read permission
only. Open a file
using
'fopen(...,'W',...)'
instead.
IFBDUP Error This condition has no true
effect because all
blocks in this if
statement are
identical. Remove
the condition or
change the code
blocks.
IFCDUP Error The statements R2021a true
under this
VAR_RESERVED_WO
RD condition cannot
be reached because
it is a duplicate of
the
VAR_RESERVED_WO
RD condition on line
VAR_NUMBER.
Remove or change
the condition.
INCR Error ++x operation does true
not increment the
value of x. To
increase the value by
1, use x = x + 1.
LBODUP Error Since both operands true
are identical, the
second operand has
no effect on the
VAR_RESERVED_WO
RD operation.
Change one of the
operands or remove
the
VAR_RESERVED_WO
RD operation.

7-52
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
LOGEMP Error Using 'isempty' on a true
logical expression
creates incorrect
results. To determine
if all the conditions
are false, use
'~any(..., "all")'
instead.
MDUPC Error The case value true
VAR_NAME is a
duplicate of one on
line VAR_NUMBER.
MEXCEP Error To pass MException true
properties to the
warning function,
use a format
specifier. For
example,
warning(E.identifier,
'%s', E.message).
MNANC Error NaN never compares true
equal to any value,
so this case will
never be matched.
MOCUP Error The variable true
VAR_NAME is an
uplevel variable,
invalid in a function
called by onCleanup.
MULCC Error This case cannot be true
matched due to a call
to UPPER or LOWER
on the SWITCH
value.
NOPRC Error A line break true
terminates the
statement so it may
be incomplete. Use
ellipsis (...) to
continue the
statement. Or add a
semicolon to hide the
output.

7-53
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFBFN Error Use of this function true
is invalid inside a
PARFOR loop
because it accesses
or modifies the
workspace in a non-
transparent way.
PFRNC Error The variable true
VAR_NAME is used
like a PARFOR
reduction variable,
but it has additional
(invalid) uses.
PFTUSE Error The temporary true
variable VAR_NAME
is used after the
PARFOR loop on line
VAR_NUMBER, but
its value is not
available after the
loop.
PFUIXE Error The index variable true
VAR_NAME might be
used after the
PARFOR loop on line
VAR_NUMBER, but it
is unavailable after
the loop.
PFWHOS Error Using "who" or true
"whos" without "-file"
is invalid inside a
PARFOR loop
because it accesses
the workspace in a
non-transparent way.
RHSFN Error The expression true
cannot be assigned
to multiple values.
SHOCIRF Error The VAR_NAME true
operator is
unexpected because
VAR_NAME(A
VAR_NAME B)
always returns false.

7-54
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SHOCIRT Error The VAR_NAME true
operator is
unexpected because
VAR_NAME(A
VAR_NAME B)
always returns true.
STCUL Error The comparison will true
likely fail due to case
mismatch.
STRCMPC Error 'strcmp' always R2023a true
STR returns false for
string elements of a
cell array. Use
["str1", "str2"]
instead of {"str1",
"str2"}.
SUBSASG Error Output of true
N SUBSASGN must be
assigned to a
variable.
VARARG Error Initialize true
VARARGOUT with a
CELL.

Custom Checks
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
DAFAF Warning Use of an anonymous true
function is
disallowed by custom
code analyzer
configuration.
DAFBR Warning Use of break true
statement is
disallowed by custom
code analyzer
configuration.
DAFCF Warning Use of command true
syntax to call a
function is
disallowed by custom
code analyzer
configuration.

7-55
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DAFCO Warning Use of continue true
statement is
disallowed by custom
code analyzer
configuration.
DAFCV Warning Use of character true
vector is disallowed
by custom code
analyzer
configuration.
DAFCVC Warning Use of cell array of true
character vectors is
disallowed by custom
code analyzer
configuration.
DAFNF Warning Use of a nested true
function is
disallowed by custom
code analyzer
configuration.
DAFPV Warning Use of persistent true
variable is
disallowed by custom
code analyzer
configuration.
DAFRT Warning Use of return true
statement is
disallowed by custom
code analyzer
configuration.
DAFSC Warning Use of a script is true
disallowed by custom
code analyzer
configuration.
DAFTC Warning Use of try/catch true
statement is
disallowed by custom
code analyzer
configuration.
DAFVI Warning Use of varargin is true
disallowed by custom
code analyzer
configuration.

7-56
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DAFVO Warning Use of varargout is true
disallowed by custom
code analyzer
configuration.
FCNIL Warning Function has more true
than VAR_NUMBER
input arguments.
This makes the
function difficult to
understand and
maintain.
FCNLL Warning Function has more true
than VAR_NUMBER
lines. This makes the
function difficult to
understand and
maintain.
FCNOL Warning Function has more true
than VAR_NUMBER
output arguments.
This makes the
function difficult to
understand and
maintain.
LLMNC Warning Line has more than true
VAR_NUMBER
characters (including
whitespaces). This
makes the line
difficult to
understand and
maintain.
MNCSN Warning This control true
statement is deeply
nested (nesting level
= VAR_NUMBER)
and might have more
deeply nested
control statements.
This makes the code
difficult to
understand and
maintain.

7-57
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SYSBANG Warning Use of bang operator true
is disallowed by
custom code
analyzer
configuration.

Compatibility Considerations
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
ACORR Error Positional syntax for R2024a true autocorr
optional arguments (Econometrics
has been removed Toolbox)
from 'autocorr'. Use
name-value pairs
instead.
ACTXC Warning 'actxcontrol' will be R2019b true actxcontrol
removed in a future
release. There is no
simple replacement
for this.
ACTXL Warning 'actxcontrollist' will R2019b true actxcontrollist
be removed in a
future release. There
is no simple
replacement for this.
ACTXS Warning 'actxcontrolselect' R2019b true actxcontrolselec
will be removed in a t
future release. There
is no simple
replacement for this.
ADTPATH Warning 'path' will be R2018a true
removed in a future
release. Use
'trajectory' instead.
AFADJLM Error 'adaptfilt.adjlms' has R2015a true
S been removed. There
is no simple
replacement for this.
AFAP Error 'adaptfilt.ap' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.AffineProjection
Filter' instead.

7-58
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
AFAPRU Error 'adaptfilt.apru' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.AffineProjection
Filter' instead.
AFBAP Error 'adaptfilt.bap' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.AffineProjection
Filter' instead.
AFBLMS Error 'adaptfilt.blms' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.BlockLMSFilter'
instead.
AFBLMSF Error 'adaptfilt.blmsfft' has R2015a true
FT been removed. There
is no simple
replacement for this.
AFDLMS Error 'adaptfilt.dlms' has R2015a true
been removed. There
is no simple
replacement for this.
AFFDAF Error 'adaptfilt.fdaf' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.FrequencyDoma
inAdaptiveFilter'
instead.
AFFILTX Error 'adaptfilt.filtxlms' has R2015a true
LMS been removed. With
appropriate code
changes, use
'dsp.FilteredXLMSFil
ter' instead.
AFFTF Error 'adaptfilt.ftf' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.FastTransversal
Filter' instead.

7-59
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
AFGAL Error 'adaptfilt.gal' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.AdaptiveLattice
Filter' instead.
AFHRLS Error 'adaptfilt.hrls' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.RLSFilter'
instead.
AFHSWRL Error 'adaptfilt.hswrls' has R2015a true
S been removed. With
appropriate code
changes, use
'dsp.RLSFilter'
instead.
AFLMS Error 'adaptfilt.lms' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.LMSFilter'
instead.
AFLSL Error 'adaptfilt.lsl' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.AdaptiveLattice
Filter' instead.
AFNLMS Error 'adaptfilt.nlms' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.LMSFilter'
instead.
AFPBFDA Error 'adaptfilt.pbfdaf' has R2015a true
F been removed. There
is no simple
replacement for this.
AFPBUFD Error 'adaptfilt.pbufdaf' R2015a true
AF has been removed.
There is no simple
replacement for this.

7-60
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
AFQRDLS Error 'adaptfilt.qrdlsl' has R2015a true
L been removed. With
appropriate code
changes, use
'dsp.AdaptiveLattice
Filter' instead.
AFQRDRL Error 'adaptfilt.qrdrls' has R2015a true
S been removed. With
appropriate code
changes, use
'dsp.RLSFilter'
instead.
AFRLS Error 'adaptfilt.rls' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.RLSFilter'
instead.
AFSD Error 'adaptfilt.sd' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.LMSFilter'
instead.
AFSE Error 'adaptfilt.se' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.LMSFilter'
instead.
AFSS Error 'adaptfilt.ss' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.LMSFilter'
instead.
AFSWFTF Error 'adaptfilt.swftf' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.FastTransversal
Filter' instead.

7-61
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
AFSWRLS Error 'adaptfilt.swrls' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.RLSFilter'
instead.
AFTDAFD Error 'adaptfilt.tdafdct' has R2015a true
CT been removed. There
is no simple
replacement for this.
AFTFAFD Error 'adaptfilt.tfafdft' has R2015a true
FT been removed. There
is no simple
replacement for this.
AFUFDAF Error 'adaptfilt.ufdaf' has R2015a true
been removed. With
appropriate code
changes, use
'dsp.FrequencyDoma
inAdaptiveFilter'
instead.
ALDEINT Error 'comm.AlgebraicDein R2019b true
terleaver' has been
removed. With
appropriate code
changes, use
'algdeintrlv' instead.
ALINT Error 'comm.AlgebraicInte R2019b true
rleaver' has been
removed. With
appropriate code
changes, use
'algintrlv' instead.
AT2GD Error 'aut2geod' has been R2013b true map.geodesy.Auth
removed. With alicLatitudeConv
appropriate code erter (Mapping
changes, use Toolbox)
'map.geodesy.Authali
cLatitudeConverter'
instead.

7-62
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ATVIZW Error The 'Visible' R2008b true
attribute has been
removed. Use the
'~Hidden' attribute
instead or omit the
attribute since
'Hidden' is false by
default.
AXSTATE Error 'axis('state')' has R2015a true axis
been removed. With
appropriate code
changes, use
'XLimMode',
'YLimMode',
'ZLimMode', 'Visible',
'XDir', and 'YDir'
properties of an axes
object instead.
B2G Error 'bin2gray' has been R2020a true
removed. Use the
appropriate
modulation object or
function to remap
constellation points
instead.
BETALIK Error 'betalik1' has been R2015a true betalike (Statistics
1 removed. With and Machine
appropriate code Learning Toolbox)
changes, use
'betalike' instead.
BIGIMAG Warning 'bigimage' will be R2023b true bigimageDatastor
E removed in a future e (Image Processing
release. With Toolbox)
appropriate code
changes, use
'blockedImage'
instead.
BIGIMAG Warning 'bigimageDatastore' R2023b true bigimageDatastor
EDS will be removed in a e (Image Processing
future release. With Toolbox)
appropriate code
changes, use
'blockedImageDatast
ore' instead.

7-63
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BLBAB Warning 'BytesAvailable' R2022b true “Transition Your
property of Code to bluetooth
'bluetooth' class will Interface”
be removed in a
future release. With
appropriate code
changes, use
'NumBytesAvailable'
property of
'bluetooth' class
instead.
BLBAF Warning 'BytesAvailableFcnC R2022b true “Transition Your
ount' property of Code to bluetooth
'bluetooth' class will Interface”
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'bluetooth'
class instead.
BLBAM Warning 'BytesAvailableFcnM R2022b true “Transition Your
ode' property of Code to bluetooth
'bluetooth' class will Interface”
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'bluetooth'
class instead.
BLBAN Warning 'BytesAvailableFcn' R2022b true “Transition Your
property of Code to bluetooth
'bluetooth' class will Interface”
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'bluetooth'
class instead.

7-64
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BLEFN Warning 'ErrorFcn' property R2022b true “Transition Your
of 'bluetooth' class Code to bluetooth
will be removed in a Interface”
future release. With
appropriate code
changes, use
'ErrorOccurredFcn'
property of
'bluetooth' class
instead.
BLFCS Warning 'fclose' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. There
is no simple
replacement for this.
BLFGL Warning 'fgetl' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use
'readline' method of
'bluetooth' class
instead.
BLFGT Warning 'fgets' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use
'readline' method of
'bluetooth' class
instead.
BLFLI Warning 'flushinput' method R2022b true “Transition Your
of 'bluetooth' class Code to bluetooth
will be removed in a Interface”
future release. With
appropriate code
changes, use 'flush'
method of 'bluetooth'
class instead.

7-65
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BLFLO Warning 'flushoutput' method R2022b true “Transition Your
of 'bluetooth' class Code to bluetooth
will be removed in a Interface”
future release. With
appropriate code
changes, use 'flush'
method of 'bluetooth'
class instead.
BLFOP Warning 'fopen' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use
'bluetooth'
constructor instead.
BLFPR Warning 'fprintf' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use
'writeline' method of
'bluetooth' class
instead.
BLFRD Warning 'fread' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use 'read'
method of 'bluetooth'
class instead.
BLFSF Warning 'fscanf' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use
'readline' method of
'bluetooth' class
instead.

7-66
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BLFWR Warning 'fwrite' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use 'write'
method of 'bluetooth'
class instead.
BLIBS Warning 'InputBufferSize' R2022b true “Transition Your
property of Code to bluetooth
'bluetooth' class will Interface”
be removed in a
future release. There
is no simple
replacement for this.
BLKDEIN Error 'comm.BlockDeinterl R2019b true
T eaver' has been
removed. With
appropriate code
changes, use
'deintrlv' instead.
BLKINT Error 'comm.BlockInterlea R2019b true
ver' has been
removed. With
appropriate code
changes, use 'intrlv'
instead.
BLREN Warning 'RemoteName' R2022b true “Transition Your
property of Code to bluetooth
'bluetooth' class will Interface”
be removed in a
future release. With
appropriate code
changes, use 'Name'
property of
'bluetooth' class
instead.
BLRID Warning 'RemoteID' property R2022b true “Transition Your
of 'bluetooth' class Code to bluetooth
will be removed in a Interface”
future release. With
appropriate code
changes, use
'Address' property of
'bluetooth' class
instead.

7-67
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
BLSTR Warning 'scanstr' method of R2022b true “Transition Your
'bluetooth' class will Code to bluetooth
be removed in a Interface”
future release. With
appropriate code
changes, use
'readline' method of
'bluetooth' class
instead.
BLTMT Warning Manually setting R2022b true “Transition Your
'Terminator' property Code to bluetooth
of 'bluetooth' class Interface”
will be removed in a
future release. With
appropriate code
changes, use
'configureTerminator
' method of
'bluetooth' class to
set value instead.
BLUTH Warning 'Bluetooth' will be R2020b true “Bluetooth Interface:
removed in a future New functions and
release. With properties with
appropriate code improved
changes, use performance”
'bluetooth' instead. (Instrument Control
Toolbox)
BUFSIZE Error Option 'Bufsize' has R2014b true textscan
been removed.
Manual buffering in
'textscan' is no
longer needed.
BW2RNG Warning 'bw2range' will be R2021a true
removed in a future
release. Use
'bw2rangeres'
instead, which is a
direct replacement.
CAPABLE Error 'capable' has been R2015a true
removed. With
appropriate code
changes, use
'capability' instead.

7-68
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CF2GD Error 'cnf2geod' has been R2013b true map.geodesy.Conf
removed. With ormalLatitudeCon
appropriate code verter (Mapping
changes, use Toolbox)
'map.geodesy.Confor
malLatitudeConverte
r' instead.
CHKGR Warning The 'CheckGradients' R2024a true checkGradients
option will be (Optimization
removed from Toolbox)
'optimoptions' in a
future release. With
appropriate code
changes, use the
'checkGradients'
function instead.
CLASSRE Error 'classregtree' has R2015a true
GTREE been removed. With
appropriate code
changes, use
'fitctree' or 'fitrtree'
instead.
CLRMENU Error 'clrmenu' has been R2022b true clrmenu (Mapping
removed. With Toolbox)
appropriate code
changes, use
'colormapeditor'
instead.
CLRUI Error 'colorui' has been R2013a true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'uisetcolor' instead. removed” (Mapping
Toolbox)
CMBNT Error 'combntns' has been R2014a true combntns (Mapping
removed. Use Toolbox)
'nchoosek' instead,
which is a direct
replacement.

7-69
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CMCMA Error 'cma' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMCMAAD Error 'adaptalg.cma' has R2019a true
been removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMCPMCP Error 'comm.CPMCarrierP R2016a true
S haseSynchronizer'
has been removed.
With appropriate
code changes, use
'comm.CarrierSynchr
onizer' instead.
CMDFE Error 'dfe' has been R2019a true
removed. With
appropriate code
changes, use
'comm.DecisionFeed
backEqualizer'
instead.
CMDFEEQ Error 'equalizer.dfe' has R2019a true
been removed. With
appropriate code
changes, use
'comm.DecisionFeed
backEqualizer'
instead.
CMELGTS Error 'comm.EarlyLateGat R2015a true
eTimingSynchronizer
' has been removed.
With appropriate
code changes, use
'comm.SymbolSynch
ronizer' instead.

7-70
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CMEQU Error 'equalize' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMGTS Error 'comm.GardnerTimin R2015a true
gSynchronizer' has
been removed. With
appropriate code
changes, use
'comm.SymbolSynch
ronizer' instead.
CMLLD Error 'loadCompactModel' R2019b true “Functionality being
has been removed. removed or
Use changed” (Statistics
'loadLearnerForCode and Machine
r' instead, which is a Learning Toolbox)
direct replacement.
CMLMS Error 'lms' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMLMSAD Error 'adaptalg.lms' has R2019a true
been removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMLRQ Error 'lineareq' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' instead.

7-71
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CMLRQEQ Error 'equalizer.lineareq' R2019a true
has been removed.
With appropriate
code changes, use
'comm.LinearEqualiz
er' instead.
CMLSV Error 'saveCompactModel' R2019b true “Functionality being
has been removed. removed or
Use changed” (Statistics
'saveLearnerForCode and Machine
r' instead, which is a Learning Toolbox)
direct replacement.
CMMMTS Error 'comm.MuellerMulle R2015a true
rTimingSynchronizer
' has been removed.
With appropriate
code changes, use
'comm.SymbolSynch
ronizer' instead.
CMNLMS Error 'normlms' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMNLMSA Error 'adaptalg.normlms' R2019a true
D has been removed.
With appropriate
code changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMPSKCP Error 'comm.PSKCarrierPh R2015a true
S aseSynchronizer' has
been removed. With
appropriate code
changes, use
'comm.CarrierSynchr
onizer' instead.

7-72
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CMRLS Error 'rls' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMRLSAD Error 'adaptalg.rls' has R2019a true
been removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMSLMS Error 'signlms' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMSLMSA Error 'adaptalg.signlms' R2019a true
D has been removed.
With appropriate
code changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CMVLMS Error 'varlms' has been R2019a true
removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.

7-73
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CMVLMSA Error 'adaptalg.varlms' has R2019a true
D been removed. With
appropriate code
changes, use
'comm.LinearEqualiz
er' or
'comm.DecisionFeed
backEqualizer'
instead.
CN2GD Error 'cen2geod' has been R2013b true geodeticLatitude
removed. With FromGeocentric
appropriate code (Mapping Toolbox)
changes, use
'geodeticLatitudeFro
mGeocentric'
instead.
CNNCGA Error 'cnncodegen' with R2020b true
'targetlib' as 'arm-
compute' has been
removed. With
appropriate code
changes, use
'codegen' instead.
CNNCGC Error 'cnncodegen' with R2020b true
'targetlib' as 'cudnn'
has been removed.
With appropriate
code changes, use
'codegen' instead.
CNNCGD Error 'cnncodegen' with R2020b true
default 'targetlib' as
'cudnn' has been
removed. With
appropriate code
changes, use
'codegen' instead.
CNNCGM Error 'cnncodegen' with R2020b true
'targetlib' as
'mkldnn' has been
removed. With
appropriate code
changes, use
'codegen' instead.

7-74
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CNNCGT Error 'cnncodegen' with R2020b true
'targetlib' as
'tensorrt' has been
removed. With
appropriate code
changes, use
'codegen' instead.
COEFF1 Error The property R2015a true
'FirstFilterCoefficien
ts' has been
removed.
COEFF2 Error The property R2015a true
'SecondFilterCoeffici
ents' has been
removed.
COEFF3 Error The property R2015a true
'ThirdFilterCoefficien
ts' has been
removed.
COEFFC1 Error The property R2015a true
'CustomFirstFilterCo
efficientsDataType'
has been removed.
COEFFC2 Error The property R2015a true
'CustomSecondFilter
CoefficientsDataType
' has been removed.
COEFFC3 Error The property R2015a true
'CustomThirdFilterC
oefficientsDataType'
has been removed.
COEFFD1 Error The property R2015a true
'FirstFilterCoefficien
tsDataType' has been
removed.
COEFFD2 Error The property R2015a true
'SecondFilterCoeffici
entsDataType' has
been removed.
COEFFD3 Error The property R2015a true
'ThirdFilterCoefficien
tsDataType' has been
removed.

7-75
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COEFFS Error The property R2015a true
'FilterSpecification'
has been removed.
COLORDE Warning 'colordef' will be R2017a true colordef
F removed in a future
release. There is no
simple replacement
for this.
COLORM Error 'colorm' has been R2013b true “Some file import,
removed. There is no map display, data
simple replacement analysis, and
for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
COMET Error 'cometm' has been R2013b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use 'comet' functions have been
instead. removed” (Mapping
Toolbox)
COMET3 Error 'comet3m' has been R2013b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'comet3' instead. removed” (Mapping
Toolbox)
COMMBI Error 'comm.BitToInteger' R2019b true
has been removed.
With appropriate
code changes, use
'bit2int' instead.
COMMBPS Warning 'comm.BPSKDemodu R2023a true
KDSO lator' will be
removed in a future
release. With
appropriate code
changes, use
'pskdemod' instead.
COMMBPS Warning 'comm.BPSKModulat R2023a true
KMSO or' will be removed
in a future release.
With appropriate
code changes, use
'pskmod' instead.

7-76
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COMMBSC Error 'comm.BinarySymme R2018b true
tricChannel' has
been removed. With
appropriate code
changes, use 'BSC'
instead.
COMMCCD Warning 'comm.CCDF' will be R2023a true
F removed in a future
release. With
appropriate code
changes, use
'powermeter'
instead.
COMMCRC Warning 'comm.CRCDetector' R2024b true
DET will be removed in a
future release. With
appropriate code
changes, use
'crcDetect' instead.
COMMCRC Warning 'comm.CRCGenerato R2024b true
GEN r' will be removed in
a future release.
With appropriate
code changes, use
'crcGenerate'
instead.
COMMED Error 'comm.EyeDiagram' R2020b true
has been removed.
For line plotting, use
the eyediagram
function. There is no
simple replacement
for histogram
plotting and
measurement
analysis.
COMMERR Error 'commtest.ErrorRate R2019b true
ATE ' has been removed.
Use
'comm.ErrorRate' or
BERTool instead.

7-77
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COMMGPU Warning 'comm.gpu.AWGNCh R2024b true
AWGN annel' will be
removed in a future
release. With
appropriate code
changes, use 'awgn'
instead.
COMMGPU Warning 'comm.gpu.LDPCDec R2024b true
LDPCDEC oder' will be
removed in a future
release. With
appropriate code
changes, use
'ldpcDecode' instead.
COMMIB Error 'comm.IntegerToBit' R2019b true
has been removed.
With appropriate
code changes, use
'int2bit' instead.
COMMLMC Error 'comm.LTEMIMOCha R2018b true
nnel' has been
removed. With
appropriate code
changes, use
'comm.MIMOChanne
l' instead.
COMMPSK Error 'comm.PSKCoarseFr R2019a true
C equencyEstimator'
has been removed.
With appropriate
code changes, use
'comm.CoarseFreque
ncyCompensator'
instead.
COMMPSK Warning 'comm.PSKDemodula R2023a true
DSO tor' will be removed
in a future release.
With appropriate
code changes, use
'pskdemod' instead.
COMMPSK Warning 'comm.PSKModulato R2023a true
MSO r' will be removed in
a future release.
With appropriate
code changes, use
'pskmod' instead.

7-78
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COMMQAM Error 'comm.QAMCoarseFr R2019a true
C equencyEstimator'
has been removed.
With appropriate
code changes, use
'comm.CoarseFreque
ncyCompensator'
instead.
COMMQAM Error 'comm.RectangularQ R2018b true
D AMDemodulator' has
been removed. With
appropriate code
changes, use
'qamdemod' instead.
COMMQAM Error 'comm.RectangularQ R2018b true
M AMModulator' has
been removed. With
appropriate code
changes, use
'qammod' instead.
COMMQPS Warning 'comm.QPSKDemodu R2023a true
KDSO lator' will be
removed in a future
release. With
appropriate code
changes, use
'pskdemod' instead.
COMMQPS Warning 'comm.QPSKModulat R2023a true
KMSO or' will be removed
in a future release.
With appropriate
code changes, use
'pskmod' instead.
COMMSCO Error 'commscope.eyediag R2017a true
PEED ram' has been
removed. For line
plotting, use the
eyediagram function.
There is no simple
replacement for
histogram plotting
and measurement
analysis.

7-79
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COMMSCO Error 'commscope.ScatterP R2017a true
PESP lot' has been
removed. With
appropriate code
changes, use
'comm.Constellation
Diagram' instead.
COMPATV Warning 'images.compatibility R2022a true images.compatibi
OL .volshow.R2022a.vols lity.volshow.R20
how' will be removed 22a.volshow
in a future release. (Image Processing
With appropriate Toolbox)
code changes, use
'volshow' instead.
CRCDE Error 'crc.detector' has R2020b true
been removed. With
appropriate code
changes, use
'comm.CRCDetector'
instead.
CRCGE Error 'crc.generator' has R2020b true
been removed. With
appropriate code
changes, use
'comm.CRCGenerato
r' instead.
DACPR Error 'commmeasure.ACPR R2012b true
' has been removed.
With appropriate
code changes, use
'comm.ACPR'
instead.
DAFINF Warning 'avifinfo' will be R2010a true VideoReader
removed in a future
release. With
appropriate code
changes, use
'VideoReader'
instead.
DAVIINF Warning 'aviinfo' will be R2010a true aviinfo
removed in a future
release. With
appropriate code
changes, use
'VideoReader'
instead.

7-80
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DBCHDEC Error 'fec.bchdec' has been R2012b true
removed. With
appropriate code
changes, use
'comm.BCHDecoder'
instead.
DBHENC Error 'fec.bchenc' has been R2012b true
removed. With
appropriate code
changes, use
'comm.BCHEncoder'
instead.
DBITMAX Error 'bitmax' has been R2013a true
removed. With
appropriate code
changes, use
'flintmax' instead.
DCRENAM Warning Input argument R2019b true “Toolbox folders
E 'distcomp' will be renamed: Old names
removed in a future will be removed”
release. Use
'parallel' instead.
DCSHELP Warning 'cshelp' will be R2007a true
removed in a future
release. There is no
simple replacement
for this.
DCWDT Error 'dcwdata' has been R2014b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'vmap0data' instead. removed” (Mapping
Toolbox)
DCWGZ Error 'dcwgaz' has been R2014b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'vmap0ui' instead. removed” (Mapping
Toolbox)
DCWHD Error 'dcwrhead' has been R2014b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'vmap0rhead' removed” (Mapping
instead. Toolbox)

7-81
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DCWRD Error 'dcwread' has been R2014b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'vmap0read' instead. removed” (Mapping
Toolbox)
DDEMOD Error 'modem.dpskdemod' R2018a true
has been removed.
With appropriate
code changes, use
'comm.DPSKDemodu
lator' instead.
DDTRD Warning 'dataread' will be R2010b true textscan
removed in a future
release. With
appropriate code
changes, use
'textscan' instead.
DEMDATA Error 'demdataui' has been R2022b true demdataui
UI removed. With (Mapping Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.
DEMLC Error 'emlc' has been R2011a true
removed. With
appropriate code
changes, use
'codegen' instead.
DEMLMEX Error 'emlmex' has been R2011a true
removed. With
appropriate code
changes, use
'codegen' instead.
DEVM Error 'commmeasure.EVM' R2012b true
has been removed.
With appropriate
code changes, use
'comm.EVM' instead.
DEXIFRD Error 'exifread' has been R2006a true
removed. With
appropriate code
changes, use
'imfinfo' instead.

7-82
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DFCNCHK Warning FCNCHK will be R2013a true
removed in a future
release. Use
anonymous functions
instead.
DFEATUR Error 'UseHG2' has been R2016a true
EPARAM1 removed. With
appropriate code
changes, use
'~verLessThan('matl
ab','8.4.0')' instead.
DFEATUR Error 'HGUsingMATLABCl R2016a true
EPARAM2 asses' has been
removed. With
appropriate code
changes, use
'~verLessThan('matl
ab','8.4.0')' instead.
DFIGFLA Warning 'figflag' will be R2007a true
G removed in a future
release. There is no
simple replacement
for this.
DGETST Warning 'getstatus' will be R2007a true
removed in a future
release. There is no
simple replacement
for this.
DGRAPHI Error 'graphicsversion' has R2016a true
CSVER been removed. With
appropriate code
changes, use
'verLessThan('matlab
','8.4.0')' instead.
DILEVAL Warning 'inlineeval' will be R2013b true
removed in a future
release. There is no
simple replacement
for this.
DINLN Warning INLINE will be R2013a true
removed in a future
release. Use
anonymous functions
instead.

7-83
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DISGVER Error 'matlab.graphics.inte R2016a true
rnal.isGraphicsVersio
n1' has been
removed. Use
'verLessThan('matlab
','8.4.0')' instead.
DLDPCDE Error 'fec.ldpcdec' has R2012b true
C been removed. With
appropriate code
changes, use
'comm.LDPCDecoder
' instead.
DLDPCEN Error 'fec.ldpcenc' has R2012b true
C been removed. With
appropriate code
changes, use
'comm.LDPCEncoder
' instead.
DMCHN Error 'mimochan' has been R2013a true
removed. With
appropriate code
changes, use
'comm.MIMOChanne
l' instead.
DMENUL Warning 'menulabel' will be R2007a true
removed in a future
release. There is no
simple replacement
for this.
DMER Error 'commmeasure.MER' R2012b true
has been removed.
With appropriate
code changes, use
'comm.MER' instead.
DMOD Error 'modem.dpskmod' R2018a true
has been removed.
With appropriate
code changes, use
'comm.DPSKModulat
or' instead.
DMSSPEC Warning 'dspdata.msspectrum R2013a true
' will be removed in a
future release. Use
'periodogram' or
'pwelch' instead.

7-84
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DNDLA Error 'discard' has been R2016a true drawnow
removed. There is no
simple replacement
for this.
DNOANI Error 'noanimate' has been R2014b true
removed. There is no
simple replacement
for this.
DOPAJKS Error 'doppler.ajakes' has R2018a true
been removed. With
appropriate code
changes, use
'doppler' instead.
DOPBGSS Error 'doppler.bigaussian' R2018a true
has been removed.
With appropriate
code changes, use
'doppler' instead.
DOPBLL Error 'doppler.bell' has R2018a true
been removed. With
appropriate code
changes, use
'doppler' instead.
DOPFLT Error 'doppler.flat' has R2018a true
been removed. With
appropriate code
changes, use
'doppler' instead.
DOPGSS Error 'doppler.gaussian' R2018a true
has been removed.
With appropriate
code changes, use
'doppler' instead.
DOPJKS Error 'doppler.jakes' has R2018a true
been removed. With
appropriate code
changes, use
'doppler' instead.
DOPRJKS Error 'doppler.rjakes' has R2018a true
been removed. With
appropriate code
changes, use
'doppler' instead.

7-85
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DOPRNDD Error 'doppler.rounded' R2018a true
has been removed.
With appropriate
code changes, use
'doppler' instead.
DPGUPDL Warning 'pagesetupdlg' will R2011a true pagesetupdlg
G be removed in a
future release. With
appropriate code
changes, use
'printpreview'
instead.
DPOOL Error 'matlabpool' has R2014a true parpool (Parallel
been removed. With Computing Toolbox)
appropriate code
changes, use
'parpool' instead.
DPOPUP Warning 'popupstr' will be R2007a true
removed in a future
release. There is no
simple replacement
for this.
DPPSD Warning 'dspdata.psd' will be R2013a true
removed in a future
release. Use 'pburg',
'pcov', 'peig',
'pmcov', 'pmtm',
'periodogram', or
'pwelch' instead.
DPSD Error 'psd' has been R2013a true
removed. Use
'periodogram' or
'pwelch' instead.
DPSPEC Warning 'dspdata.pseudospec R2013a true
trum' will be
removed in a future
release. Use 'pmusic'
or 'peig' instead.
DRNDINT Error 'randint' has been R2012a true
removed. With
appropriate code
changes, use 'randi'
instead.

7-86
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DRSDEC Error 'fec.rsdec' has been R2012b true
removed. With
appropriate code
changes, use
'comm.RSDecoder'
instead.
DRSENC Error 'fec.rsenc' has been R2012b true
removed. With
appropriate code
changes, use
'comm.RSEncoder'
instead.
DSPAUDI Error 'dsp.AudioPlayer' has R2016a true
OPLAY been removed. With
appropriate code
changes, use
'audioDeviceWriter'
instead.
DSPAUDI Error 'dsp.AudioRecorder' R2016a true audioDeviceReade
OREC has been removed. r (Audio Toolbox)
With appropriate
code changes, use
'audioDeviceReader'
instead.
DSPAUTO Error 'dsp.Autocorrelator' R2021a true xcorr
CORR has been removed.
With appropriate
code changes, use
'xcorr' instead.
DSPAVA Error 'dsp.ArrayVectorAdd R2021a true “Certain System
er' has been objects have been
removed. With removed” (DSP
appropriate code System Toolbox)
changes, use '+'
operator instead.
DSPAVD Error 'dsp.ArrayVectorDivi R2021a true “Certain System
der' has been objects have been
removed. With removed” (DSP
appropriate code System Toolbox)
changes, use './'
operator instead.

7-87
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPAVM Error 'dsp.ArrayVectorMult R2021a true “Certain System
iplier' has been objects have been
removed. With removed” (DSP
appropriate code System Toolbox)
changes, use '.*'
operator instead.
DSPAVS Error 'dsp.ArrayVectorSubt R2021a true “Certain System
ractor' has been objects have been
removed. With removed” (DSP
appropriate code System Toolbox)
changes, use '-'
operator instead.
DSPBUFF Error 'dsp.Buffer' has been R2019b true dsp.AsyncBuffer
ER removed. With (DSP System
appropriate code Toolbox)
changes, use
'dsp.AsyncBuffer'
instead.
DSPBURG Error 'dsp.BurgAREstimato R2018b true arburg (Signal
EST r' has been removed. Processing Toolbox)
With appropriate
code changes, use
'arburg' instead.
DSPBURG Error 'dsp.BurgSpectrumE R2018b true pburg (Signal
SPECEST stimator' has been Processing Toolbox)
removed. With
appropriate code
changes, use 'pburg'
instead.
DSPCEP2 Error 'dsp.CepstralToLPC' R2018b true “Certain System
LPC has been removed. objects have been
There is no simple removed” (DSP
replacement for this. System Toolbox)
DSPCONV Error 'dsp.Convolver' has R2021a true conv
been removed. With
appropriate code
changes, use 'conv'
instead.
DSPCTR Error 'dsp.Counter' has R2021a true “Certain System
been removed. objects have been
Create a variable removed” (DSP
and increment by System Toolbox)
one instead.

7-88
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPCUMP Error 'dsp.CumulativeProd R2021a true cumprod
ROD uct' has been
removed. With
appropriate code
changes, use
'cumprod' instead.
DSPCUMS Error 'dsp.CumulativeSum' R2021a true
UM has been removed.
With appropriate
code changes, use
'cumsum' instead.
DSPDCT Error 'dsp.DCT' has been R2018b true dct (Signal
removed. With Processing Toolbox)
appropriate code
changes, use 'dct'
instead.
DSPDELA Error 'dsp.DelayLine' has R2021a true dsp.AsyncBuffer
YLINE been removed. There (DSP System
is no simple Toolbox)
replacement for this.
DSPDF Error 'dsp.DigitalFilter' has R2014b true
been removed. Use
'dsp.FIRFilter',
'dsp.IIRFilter', or
'dsp.AllpoleFilter'
instead.
DSPFDF Error 'DirectFeedthrough' R2018a true
property of
'dsp.VariableFraction
alDelay' class has
been removed.
DSPHIST Error 'dsp.Histogram' has R2019b true histcounts
been removed. With
appropriate code
changes, use
'histogram' or
'histcounts' instead.
DSPIDCT Error 'dsp.IDCT' has been R2018b true idct (Signal
removed. With Processing Toolbox)
appropriate code
changes, use 'idct'
instead.

7-89
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPIDF Error 'DirectFeedthrough' R2018a true
property of
'dsp.VariableInteger
Delay' class has been
removed.
DSPINTE Error 'dsp.Interpolator' has R2021a true dsp.FIRInterpola
RP been removed. With tor (DSP System
appropriate code Toolbox)
changes, use
'dsp.FIRInterpolator'
instead.
DSPKFT Error 'dsp.KalmanFilter' R2021a true “Estimation Filters in
has been removed. Sensor Fusion and
With appropriate Tracking Toolbox”
code changes, use (Sensor Fusion and
the Kalman filter Tracking Toolbox)
functionality in
Sensor Fusion and
Tracking Toolbox
instead.
DSPLDL Error 'dsp.LDLFactor' has R2021a true
been removed. With
appropriate code
changes, use 'ldl'
instead.
DSPLEVI Error 'dsp.LevinsonSolver' R2021a true levinson (Signal
NSON has been removed. Processing Toolbox)
With appropriate
code changes, use
'levinson' instead.
DSPLPC Error 'dsp.LPCToLSP' has R2018b true poly2rc (Signal
been removed. With Processing Toolbox)
appropriate code
changes, use
'cos(poly2lsf)'
instead.
DSPLPC2 Error 'dsp.LPCToAutocorre R2018b true poly2ac (Signal
AUTOCOR lation' has been Processing Toolbox)
R removed. With
appropriate code
changes, use
'poly2ac' instead.
DSPLPC2 Error 'dsp.LPCToCepstral' R2018b true “Certain System
CEP has been removed. objects have been
There is no simple removed” (DSP
replacement for this. System Toolbox)

7-90
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPLPC2 Error 'dsp.LPCToLSF' has R2018b true poly2lsf (Signal
LSF been removed. With Processing Toolbox)
appropriate code
changes, use
'poly2lsf' instead.
DSPLPC2 Error 'dsp.LPCToRC' has R2018b true poly2rc (Signal
RC been removed. With Processing Toolbox)
appropriate code
changes, use
'poly2rc' instead.
DSPLSF2 Error 'dsp.LSFToLPC' has R2018b true lsf2poly (Signal
LPC been removed. With Processing Toolbox)
appropriate code
changes, use
'lsf2poly' instead.
DSPLSP2 Error 'dsp.LSPToLPC' has R2018b true “Certain System
LPC been removed. There objects have been
is no simple removed” (DSP
replacement for this. System Toolbox)
DSPLTS Error 'dsp.LowerTriangula R2021a true mldivide
rSolver' has been
removed. With
appropriate code
changes, use
'mldivide' function or
'\' operator instead.
DSPLU Error 'dsp.LUFactor' has R2021a true lu
been removed. With
appropriate code
changes, use 'lu'
instead.
DSPMAX Error 'dsp.Maximum' has R2019b true max
been removed. With
appropriate code
changes, use 'max'
instead.
DSPMEAN Error 'dsp.Mean' has been R2019b true mean
removed. With
appropriate code
changes, use 'mean'
instead.
DSPMEDI Error 'dsp.Median' has R2019b true median
AN been removed. With
appropriate code
changes, use
'median' instead.

7-91
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPMIN Error 'dsp.Minimum' has R2019b true min
been removed. With
appropriate code
changes, use 'min'
instead.
DSPNORM Error 'dsp.Normalizer' has R2018b true normalize
been removed. With
appropriate code
changes, use
'normalize' or
'vecnorm' instead.
DSPPARA Error 'dsp.ParametricEQFil R2016a true designParamEQ
MEQ ter' has been (Audio Toolbox)
removed. With
appropriate code
changes, use
'designParamEQ' or
'MultibandParametri
cEQ' instead.
DSPPEAK Error 'dsp.PeakToPeak' has R2021a true peak2peak (Signal
2PEAK been removed. With Processing Toolbox)
appropriate code
changes, use
'peak2peak' instead.
DSPPEAK Error 'dsp.PeakFinder' has R2019b true findpeaks (Signal
S been removed. With Processing Toolbox)
appropriate code
changes, use
'findpeaks' instead.
DSPPMS Error 'dsp.PulseMetrics' R2021a true dutycycle (Signal
has been removed. Processing Toolbox)
With appropriate
code changes, use
'dutycycle',
'midcross',
'pulseperiod',
'pulsesep' or
'pulsewidth' instead.
DSPRC2A Error 'dsp.RCToAutocorrel R2018b true rc2ac (Signal
UTOCORR ation' has been Processing Toolbox)
removed. With
appropriate code
changes, use 'rc2ac'
instead.

7-92
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPRC2L Error 'dsp.RCToLPC' has R2018b true rc2poly (Signal
PC been removed. With Processing Toolbox)
appropriate code
changes, use
'rc2poly' instead.
DSPRMS Error 'dsp.RMS' has been R2019b true rms
removed. With
appropriate code
changes, use 'rms'
instead.
DSPSA Warning 'dsp.SpectrumAnalyz R2022a true
er' will be removed
in a future release.
Use
'spectrumAnalyzer'
instead, which is a
direct replacement.
DSPSCAL Error 'dsp.ScalarQuantizer R2021a true “Certain System
ARQUANT Decoder' has been objects have been
DEC removed. There is no removed” (DSP
simple replacement System Toolbox)
for this.
DSPSCAL Error 'dsp.ScalarQuantizer R2021a true “Certain System
ARQUANT Encoder' has been objects have been
ENC removed. There is no removed” (DSP
simple replacement System Toolbox)
for this.
DSPSTAT Error 'dsp.StateLevels' has R2021a true statelevels
ELVLS been removed. With (Signal Processing
appropriate code Toolbox)
changes, use
'statelevels' instead.
DSPSTD Error 'dsp.StandardDeviati R2019b true std
on' has been
removed. With
appropriate code
changes, use 'std'
instead.

7-93
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPTMS Error 'dsp.TransitionMetri R2021a true falltime (Signal
cs' has been Processing Toolbox)
removed. With
appropriate code
changes, use
'falltime', 'overshoot',
'risetime',
'settlingtime',
'slewrate' or
'undershoot' instead.
DSPTS Warning 'dsp.TimeScope' will R2020b true
be removed in a
future release. Use
'timescope' instead,
which is a direct
replacement.
DSPUNID Error 'dsp.UniformDecoder R2021a true
EC ' has been removed.
With appropriate
code changes, use
'udecode' instead.
DSPUNIE Error 'dsp.UniformEncoder R2021a true
NC ' has been removed.
With appropriate
code changes, use
'uencode' instead.
DSPUTS Error 'dsp.UpperTriangula R2021a true mldivide
rSolver' has been
removed. With
appropriate code
changes, use
'mldivide' function or
'\' operator instead.
DSPVAR Error 'dsp.Variance' has R2019b true var
been removed. With
appropriate code
changes, use 'var'
instead.
DSPVECQ Error 'dsp.VectorQuantizer R2021a true “Certain System
UANTDEC Decoder' has been objects have been
removed. There is no removed” (DSP
simple replacement System Toolbox)
for this.

7-94
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DSPVECQ Error 'dsp.VectorQuantizer R2021a true “Certain System
UANTENC Encoder' has been objects have been
removed. There is no removed” (DSP
simple replacement System Toolbox)
for this.
DSPWIN Error 'dsp.Window' has R2021a true “Get Started with
been removed. With Window Designer”
appropriate code (Signal Processing
changes, use Toolbox)
'window' instead.
DSPXCOR Error 'dsp.Crosscorrelator' R2021a true xcorr
R has been removed.
With appropriate
code changes, use
'xcorr' instead.
DSP_LIN Warning 'dsp_links' will be R2024a true dsp_links (DSP
KS removed in a future System Toolbox)
release. There is no
simple replacement
for this.
DUIGET Warning 'uigettoolbar' will be R2007a true
removed in a future
release. There is no
simple replacement
for this.
DWVFINF Error 'wavfinfo' has been R2013a true
removed. With
appropriate code
changes, use
'audioinfo' instead.
DWVRD Error 'wavread' has been R2013a true
removed. With
appropriate code
changes, use
'audioread' instead.
DWVWR Error 'wavwrite' has been R2013a true
removed. With
appropriate code
changes, use
'audiowrite' instead.
EASTF Error 'eastof' has been R2009b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use 'mod' functions have been
instead. removed” (Mapping
Toolbox)

7-95
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ECF2LV Error 'ecef2lv' has been R2012b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'ecef2enu' instead. functions have been
removed” (Mapping
Toolbox)
EGMGD Error 'egm96geoid(SAMPL R2021a true egm96geoid
EFACTOR,...)' has (Mapping Toolbox)
been removed. With
appropriate code
changes, use
'egm96geoid(R)'
instead, where R is a
geographic raster
reference object.
EITYCN Error feature('EightyColum R2021a true “Using
ns') and feature('EightyColum
feature('EightyColum ns') to access and
ns', VALUE) are change Command
unsupported and Window display
have been removed. width is not
With appropriate recommended”
code changes, use
'settings' object
instead.
ELEVT Error 'elevation' has been R2012b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'geodetic2aer' functions have been
instead. removed” (Mapping
Toolbox)
EPSM Error 'epsm' has been R2013a true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use '1.0E-6' geometric geodesy
or 'deg2rad(1.0E-6)' functions have been
instead. removed” (Mapping
Toolbox)
ETOPO Error 'etopo' has been R2020a true etopo (Mapping
removed. With Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.

7-96
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
EWMAPLO Error 'ewmaplot' has been R2015a true
T removed. With
appropriate code
changes, use
'controlchart'
instead.
EYESCOP Error 'eyescope' has been R2017a true
E removed. There is no
simple replacement
for this.
FAFD Error 'farrow.fd' has been R2008a true
removed. With
appropriate code
changes, use
'dfilt.farrowfd'
instead.
FALFD Error 'farrow.linearfd' has R2008a true
been removed. With
appropriate code
changes, use
'dfilt.farrowlinearfd'
instead.
FBUILDE Warning 'filterbuilder' will be R2017a true
R removed in a future
release. Use
'filterBuilder'
instead, which is a
direct replacement.
FDATOOL Warning 'fdatool' will be R2016b true
removed in a future
release. Use
'filterDesigner'
instead, which is a
direct replacement.
FDDECI1 Error The 'Raised Cosine' R2021b true
response method of
'fdesign.decimator'
object has been
removed. With
appropriate code
changes use
'comm.RaisedCosine
ReceiveFilter' object
instead.

7-97
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FDDECI2 Error The 'Square Root R2021b true
Raised Cosine'
response method of
'fdesign.decimator'
object has been
removed. With
appropriate code
changes use
'comm.RaisedCosine
ReceiveFilter' object
instead.
FDESOCT Error 'fdesign.octave' has R2016a true octaveFilter
AVE been removed. With (Audio Toolbox)
appropriate code
changes, use
'octaveFilter'
instead.
FDESPAR Error 'fdesign.parameq' R2016a true designParamEQ
AMEQ has been removed. (Audio Toolbox)
With appropriate
code changes, use
'designParamEQ'
instead.
FDESPUL Error 'fdesign.pulseshapin R2016a true rcosdesign (Signal
SESH g' has been removed. Processing Toolbox)
With appropriate
code changes, use
'rcosdesign' or
'gaussdesign'
instead.
FDESWEI Error 'fdesign.audioweighti R2016a true weightingFilter
GHT ng' has been (Audio Toolbox)
removed. With
appropriate code
changes, use
'weightingFilter'
instead.
FDINPO1 Error The 'Raised Cosine' R2021b true
response method of
'fdesign.interpolator'
object has been
removed. With
appropriate code
changes use
'comm.RaisedCosine
TransmitFilter'
object instead.

7-98
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FDINPO2 Error The 'Square Root R2021b true
Raised Cosine'
response method of
'fdesign.interpolator'
object has been
removed. With
appropriate code
changes use
'comm.RaisedCosine
TransmitFilter'
object instead.
FEGLO Error 'global' has been R2015b true feval
removed. There is no
simple replacement
for this.
FGREM Warning 'RendererMode' will R2022b true “The Renderer
be removed in a property of figures
future release. There will have no effect”
is no simple
replacement for this.
FGREN Warning 'Renderer' will be R2022b true “The Renderer
removed in a future property of figures
release. There is no will have no effect”
simple replacement
for this.
FINSI Error Support for R2016a true
'inputname' in a
script has been
removed.
FINSNI Error Support for 'nargin' R2016a true
in a script has been
removed.
FINSNO Error Support for 'nargout' R2016a true
in a script has been
removed.
FISADV Error 'addvar' has been R2018b true
removed. With
appropriate code
changes, use
'addInput' or
'addOutput' instead.
FISGET Error 'getfis' has been R2018b true
removed. Access FIS
properties using dot
notation instead.

7-99
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FISM2M Error 'mf2mf' has been R2018b true
removed. Convert
membership
functions using dot
notation on 'fismf'
objects instead.
FISM2S Error 'mam2sug' has been R2018b true
removed. Use
'convertToSugeno'
instead, which is a
direct replacement.
FISNEW Error 'newfis' has been R2018b true
removed. With
appropriate code
changes, use
'mamfis' or 'sugfis'
instead.
FISPSR Error 'parsrule' has been R2018b true
removed. With
appropriate code
changes, use
'addRule' or 'fisrule'
instead.
FISRMF Error 'rmmf' has been R2018b true
removed. With
appropriate code
changes, use
'removeMF' instead.
FISRMV Error 'rmvar' has been R2018b true
removed. With
appropriate code
changes, use
'removeInput' or
'removeOutput'
instead.
FISSET Error 'setfis' has been R2018b true
removed. Set FIS
properties using dot
notation instead.
FISSHW Error 'showfis' has been R2018b true
removed. View FIS
properties using dot
notation instead.

7-100
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FITNAIV Error 'fitNaiveBayes' has R2015a true
EBAYES been removed. With
appropriate code
changes, use 'fitcnb'
instead.
FPRENAM Warning Input argument R2013a true “Toolbox folders
E 'fixpoint' will be renamed: Old names
removed in a future will be removed”
release. Use
'fixedpoint' instead.
FPSNM Error 'fipsname' has been R2013b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'readgeotable' removed” (Mapping
instead. Toolbox)
FROPT Error '-dill' has been R2009b true
removed. Use
Encapsulated
PostScript instead.
FROPTX Error '-adobecset' has been R2009b true
removed. There is no
simple replacement
for this.
G2B Error 'gray2bin' has been R2020a true
removed. Use the
appropriate
modulation object or
function to remap
constellation points
instead.
GD2AT Error 'geod2aut' has been R2013b true map.geodesy.Auth
removed. With alicLatitudeConv
appropriate code erter (Mapping
changes, use Toolbox)
'map.geodesy.Authali
cLatitudeConverter'
instead.
GD2CF Error 'geod2cnf' has been R2013b true map.geodesy.Conf
removed. With ormalLatitudeCon
appropriate code verter (Mapping
changes, use Toolbox)
'map.geodesy.Confor
malLatitudeConverte
r' instead.

7-101
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
GD2CN Error 'geod2cen' has been R2013b true geocentricLatitu
removed. With de (Mapping
appropriate code Toolbox)
changes, use
'geocentricLatitude'
instead.
GD2IS Error 'geod2iso' has been R2013b true map.geodesy.Isom
removed. With etricLatitudeCon
appropriate code verter (Mapping
changes, use Toolbox)
'map.geodesy.Isomet
ricLatitudeConverter
' instead.
GD2PR Error 'geod2par' has been R2013b true parametricLatitu
removed. With de (Mapping
appropriate code Toolbox)
changes, use
'parametricLatitude'
instead.
GD2RC Error 'geod2rec' has been R2013b true map.geodesy.Rect
removed. With ifyingLatitudeCo
appropriate code nverter (Mapping
changes, use Toolbox)
'map.geodesy.Rectify
ingLatitudeConverte
r' instead.
GDEMOD Error 'modem.genqamdem R2018a true
od' has been
removed. With
appropriate code
changes, use
'genqamdemod' or
'comm.GeneralQAM
Demodulator'
instead.
GETERR Error The 'ErrorMessage' R2017a true MException.last
property has been
removed. At the
command line, use
'MException.last'
instead.
GLDEM Error 'globedem' has been R2020a true globedem (Mapping
removed. With Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.

7-102
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
GLT2GTR Error 'geodetic2geocentric R2013b true “Some file import,
Lat' has been map display, data
removed. With analysis, and
appropriate code geometric geodesy
changes, use functions have been
'geocentricLatitude' removed” (Mapping
instead. Toolbox)
GMOD Error 'modem.genqammod' R2018a true
has been removed.
With appropriate
code changes, use
'genqammod' or
'comm.GeneralQAM
Modulator' instead.
GPIB Warning 'gpib' will be R2021b true “Transition Your
removed in a future Code to VISA-GPIB
release. With Interface”
appropriate code (Instrument Control
changes, use Toolbox)
'visadev' instead.
GRAYMON Warning 'graymon' will be R2017a true graymon
removed in a future
release. There is no
simple replacement
for this.
GREPF Error 'grepfields' has been R2014b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'textscan' instead. removed” (Mapping
Toolbox)
GTOPO Error 'gtopo30' has been R2020a true gtopo30 (Mapping
removed. With Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.
GTR2GLT Error 'geocentric2geodetic R2013b true “Some file import,
Lat' has been map display, data
removed. With analysis, and
appropriate code geometric geodesy
changes, use functions have been
'geodeticLatitudeFro removed” (Mapping
mGeocentric' Toolbox)
instead.

7-103
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
GTSEED Error 'getseeds' has been R2013b true “Some file import,
removed. There is no map display, data
simple replacement analysis, and
for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
H5PGET Error 'H5P.get_dxpl_multi' R2015a true
has been removed.
There is no simple
replacement for this.
H5PSET Error 'H5P.set_dxpl_multi' R2015a true
has been removed.
There is no simple
replacement for this.
HAND2ST Warning 'handle2struct' will R2024b true
CT be removed in a
future release. There
is no simple
replacement for this.
HANK2SY Error 'hank2sys' has been R2020b true
S removed. There is no
simple replacement
for this.
HDFGD Error 'hdfgd' has been R2014b true matlab.io.hdfeos
removed. With .gd
appropriate code
changes, use
'matlab.io.hdfeos.gd'
instead.
HDFSD Error 'hdfsd' has been R2014b true matlab.io.hdf4.s
removed. With d
appropriate code
changes, use
'matlab.io.hdfeos.sd'
instead.
HDFSW Error 'hdfsw' has been R2014b true matlab.io.hdfeos
removed. With .sw
appropriate code
changes, use
'matlab.io.hdfeos.sw'
instead.
HDFTL Error 'hdftool' has been R2019a true
removed. There is no
simple replacement
for this.

7-104
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
HESSM Error 'InitialHessMatrix' R2014b true fminunc
has been removed. (Optimization
There is no simple Toolbox)
replacement for this.
HESST Error 'InitialHessType' has R2014b true fminunc
been removed. There (Optimization
is no simple Toolbox)
replacement for this.
HGEXPOR Warning 'hgexport' will be R2024a true hgexport
T removed in a future
release. With
appropriate code
changes, use 'print'
instead.
HGSAVE Warning 'hgsave' will be R2024b true hgsave
removed in a future
release. Use 'savefig'
instead, which is a
direct replacement.
HHCNA Error Input argument R2020b true
'North America' has
been removed. Use
'hrn:here:data::olp-
here-had:here-hdlm-
protobuf-na-2'
instead.
HHCWE Error Input argument R2020b true
'Western Europe' has
been removed. Use
'hrn:here:data::olp-
here-had:here-hdlm-
protobuf-weu-2'
instead.
HILBIIR Error 'hilbiir' has been R2020b true
removed. With
appropriate code
changes, use
'fdesign.hilbert' or
'hilbert' instead.
HOLDALL Info 'hold('all')' is not R2024b true hold
recommended. Use
'hold('on')' instead,
which is a direct
replacement.

7-105
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
HPFLTR Error Positional syntax for R2024a true hpfilter
optional arguments (Econometrics
has been removed Toolbox)
from 'hpfilter'. Use
name-value pairs
instead.
I2CFUN Warning 'i2c' will be removed R2024a true “I2C Interface: New
in a future release. functions and
With appropriate properties”
code changes, use (Instrument Control
'device' method of Toolbox)
'ni845x' or 'aardvark'
instead.
IMAGEVW Error 'imageview' has been R2024a true
removed. Use
'imshow' instead,
which is a direct
replacement.
IMCLASS Warning In a future release, R2019a true “ismethod Function:
'ismethod' will treat String and character
a string or character vector in first input
vector in its first argument will be
input as a 'string' or treated as object”
'char' class object.
Pass an object to
'ismethod' or use
any(strcmp('method
Name',
methods('ClassName
'))) instead.
IMJAV Warning 'im2java2d' will be R2020a true “The im2java
removed in a future function will be
release. There is no removed”
simple replacement
for this.
IMJAVA Warning 'im2java' will be R2022a true “The im2java
removed in a future function will be
release. There is no removed”
simple replacement
for this.
IMPIVD Warning Malformed import R2023b true import
argument
VAR_NAME will not
be supported in a
future release.

7-106
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
IMPKEY Warning Importing R2023b true import
VAR_NAME will not
be supported in a
future release
because VAR_NAME
is a reserved word.
IMPORTD Warning In a future release, R2018a true
YN IMPORT will not
accept variable
names, function
calls, or operators.
Use literal char
vectors instead.
IMTOOL Warning 'imtool' will be R2023b true imtool (Image
removed in a future Processing Toolbox)
release. With
appropriate code
changes, use
'imageViewer'
instead.
INDWT Error 'indwt' has been R2015a true
removed. With
appropriate code
changes, use
'imodwt' instead.
INDWT2 Error 'indwt2' has been R2015a true
removed. With
appropriate code
changes, use 'iswt2'
instead.
INSTCA Warning 'instrcallback' will be R2022a true
removed in a future
release. There is no
simple replacement
for this.
INSTFA Warning 'instrfindall' will be R2022a true
removed in a future
release. With
appropriate code
changes, use
'serialportfind',
'tcpclientfind',
'tcpserverfind',
'udpportfind',
'visadevfind',
'aardvarkfind', or
'ni845xfind' instead.

7-107
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
INSTHWB Warning 'instrhwinfo('bluetoot R2020b true “Bluetooth Interface:
h',...)' will be New functions and
removed in a future properties with
release. With improved
appropriate code performance”
changes, use (Instrument Control
'bluetoothlist' Toolbox)
instead.
INSTHWG Warning 'instrhwinfo('gpib')' R2021b true “Transition Your
will be removed in a Code to VISA-GPIB
future release. With Interface”
appropriate code (Instrument Control
changes, use Toolbox)
'visadevlist' instead.
INSTHWI Warning 'instrhwinfo('i2c')' R2024a true “I2C Interface: New
2C will be removed in a functions and
future release. With properties”
appropriate code (Instrument Control
changes, use Toolbox)
'ni845xlist' or
'aardvarklist'
instead.
INSTHWS Warning 'instrhwinfo('serial')' R2021a true “Serial Port
will be removed in a Interface: New
future release. With functions and
appropriate code properties”
changes, use (Instrument Control
'serialportlist' Toolbox)
instead.
INSTHWS Warning 'instrhwinfo('serialpo R2021a true “Serial Port
P rt')' will be removed Interface: New
in a future release. functions and
With appropriate properties”
code changes, use (Instrument Control
'serialportlist' Toolbox)
instead.
INSTHWT Warning 'instrhwinfo('tcpip')' R2020b true “TCP/IP Client
will be removed in a Interface: New
future release. There functions and
is no simple properties with
replacement for this. improved
performance”
(Instrument Control
Toolbox)

7-108
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
INSTHWU Warning 'instrhwinfo('udp')' R2020b true “UDP Interface: New
will be removed in a functions and
future release. There properties with
is no simple improved
replacement for this. performance”
(Instrument Control
Toolbox)
INSTHWV Warning 'instrhwinfo('visa')' R2021a true “VISA Interface:
will be removed in a New functions and
future release. With properties”
appropriate code (Instrument Control
changes, use Toolbox)
'visadevlist' instead.
INSTRF Warning 'instrfind' will be R2022a true
removed in a future
release. With
appropriate code
changes, use
'serialportfind',
'tcpclientfind',
'tcpserverfind',
'udpportfind',
'visadevfind',
'aardvarkfind', or
'ni845xfind' instead.
INSTRH Warning 'instrhelp' will be R2022a true
removed in a future
release. Use 'help'
instead, which is a
direct replacement.
INSTRN Warning 'instrnotify' will be R2022a true
removed in a future
release. There is no
simple replacement
for this.

7-109
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
INSTRR Warning 'instrreset' will be R2022a true
removed in a future
release. With
appropriate code
changes, use
'delete(serialportfind
)',
'delete(tcpclientfind)'
,
'delete(tcpserverfind
)',
'delete(udpportfind)',
'delete(visadevfind)',
'delete(aardvarkfind)
', or
'delete(ni845xfind)'
instead.
IS2GD Error 'iso2geod' has been R2013b true map.geodesy.Isom
removed. With etricLatitudeCon
appropriate code verter (Mapping
changes, use Toolbox)
'map.geodesy.Isomet
ricLatitudeConverter
' instead.
ISGLOB Error 'isglobal' has been R2007b true
removed. There is no
simple replacement
for this.
IVIDC Warning 'instrument.ivic.IviD R2022a true “IVI-C class-
CPwr' will be compliant wrappers
removed in a future will be removed”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'ividev'
instead.
IVIDM Warning 'instrument.ivic.IviD R2022a true “IVI-C class-
mm' will be removed compliant wrappers
in a future release. will be removed”
With appropriate (Instrument Control
code changes, use Toolbox)
'ividev' instead.
IVIFG Warning 'instrument.ivic.IviFg R2022a true “IVI-C class-
en' will be removed compliant wrappers
in a future release. will be removed”
With appropriate (Instrument Control
code changes, use Toolbox)
'ividev' instead.

7-110
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
IVIPW Warning 'instrument.ivic.IviP R2022a true “IVI-C class-
wrMeter' will be compliant wrappers
removed in a future will be removed”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'ividev'
instead.
IVIRF Warning 'instrument.ivic.IviR R2022a true “IVI-C class-
FSigGen' will be compliant wrappers
removed in a future will be removed”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'ividev'
instead.
IVISC Warning 'instrument.ivic.IviSc R2022a true “IVI-C class-
ope' will be removed compliant wrappers
in a future release. will be removed”
With appropriate (Instrument Control
code changes, use Toolbox)
'ividev' instead.
IVISP Warning 'instrument.ivic.IviSp R2022a true “IVI-C class-
ecAn' will be compliant wrappers
removed in a future will be removed”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'ividev'
instead.
IVISW Warning 'instrument.ivic.IviS R2022a true “IVI-C class-
wtch' will be compliant wrappers
removed in a future will be removed”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'ividev'
instead.
JAPIMAT Warning 'com.mathworks' R2020b true “Undocumented
HWORKS namespace and sub com.mathworks Java
namespaces will be packages to be
removed in a future removed”
release. There is no
simple replacement
for this.
JAVCM Warning 'javacomponent' is R2019b true “javacomponent
undocumented and function and
will be removed in a JavaFrame property
future release. There will be removed in a
is no simple future release”
replacement for this.

7-111
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAVCT Warning 'JavaContainer' is R2020a true “JavaContainer
undocumented and property will be
will be removed in a removed in a future
future release. There release”
is no simple
replacement for this.
JAVFM Warning 'JavaFrame' is R2019b true “javacomponent
undocumented and function and
will be removed in a JavaFrame property
future release. There will be removed in a
is no simple future release”
replacement for this.
LABELVO Warning 'labelvolshow' will be R2022a true labelvolshow
L removed in a future (Image Processing
release. With Toolbox)
appropriate code
changes, use
'volshow' instead.
LATLON2 Error 'latlon2pix' has been R2021b true latlon2pix
PIX removed. With (Mapping Toolbox)
appropriate code
changes, use
'geographicToIntrinsi
c' instead.
LDPCD Warning 'comm.LDPCDecoder R2021b true
' will be removed in a
future release. With
appropriate code
changes, use
'ldpcDecode' instead.
LDPCE Warning 'comm.LDPCEncoder R2021b true
' will be removed in a
future release. With
appropriate code
changes, use
'ldpcEncode' instead.
LEGCHN Error 'legacychannelsim' R2018a true
has been removed.
There is no simple
replacement for this.

7-112
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
LIMIM Error 'limitm' has been R2021a true limitm (Mapping
removed. With Toolbox)
appropriate code
changes, use
'LatitudeLimits' and
'LongitudeLimits'
properties of a
geographic raster
reference object
instead.
LINPROG Error 'active-set' algorithm R2013a true
A for 'linprog' solver
has been removed.
With appropriate
code changes, set
'Algorithm' value to
'interior-point' or
'dual-simplex'
instead.
LINPROG Error 'simplex' algorithm R2013a true
S has been removed.
With appropriate
code changes, set
'Algorithm' value to
'interior-point' or
'dual-simplex'
instead.
LKBLNK Error 'leadblnk' has been R2013b true
removed. With
appropriate code
changes, use
'strtrim' instead.
LSRET Error 'LaserReturns' has R2022a true
been removed. Use
'LaserReturn'
instead, which is a
direct replacement.
LTEFS Error 'ltehdlFramesToSam R2020a true
ples' has been
removed. Use
'whdlFramesToSampl
es' instead, which is
a direct replacement.

7-113
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
LTESF Error 'ltehdlSamplesToFra R2020a true
mes' has been
removed. Use
'whdlSamplesToFram
es' instead, which is
a direct replacement.
LTLNV Error 'ltln2val' has been R2020b true ltln2val (Mapping
removed. With Toolbox)
appropriate code
changes, use
'geointerp' instead.
LV2ECF Error 'lv2ecef' has been R2012b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'enu2ecef' instead. functions have been
removed” (Mapping
Toolbox)
MAARMT Error 'areamat' with R2022b true areamat (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MACT3M Error 'contour3m' with R2022b true contour3m
referencing matrix or (Mapping Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.

7-114
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MACTFM Error 'contourfm' with R2022b true contourfm
referencing matrix or (Mapping Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MACTRM Error 'contourm' with R2022b true contourm (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAFDM Error 'findm' with R2022b true findm (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAFLTM Error 'filterm' with R2022b true filterm (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.

7-115
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MAG2I Error 'grid2image' with R2023b true grid2image
referencing matrix or (Mapping Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAGRDNT Error 'gradientm' with R2022b true gradientm
referencing matrix or (Mapping Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAGTFW Error 'geotiffwrite' with R2022b true geotiffwrite
referencing matrix or (Mapping Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAIMBED Error 'imbedm' with R2022b true imbedm (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.

7-116
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MALOS2 Error 'los2' with R2022b true los2 (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MANORG Error 'neworig' with R2022b true neworig (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAOUTL Error 'mapoutline' with R2022b true mapoutline
referencing matrix (Mapping Toolbox)
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAP2PIX Error 'map2pix' has been R2021b true map2pix (Mapping
removed. With Toolbox)
appropriate code
changes, use
'worldToIntrinsic'
instead.
MAPBX Error 'mapbbox' has been R2021a true mapbbox (Mapping
removed. With Toolbox)
appropriate code
changes, use
'XWorldLimits' and
'YWorldLimits'
properties of a map
raster reference
object instead.

7-117
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MAPFIL Error 'mapprofile' with R2022b true mapprofile
referencing matrix or (Mapping Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAPTM Error 'maptrims' has been R2020b true maptrims (Mapping
removed. With Toolbox)
appropriate code
changes, use
'geocrop' instead.
MAPTOOL Error 'maptool' has been R2022b true maptool (Mapping
removed. There is no Toolbox)
simple replacement
for this.
MAPTRIM Error 'maptrim' has been R2022b true maptrim (Mapping
removed. With Toolbox)
appropriate code
changes, use
'geocrop' or 'geoclip'
instead.
MAPVW Error 'mapview' has been R2022a true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'mapshow' instead. functions have been
removed” (Mapping
Toolbox)
MASHL Error 'meshlsrm' with R2022b true meshlsrm (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.

7-118
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MASHM Error 'meshm' with R2022b true meshm (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MATDEIN Error 'comm.MatrixDeinter R2019b true
T leaver' has been
removed. With
appropriate code
changes, use
'matdeintrlv' instead.
MATHSDE Error 'comm.MatrixHelical R2019b true
INT ScanDeinterleaver'
has been removed.
With appropriate
code changes, use
'helscandeintrlv'
instead.
MATHSIN Error 'comm.MatrixHelical R2019b true
T ScanInterleaver' has
been removed. With
appropriate code
changes, use
'helscanintrlv'
instead.
MATINT Error 'comm.MatrixInterle R2019b true
aver' has been
removed. With
appropriate code
changes, use
'matintrlv' instead.
MATPOOL Error 'matlabpool' has R2014a true batch (Parallel
been removed. Use Computing Toolbox)
'pool' instead.

7-119
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MAVC2MX Error 'vec2mtx' with R2022b true vec2mtx (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAVWSH Error 'viewshed' with R2022b true viewshed (Mapping
referencing matrix or Toolbox)
referencing vector
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MAWFW Error 'worldfilewrite' with R2022b true worldfilewrite
referencing matrix (Mapping Toolbox)
has been removed.
With appropriate
code changes, use a
geographic or map
raster reference
object as input
instead.
MCASCAD Warning 'mfilt.cascade' will be R2015b true mfilt.cascade
E removed in a future (DSP System
release. With Toolbox)
appropriate code
changes, use
'dsp.FilterCascade'
instead.
MCATP Error Using an @ sign to R2019b true
specify a class
property restriction
is unsupported and
has been removed.
Use property
validation syntax
instead.

7-120
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCDECIM Warning 'mfilt.cicdecim' will R2015b true mfilt.cicdecim
be removed in a (DSP System
future release. With Toolbox)
appropriate code
changes, use
'dsp.CICDecimator'
instead.
MCGCP Error Defining a get R2017a true
method for a
constant property is
not supported.
MCINTER Error 'mfilt.cicinterp' has R2015b true mfilt.cicinterp
P been removed. With (DSP System
appropriate code Toolbox)
changes, use
'dsp.CICInterpolator'
instead.
MCPDC Error Specifying both the R2011b true “Table of Property
'Constant' and Attributes”
'Dependent'
attributes on the
same property is not
supported.
MDEMOD Error 'modem.mskdemod' R2018a true
has been removed.
With appropriate
code changes, use
'comm.MSKDemodul
ator' or 'mskdemod'
instead.
MDTED Warning 'dted' will be R2020a true dted (Mapping
removed in a future Toolbox)
release. With
appropriate code
changes, use
'readgeoraster'
instead.
MESHGRA Error 'meshgrat' has been R2021a true meshgrat (Mapping
T removed. With Toolbox)
appropriate code
changes, use
'geographicGrid',
'linspace' or 'ndgrid'
instead.

7-121
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MEXTM Error 'extractm' has been R2013b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
geospatial tables functions have been
instead. removed” (Mapping
Toolbox)
MFARROW Error 'mfilt.farrowsrc' has R2015b true mfilt.farrowsrc
been removed. With (DSP System
appropriate code Toolbox)
changes, use
'dsp.FarrowRateCon
verter' instead.
MFDECIM Warning 'mfilt.firdecim' will R2015b true mfilt.firdecim
be removed in a (DSP System
future release. With Toolbox)
appropriate code
changes, use
'dsp.FIRDecimator'
instead.
MFFDCM Error 'mfilt.firfracdecim' R2010a true
has been removed.
With appropriate
code changes, use
'dsp.FIRRateConvert
er' instead.
MFFINTR Error 'mfilt.firfracinterp' R2010a true
P has been removed.
With appropriate
code changes, use
'dsp.FIRRateConvert
er' instead.
MFFTFIN Error 'mfilt.fftfirinterp' has R2015b true mfilt.fftfirinte
TERP been removed. With rp (DSP System
appropriate code Toolbox)
changes, use
'dsp.FIRInterpolator'
instead.
MFINTER Error 'mfilt.firinterp' has R2015b true mfilt.firinterp
P been removed. With (DSP System
appropriate code Toolbox)
changes, use
'dsp.FIRInterpolator'
instead.

7-122
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MFSRC Warning 'mfilt.firsrc' will be R2015b true mfilt.firsrc (DSP
removed in a future System Toolbox)
release. With
appropriate code
changes, use
'dsp.FIRRateConvert
er' instead.
MFTDECI Warning 'mfilt.firtdecim' will R2015b true mfilt.firtdecim
M be removed in a (DSP System
future release. With Toolbox)
appropriate code
changes, use
'dsp.FIRDecimator'
instead.
MFWDT Warning 'mfwdtran' will be R2020b true mfwdtran (Mapping
removed in a future Toolbox)
release. With
appropriate code
changes, use
'projfwd' instead.
MHINTER Error 'mfilt.holdinterp' has R2015b true mfilt.holdinterp
P been removed. With (DSP System
appropriate code Toolbox)
changes, use
'dsp.CICInterpolator'
instead.
MIDECIM Warning 'mfilt.iirdecim' will R2015b true mfilt.iirdecim
be removed in a (DSP System
future release. With Toolbox)
appropriate code
changes, use
'dsp.IIRHalfbandDeci
mator' instead.
MIDTT Warning 'midtest' will be R2022a true
removed in a future
release. There is no
simple replacement
for this.
MIEIT Warning 'midedit' will be R2022a true
removed in a future
release. There is no
simple replacement
for this.

7-123
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MIINTER Error 'mfilt.iirinterp' has R2015b true mfilt.iirinterp
P been removed. With (DSP System
appropriate code Toolbox)
changes, use
'dsp.IIRHalfbandInte
rpolator' instead.
MINVT Warning 'minvtran' will be R2020b true minvtran (Mapping
removed in a future Toolbox)
release. With
appropriate code
changes, use
'projinv' instead.
MIWDFDE Warning 'mfilt.iirwdfdecim' R2015b true mfilt.iirwdfdeci
CIM will be removed in a m (DSP System
future release. With Toolbox)
appropriate code
changes, use
'dsp.IIRHalfbandDeci
mator' instead.
MIWDFIN Warning 'mfilt.iirwdfinterp' R2015b true mfilt.iirwdfinte
TERP will be removed in a rp (DSP System
future release. With Toolbox)
appropriate code
changes, use
'dsp.IIRHalfbandInte
rpolator' instead.
MKMAP Error 'makemapped' has R2013b true “Some file import,
been removed. There map display, data
is no simple analysis, and
replacement for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
MKMID Warning 'makemid' will be R2022a true
removed in a future
release. There is no
simple replacement
for this.

7-124
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MKRMT Error 'makerefmat' has R2021a true makerefmat
been removed. With (Mapping Toolbox)
appropriate code
changes, construct a
raster reference
object using
'georefcells',
'georefpostings',
'georasterref',
'maprefcells',
'maprefpostings' or
'maprasterref'
instead.
MLINTER Error 'mfilt.linearinterp' R2015b true mfilt.linearinte
P has been removed. rp (DSP System
With appropriate Toolbox)
code changes, use
'dsp.CICInterpolator'
instead.
MLYER Error 'mlayers' has been R2014a true “Some file import,
removed. There is no map display, and
simple replacement angle wrapping
for this. functions have been
removed” (Mapping
Toolbox)
MMOD Error 'modem.mskmod' has R2018a true
been removed. With
appropriate code
changes, use
'comm.MSKModulato
r' or 'mskmod'
instead.
MOBJS Error 'mobjects' has been R2013b true “Some file import,
removed. There is no map display, data
simple replacement analysis, and
for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
MOVIE2 Error 'movie2avi' has been R2014b true
removed. With
appropriate code
changes, use
'VideoWriter'
instead.

7-125
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MOVIEVW Error 'movieview' has been R2024a true VideoReader
removed. Use
'implay' instead,
which is a direct
replacement.
MSYSTEM Error matlab.system.Syste R2012a true
m has been removed.
Use matlab.System
instead.
MTHDPOO Error 'parcluster.matlabpo R2014a true parpool (Parallel
L ol' has been Computing Toolbox)
removed. With
appropriate code
changes, use
'parpool' instead.
MUPAD Error 'mupad' has been R2018a true
removed. With
appropriate code
changes, use 'Live
Editor' instead.
NANM Error 'nanm' has been R2015b true “nancov, nanmax,
removed. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'nan' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NCHKNO Warning NARGOUTCHK using R2011b true nargoutchk
more than two inputs
will be removed in a
future release. There
is no simple
replacement for this.
NDWT Error 'ndwt' has been R2015a true
removed. With
appropriate code
changes, use 'modwt'
instead.
NDWT2 Error 'ndwt2' has been R2015a true
removed. With
appropriate code
changes, use 'swt2'
instead.

7-126
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NOV6 Warning 'v6' will be removed R2007b true
in a future release.
There is no simple
replacement for this.
NPI22PI Error 'zero22pi' has been R2007b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'wrapTo360' or functions have been
'wrapTo2Pi' instead. removed” (Mapping
Toolbox)
NPI2PI Error 'npi2pi' has been R2007b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'wrapTo180' or functions have been
'wrapToPi' instead. removed” (Mapping
Toolbox)
OBJMPOO Error 'MATLABPOOL' has R2014a true parpool (Parallel
L been removed. Use Computing Toolbox)
'PARPOOL' instead.
ODEMOD Error 'modem.oqpskdemod R2018a true
' has been removed.
With appropriate
code changes, use
'comm.OQPSKDemo
dulator' instead.
OMOD Error 'modem.oqpskmod' R2018a true
has been removed.
With appropriate
code changes, use
'comm.OQPSKModul
ator' instead.
ONEM Error 'onem' has been R2015b true onem (Mapping
removed. With Toolbox)
appropriate code
changes, use 'ones'
instead.
OPCDA Warning 'opcda' will be R2024b true
removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.

7-127
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
OPCDAEX Warning 'opcDataAccessExplo R2024b true
PL rer' will be removed
in a future release
along with the
support for OPC DA.
To access live OPC
data, use the OPC
UA standard instead.
OPCDAQS Warning 'opc.daQualityString' R2024b true
will be removed in a
future release along
with the support for
OPC DA. To access
live OPC data, use
the OPC UA standard
instead.
OPCDASU Warning 'opc.daSupport' will R2024b true
PP be removed in a
future release along
with the support for
OPC DA. To access
live OPC data, use
the OPC UA standard
instead.
OPCFIND Warning 'opcfind' will be R2024b true
removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.
OPCHELP Warning 'opchelp' will be R2024b true
removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.

7-128
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
OPCOPNO Warning 'openosf' will be R2024b true
SF removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.
OPCQID Warning 'opcqid' will be R2024b true
removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.
OPCQPRT Warning 'opcqparts' will be R2024b true
removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.
OPCQSTR Warning 'opcqstr' will be R2024b true
removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.
OPCRESE Warning 'opcreset' will be R2024b true
T removed in a future
release along with
the support for OPC
DA. To access live
OPC data, use the
OPC UA standard
instead.

7-129
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
OPCSERV Warning 'opcserverinfo' will R2024b true
ER be removed in a
future release along
with the support for
OPC DA. To access
live OPC data, use
the OPC UA standard
instead.
OPGLD Warning 'opengl('data')' will R2022b true “The opengl function
be removed in a will be removed”
future release. With
appropriate code
changes, use
'rendererinfo'
instead.
OPGLI Warning 'opengl('info')' will be R2022b true “The opengl function
removed in a future will be removed”
release. With
appropriate code
changes, use
'rendererinfo'
instead.
OPGLO Warning 'opengl' will be R2022b true “The opengl function
removed in a future will be removed”
release. There is no
simple replacement
for this.
OPTMNVP Error solve(PROBLEM, R2018a true solve (Optimization
SOLVER, OPTIONS) Toolbox)
has been removed.
Use
solve(PROBLEM,
'Solver', SOLVER,
'Options', OPTIONS)
instead.
OPTMOPT Error solve(PROBLEM, R2018a true solve (Optimization
OPTIONS) has been Toolbox)
removed. Use
solve(PROBLEM,
'Options', OPTIONS)
instead.
OPTMSLV Error solve(PROBLEM, R2018a true solve (Optimization
SOLVER) has been Toolbox)
removed. Use
solve(PROBLEM,
'Solver', SOLVER)
instead.

7-130
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
OQPDEM Error 'oqpskdemod' has R2017b true
been removed. With
appropriate code
changes, use
'comm.OQPSKDemo
dulator' instead.
OQPMOD Error 'oqpskmod' has been R2017b true
removed. With
appropriate code
changes, use
'comm.OQPSKModul
ator' instead.
ORIGINU Error 'originui' has been R2022b true originui (Mapping
I removed. With Toolbox)
appropriate code
changes, use 'setm'
instead.
PADEMOD Error 'modem.pamdemod' R2018a true
has been removed.
With appropriate
code changes, use
'pamdemod' instead.
PAMOD Error 'modem.pammod' R2018a true
has been removed.
With appropriate
code changes, use
'pammod' instead.
PARALLE Error 'parallelui' has been R2022b true parallelui
LUI removed. With (Mapping Toolbox)
appropriate code
changes, use 'setm'
instead.
PCORR Error Positional syntax for R2024a true parcorr
optional arguments (Econometrics
has been removed Toolbox)
from 'parcorr'. Use
name-value pairs
instead.
PDECT Error 'pdecont' has been R2022a true pdecont (Partial
removed. With Differential Equation
appropriate code Toolbox)
changes, use
'pdeplot' instead.

7-131
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PDESF Error 'pdesurf' has been R2022a true pdesurf (Partial
removed. With Differential Equation
appropriate code Toolbox)
changes, use
'pdeplot' instead.
PIX2LAT Error 'pix2latlon' has been R2021b true pix2latlon
LON removed. With (Mapping Toolbox)
appropriate code
changes, use
'intrinsicToGeograph
ic' instead.
PIX2MAP Error 'pix2map' has been R2021b true pix2map (Mapping
removed. With Toolbox)
appropriate code
changes, use
'intrinsicToWorld'
instead.
PIXCENT Error 'pixcenters' has been R2021a true pixcenters
ERS removed. With (Mapping Toolbox)
appropriate code
changes, use
'worldGrid' or
'geographicGrid'
instead.
PMRTM1 Error 'propagationModel('r R2021a true
aytracing-image-
method')' syntax has
been removed. With
appropriate code
changes, use
'propagationModel('r
aytracing', 'Method',
'image')' syntax
instead.
PMRTM2 Error 'propagationModel('r R2021a true
aytracing-
imagemethod')'
syntax has been
removed. With
appropriate code
changes, use
'propagationModel('r
aytracing', 'Method',
'image')' syntax
instead.

7-132
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PMRTM3 Error 'propagationModel('r R2021a true
aytracingimage-
method')' syntax has
been removed. With
appropriate code
changes, use
'propagationModel('r
aytracing', 'Method',
'image')' syntax
instead.
PMRTM4 Error 'propagationModel('r R2021a true
aytracingimagemeth
od')' syntax has been
removed. With
appropriate code
changes, use
'propagationModel('r
aytracing', 'Method' ,
'image')' syntax
instead.
PNZOM Error 'panzoom' has been R2014a true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use 'zoom' geometric geodesy
instead. functions have been
removed” (Mapping
Toolbox)
POLYBFO Error 'polyspace.BugFinde R2017a true
rOptions' has been
removed. With
appropriate code
changes, use
'polyspace.Options'
instead.
POLYCPO Error 'polyspace.CodeProv R2017a true
erOptions' has been
removed. With
appropriate code
changes, use
'polyspace.Options'
instead.
POLYCS Error Use R2017a true
'MergedComputingS
ettings' instead of
'ComputingSettings'
for
polyspace.Options.

7-133
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
POLYREP Error Use R2017a true
'MergedReporting'
instead of 'Reporting'
for
polyspace.Options.
PR2GD Error 'par2geod' has been R2013b true geodeticLatitude
removed. With FromParametric
appropriate code (Mapping Toolbox)
changes, use
'geodeticLatitudeFro
mParametric'
instead.
PRINCOM Error 'princomp' has been R2015a true
P removed. With
appropriate code
changes, use 'pca'
instead.
PRINTOP Warning 'printopt' will be R2024a true
T removed in a future
release. There is no
simple replacement
for this.
PRINTPS Warning '-dps' will be R2024a true
1 removed in a future
release. Use '-deps'
or '-dpdf' instead.
PRINTPS Warning '-dpsc' will be R2024a true
2 removed in a future
release. Use '-deps'
or '-dpdf' instead.
PRINTPS Warning '-dps2' will be R2024a true
3 removed in a future
release. Use '-deps'
or '-dpdf' instead.
PRINTPS Warning '-dpsc2' will be R2024a true
4 removed in a future
release. Use '-deps'
or '-dpdf' instead.
PRINTRA Warning '-dbmpmono' will be R2024a true
S01 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.

7-134
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PRINTRA Warning '-dbmp' will be R2024a true
S02 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dbmp16m' will be R2024a true
S03 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dbmp256' will be R2024a true
S04 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dhdf' will be R2024a true
S05 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpbm' will be R2024a true
S06 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpbmraw' will be R2024a true
S07 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpcxmono' will be R2024a true
S08 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.

7-135
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PRINTRA Warning '-dpcx24b' will be R2024a true
S09 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpcx256' will be R2024a true
S10 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpcx16' will be R2024a true
S11 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpgm' will be R2024a true
S12 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dpgmraw' will be R2024a true
S13 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dppm' will be R2024a true
S14 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.
PRINTRA Warning '-dppmraw' will be R2024a true
S15 removed in a future
release. With
appropriate code
changes, use
'imwrite' instead.

7-136
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PRIRET Error Positional syntax for R2024a true price2ret
optional arguments (Econometrics
has been removed Toolbox)
from 'price2ret'. Use
name-value pairs
instead.
PRJET Error 'project' has been R2013b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'projfwd' instead. functions have been
removed” (Mapping
Toolbox)
PROBDIS Error 'ProbDist' has been R2015a true
T removed. With
appropriate code
changes, use
'prob.ProbabilityDist
ribution' instead.
PROBDIS Error 'ProbDistKernel' has R2015a true
TKERNEL been removed. With
appropriate code
changes, use
'prob.ProbabilityDist
ribution' instead.
PROBDIS Error 'ProbDistParametric' R2015a true
TPARAME has been removed.
TRIC With appropriate
code changes, use
'prob.ProbabilityDist
ribution' instead.
PROBDIS Error 'ProbDistUnivKernel' R2015a true
TUNIVKE has been removed.
RNEL With appropriate
code changes, use
'makedist' instead.
PROBDIS Error 'ProbDistUnivParam' R2015a true
TUNIVPA has been removed.
RAM With appropriate
code changes, use
'makedist' instead.

7-137
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PSDEMOD Error 'modem.pskdemod' R2018a true
has been removed.
With appropriate
code changes, use
'pskdemod' or
'comm.PSKDemodula
tor' instead.
PSMOD Error 'modem.pskmod' has R2018a true
been removed. With
appropriate code
changes, use
'pskmod' or
'comm.PSKModulato
r' instead.
PSRENAM Warning Input argument R2018b true “Toolbox folders
E 'powersys' will be renamed: Old names
removed in a future will be removed”
release. Use 'sps'
instead.
PSTAT Error The 'Static' attribute R2008b true “Table of Property
on properties has Attributes”
been removed. Use
the 'Constant'
attribute instead.
QAMDEPD Error 'qamdemod' no R2016a true
longer accepts the
initial phase of a
signal.
QAMDEPM Error 'qammod' no longer R2016a true
accepts the initial
phase of a signal.
QDEMOD Error 'modem.qamdemod' R2016a true
has been removed.
With appropriate
code changes, use
'qamdemod' instead.
QMOD Error 'modem.qammod' R2016a true
has been removed.
With appropriate
code changes, use
'qammod' instead.

7-138
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
QRYDT Error 'qrydata' has been R2013b true “Some file import,
removed. There is no map display, data
simple replacement analysis, and
for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
RANDSD Error 'randseed' has been R2019a true
removed. With
appropriate code
changes, use 'rng'
instead.
RAYNR Error Input argument R2021b true
'NumReflections' has
been removed. Use
'MaxNumReflections'
property of a ray
tracing propagation
model object instead.
RC2GD Error 'rec2geod' has been R2013b true map.geodesy.Rect
removed. With ifyingLatitudeCo
appropriate code nverter (Mapping
changes, use Toolbox)
'map.geodesy.Rectify
ingLatitudeConverte
r' instead.
RCSFIR Error 'rcosfir' is R2012a true
unsupported and has
been removed. With
appropriate code
changes, use
'rcosdesign' instead.
RCSFLT Error 'rcosflt' is R2012a true
unsupported and has
been removed. With
appropriate code
changes, use
'rcosdesign' instead.
RCSIIR Error 'rcosiir' is R2012a true
unsupported and has
been removed. There
is no simple
replacement for this.

7-139
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
RCSINE Error 'rcosine' is R2012a true
unsupported and has
been removed. With
appropriate code
changes, use
'rcosdesign' instead.
RDFK5 Error 'readfk5' has been R2013b true “Some file import,
removed. There is no map display, data
simple replacement analysis, and
for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
RDFLDS Error 'readfields' has been R2013b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'readmatrix', functions have been
'readtable', or a removed” (Mapping
different file import Toolbox)
function instead.
RDMTX Error 'readmtx' has been R2013b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'readmatrix', functions have been
'readtable', or a removed” (Mapping
different file import Toolbox)
function instead.
READSZK Error The property R2015a true
'KeyValueLimit' has
been removed.
READSZR Error The property R2015a true
'RowsPerRead' has
been removed.
REDEFGG Warning Declaring a variable R2006a true
to be global more
than once might not
be supported in a
future release.
REDEFGI Warning Declaring an input or R2006a true
output variable to be
global might not be
supported in a future
release.

7-140
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
REPUDD Warning Classes defined R2021a true “Defining classes and
using schema.m files packages: Using
are unsupported and schema.m will not be
will be removed in a supported in a future
future release. Use release”
MATLAB Classes
defined using the
classdef keyword
instead.
RESOU Error 'resources' is a R2018b true
reserved folder.
Running MATLAB
files located in a
folder named
'resources' is not
supported.
RESZM Error 'resizem' has been R2020b true resizem (Mapping
removed. With Toolbox)
appropriate code
changes, use
'georesize' or
'imresize' instead.
RETPRI Error Positional syntax for R2024a true ret2price
optional arguments (Econometrics
has been removed Toolbox)
from 'ret2price'. Use
name-value pairs
instead.
RICHN Error 'ricianchan' has been R2018a true
removed. With
appropriate code
changes, use
'comm.RicianChanne
l' instead.
RLCHN Error 'rayleighchan' has R2018a true
been removed. With
appropriate code
changes, use
'comm.RayleighChan
nel' instead.

7-141
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
RM2VEC Error 'refmat2vec' has R2021a true refmat2vec
been removed. With (Mapping Toolbox)
appropriate code
changes, construct a
geographic raster
reference object
using
'refvecToGeoRasterR
eference' instead.
RNG2BW Warning 'range2bw' will be R2021a true
removed in a future
release. Use
'rangeres2bw'
instead, which is a
direct replacement.
RSTCK Error 'restack' has been R2013b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'uistack' instead. removed” (Mapping
Toolbox)
RTLYR Error 'rootlayr' has been R2014a true “Some file import,
removed. There is no map display, and
simple replacement angle wrapping
for this. functions have been
removed” (Mapping
Toolbox)
RTWHWDR Error 'RTW.HWDeviceRegi R2019b true “RTW.HWDeviceRegi
stry' is unsupported stry is not
and has been supported” (Simulink
removed. The Coder)
replacement strategy
can be found in
MATLAB
documentation.
RV2MAT Error 'refvec2mat' has R2021a true refvec2mat
been removed. With (Mapping Toolbox)
appropriate code
changes, construct a
geographic raster
reference object
using
'refvecToGeoRasterR
eference' instead.

7-142
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
RWA Warning 'radarWaveformAnal R2021a true
yzer' will be removed
in a future release.
Use
'pulseWaveformAnaly
zer' instead, which is
a direct replacement.
SBATH Error 'satbath' has been R2020a true satbath (Mapping
removed. With Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.
SCHART Error 'schart' has been R2015a true
removed. With
appropriate code
changes, use
'controlchart'
instead.
SCIRCLU Error 'scirclui' has been R2022b true scirclui (Mapping
I removed. With Toolbox)
appropriate code
changes, use
'scircleg' instead.
SDTRD Error 'sdtsdemread' has R2020a true “Some raster reading
been removed. With functions have been
appropriate code removed” (Mapping
changes, use Toolbox)
'readgeoraster'
instead.
SDTSINF Warning 'sdtsinfo' will be R2023b true sdtsinfo (Mapping
O removed in a future Toolbox)
release. With
appropriate code
changes, use
'georasterinfo'
instead.
SECTORG Error 'sectorg' has been R2022b true sectorg (Mapping
removed. With Toolbox)
appropriate code
changes, use
'scircle1' instead.

7-143
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SEEDM Error 'seedm' has been R2013b true “Some file import,
removed. There is no map display, data
simple replacement analysis, and
for this. geometric geodesy
functions have been
removed” (Mapping
Toolbox)
SERENAM Warning Input argument R2019b true ver
E 'simevents' will be
removed in a future
release. Use 'slde'
instead.
SERIAL Warning 'serial' will be R2021a true “Serial Port Devices:
removed in a future New functions and
release. With properties”
appropriate code
changes, use
'serialport' instead.
SERLL Warning 'seriallist' will be R2021a true “Serial Port Devices:
removed in a future New functions and
release. Use properties”
'serialportlist'
instead, which is a
direct replacement.
SESSION Warning 'Session' class will be R2020a true
removed in a future
release. Use 'daq'
instead, which is a
direct replacement.
SESSION Warning 'addClockConnection R2020a true
ACC ' method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'addclock' of
'DataAcquisition'
class instead.

7-144
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SESSION Warning 'addDigitalChannel' R2020a true
ADC method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'addinput' or
'addoutput' of
'DataAcquisition'
class instead.
SESSION Warning 'addAudioInputChan R2020a true
ADIC nel' method of
'Session' class will be
removed in a future
release. Use
'addinput' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'addAudioOutputCha R2020a true
ADOC nnel' method of
'Session' class will be
removed in a future
release. Use
'addoutput' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'addAnalogInputCha R2020a true
AIC nnel' method of
'Session' class will be
removed in a future
release. Use
'addinput' of
'DataAcquisition'
class instead.
SESSION Warning 'addlistener' method R2020a true
AL of 'Session' class will
be removed in a
future release. Use
the DataAcquisition
interface and its
callback properties
instead.

7-145
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SESSION Warning 'addAnalogOutputCh R2020a true
AOC annel' method of
'Session' class will be
removed in a future
release. Use
'addoutput' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'addTriggerConnecti R2020a true
ATC on' method of
'Session' class will be
removed in a future
release. With
appropriate code
changes, use
'addtrigger' of
'DataAcquisition'
class instead.
SESSION Warning 'addCounterInputCh R2020a true
CIC annel' method of
'Session' class will be
removed in a future
release. Use
'addinput' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'addCounterOutputC R2020a true
COC hannel' method of
'Session' class will be
removed in a future
release. Use
'addoutput' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'DurationInSeconds' R2020a true
DIS property of 'Session'
class will be removed
in a future release.
Specify 'Duration' as
argument to 'read' or
'start' instead.

7-146
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SESSION Warning 'addFunctionGenerat R2020a true
FGC orChannel' method
of 'Session' class will
be removed in a
future release. Use
'addoutput' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'daq.getDevices' will R2020a true
GD be removed in a
future release. Use
'daqlist' instead,
which is a direct
replacement.
SESSION Warning 'daq.getVendors' will R2020a true
GV be removed in a
future release. Use
'daqvendorlist'
instead, which is a
direct replacement.
SESSION Warning 'inputSingleScan' R2020a true
ISS method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'read' of
'DataAcquisition'
class instead.
SESSION Warning 'NumberOfScans' R2020a true
NOS property of 'Session'
class will be removed
in a future release.
Specify 'NumScans'
as argument to 'read'
or 'start' instead.
SESSION Warning 'outputSingleScan' R2020a true
OSS method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'write' of
'DataAcquisition'
class instead.

7-147
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SESSION Warning 'queueOutputData' R2020a true
QOD method of 'Session'
class will be removed
in a future release.
Use 'write' of
'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'daq.reset' will be R2020a true
R removed in a future
release. Use
'daqreset' instead,
which is a direct
replacement.
SESSION Warning 'removeChannel' R2020a true
RC method of 'Session'
class will be removed
in a future release.
Use 'removechannel'
of 'DataAcquisition'
class instead, which
is a direct
replacement.
SESSION Warning 'removeConnection' R2020a true
RCON method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'removeclock' or
'removetrigger' of
'DataAcquisition'
class instead.
SESSION Warning 'resetCounters' R2020a true
RSC method of 'Session'
class will be removed
in a future release.
Use 'resetcounters'
of 'DataAcquisition'
class instead, which
is a direct
replacement.

7-148
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SESSION Warning 'startBackground' R2020a true
SB method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'start' of
'DataAcquisition'
class instead.
SESSION Warning 'startForeground' R2020a true
SF method of 'Session'
class will be removed
in a future release.
With appropriate
code changes, use
'write' of
'DataAcquisition'
class instead.
SETERR Error The 'ErrorMessage' R2017a true MException.last
property has been
removed. There is no
simple replacement
for this.
SETLTLN Error 'setltln' has been R2021a true setltln (Mapping
removed. With Toolbox)
appropriate code
changes, use
'intrinsicToGeograph
ic' instead.
SETPOST Error 'setpostn' has been R2021a true setpostn (Mapping
N removed. With Toolbox)
appropriate code
changes, use
'geographicToDiscret
e' instead.
SFTSPC Error 'shiftspc' has been R2013b true
removed. With
appropriate code
changes, use 'strjust'
instead.

7-149
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SIZEM Error 'sizem' has been R2021a true sizem (Mapping
removed. With Toolbox)
appropriate code
changes, use
'rastersize' property
of a map raster
reference object
instead.
SLLERR1 Warning 'sllasterror' will be R2016a true
removed in a future
release. Use an
identifier on the
CATCH block
instead.
SLLERR2 Warning 'sllastdiagnostic' will R2016a true
be removed in a
future release. Use
an identifier on the
CATCH block
instead.
SLLWARN Warning 'sllastwarning' will R2016a true
be removed in a
future release. With
appropriate code
changes, use
'lastwarn' instead.
SLRTBNC Error 'slrtbench' has been R2015b true
H removed. With
appropriate code
changes, use
'SimulinkRealTime.ut
ils.minimumSampleT
ime' instead.
SLRTREN Warning Input argument 'slrt' R2020b true
AME will be removed in a
future release. Use
'slrealtime' instead.
SMPLMOD Error The property R2015a true
E 'FrameBasedProcessi
ng' has been
removed.
SMTHC Error 'smithchart' has been R2018b true
removed. Use
'smithplot' instead.

7-150
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SMTHF Warning The 'FontSmoothing' R2024a true Axes Properties
property will be
removed in a future
release, at which
point font smoothing
behavior will be
enabled by default.
Editing this property
might not have an
effect, in which case
font smoothing
behavior will be
enabled by default.
SMTHFA Warning The R2024a true Axes Properties
'DefaultAxesFontSmo
othing' setting will
be removed in a
future release, at
which point font
smoothing behavior
will be enabled by
default. Editing this
setting might not
have an effect, in
which case font
smoothing behavior
will be enabled by
default.
SMTHFT Warning The R2024a true
'DefaultTextFontSmo
othing' setting will
be removed in a
future release, at
which point font
smoothing behavior
will be enabled by
default. Editing this
setting might not
have an effect, in
which case font
smoothing behavior
will be enabled by
default.

7-151
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SMTHG Warning The R2024a true Figure Properties
'GraphicsSmoothing'
property will be
removed in a future
release, at which
point graphics
smoothing behavior
will be enabled by
default. Editing this
property might not
have an effect, in
which case graphics
smoothing behavior
will be enabled by
default.
SMTHGF Warning The R2024a true Figure Properties
'DefaultFigureGraphi
csSmoothing' setting
will be removed in a
future release, at
which point graphics
smoothing behavior
will be enabled by
default. Editing this
setting might not
have an effect, in
which case graphics
smoothing behavior
will be enabled by
default.
SOAPC Error 'createClassFromWs R2014b true “createClassFromWs
dl' has been dl has been
removed. Use removed”
'matlab.wsdl.create
WSDLClient' instead,
which is a direct
replacement.
SOAPM Error 'createSoapMessage' R2014b true “createSoapMessage
has been removed. , callSoapService,
With appropriate and
code changes, use parseSoapResponse
'matlab.wsdl.create have been removed”
WSDLClient' instead.

7-152
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SOAPR Error 'parseSoapResponse' R2014b true “createSoapMessage
has been removed. , callSoapService,
With appropriate and
code changes, use parseSoapResponse
'matlab.wsdl.create have been removed”
WSDLClient' instead.
SOAPS Error 'callSoapService' has R2014b true “createSoapMessage
been removed. With , callSoapService,
appropriate code and
changes, use parseSoapResponse
'matlab.wsdl.create have been removed”
WSDLClient' instead.
SOUNDVW Error 'soundview' has been R2024a true audioread
removed. With
appropriate code
changes, use
'audioread' with
'plot' or 'sound'
instead.
SPBAB Warning 'BytesAvailable' R2022b true
property of
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'NumBytesAvailable'
property of
'serialport' class
instead.
SPBAF Warning 'BytesAvailableFcnC R2022b true
ount' property of
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'serialport'
class instead.

7-153
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SPBAM Warning 'BytesAvailableFcnM R2022b true
ode' property of
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'serialport'
class instead.
SPBAN Warning 'BytesAvailableFcn' R2022b true
property of
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'serialport'
class instead.
SPBBR Warning 'binblockread' R2022b true
method of 'serialport'
class will be removed
in a future release.
With appropriate
code changes, use
'readbinblock'
method of 'serialport'
class instead.
SPBBW Warning 'binblockwrite' R2022b true
method of 'serialport'
class will be removed
in a future release.
With appropriate
code changes, use
'writebinblock'
method of 'serialport'
class instead.
SPCRD Error 'spcread' has been R2013b true “Some file import,
removed. With map display, data
appropriate code analysis, and
changes, use geometric geodesy
'readmatrix' instead. functions have been
removed” (Mapping
Toolbox)

7-154
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SPDTR Warning 'DataTerminalReady' R2022b true
property of
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'setDTR' method of
'serialport' class
instead.
SPEFN Warning 'ErrorFcn' property R2022b true
of 'serialport' class
will be removed in a
future release. With
appropriate code
changes, use
'ErrorOccurredFcn'
property of
'serialport' class
instead.
SPFCS Warning 'fclose' method of R2022b true
'serialport' class will
be removed in a
future release. There
is no simple
replacement for this.
SPFGL Warning 'fgetl' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'serialport' class
instead.
SPFGT Warning 'fgets' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'serialport' class
instead.

7-155
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SPFLI Warning 'flushinput' method R2022b true
of 'serialport' class
will be removed in a
future release. With
appropriate code
changes, use 'flush'
method of 'serialport'
class instead.
SPFLO Warning 'flushoutput' method R2022b true
of 'serialport' class
will be removed in a
future release. With
appropriate code
changes, use 'flush'
method of 'serialport'
class instead.
SPFOP Warning 'fopen' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'serialport'
constructor instead.
SPFPR Warning 'fprintf' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'writeline' method of
'serialport' class
instead.
SPFRD Warning 'fread' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use 'read'
method of 'serialport'
class instead.

7-156
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SPFSF Warning 'fscanf' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'serialport' class
instead.
SPFWR Warning 'fwrite' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use 'write'
method of 'serialport'
class instead.
SPIBS Warning 'InputBufferSize' R2022b true
property of
'serialport' class will
be removed in a
future release. There
is no simple
replacement for this.
SPPSS Warning 'PinStatus' property R2022b true
of 'serialport' class
will be removed in a
future release. With
appropriate code
changes, use
'getpinstatus'
method of 'serialport'
class instead.
SPRTS Warning 'RequestToSend' R2022b true
property of
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'setRTS' method of
'serialport' class
instead.

7-157
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SPSTR Warning 'scanstr' method of R2022b true
'serialport' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'serialport' class
instead.
SPTL Error 'sptool' has been R2018a true “Functionality being
removed. Use removed or
'signalAnalyzer' or changed” (Signal
'filterDesigner' Processing Toolbox)
instead.
SPTMT Warning Manually setting R2022b true
'Terminator' property
of 'serialport' class
will be removed in a
future release. With
appropriate code
changes, use
'configureTerminator
' method of
'serialport' class to
set value instead.
SPZER Error 'spzerom' has been R2015b true spzerom (Mapping
removed. With Toolbox)
appropriate code
changes, use 'sparse'
instead.
SURFDIS Error 'surfdist' has been R2022b true surfdist (Mapping
T removed. With Toolbox)
appropriate code
changes, use
'distance' instead.
SVFIGC Warning 'compact' argument R2024b true savefig
will be removed in a
future release and
currently has no
effect. 'compact'
behavior is always
enabled.

7-158
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SVM2SUB Warning 'Simulink.VariantMa R2024a true
nager.convertToVaria
nt' will be removed
in a future release.
Use
'Simulink.VariantUtil
s.convertToVariantSu
bsystem' instead,
which is a direct
replacement.
SVM2SUB Warning 'Simulink.VariantMa R2024a true
A nager.convertToVaria
ntAssemblySubsyste
m' will be removed in
a future release. Use
'Simulink.VariantUtil
s.convertToVariantAs
semblySubsystem'
instead, which is a
direct replacement.
SVMCLAS Error 'svmclassify' has R2015a true
SIFY been removed. With
appropriate code
changes, use
'ClassificationSVM'
instead.
SVMSMOS Error 'svmsmoset' has R2015a true
ET been removed. With
appropriate code
changes, use
'fitcsvm' instead.
SVMTRAI Error 'svmtrain' has been R2015a true
N removed. With
appropriate code
changes, use
'fitcsvm' instead.
SVMVL Warning 'Simulink.VariantMa R2024a true Simulink.Variant
nager.variantLegend' Utils.variantLeg
will be removed in a end (Simulink)
future release. Use
'Simulink.VariantUtil
s.variantLegend'
instead, which is a
direct replacement.

7-159
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SYMBM Error 'symbolm' has been R2014b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'scatterm' instead. removed” (Mapping
Toolbox)
TBASE Error 'tbase' has been R2020a true tbase (Mapping
removed. With Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.
TCBAB Warning 'BytesAvailable' R2022b true
property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'NumBytesAvailable'
property of
'tcpclient' class
instead.
TCBAF Warning 'BytesAvailableFcnC R2022b true
ount' property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'tcpclient'
class instead.
TCBAM Warning 'BytesAvailableFcnM R2022b true
ode' property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'tcpclient'
class instead.

7-160
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TCBAN Warning 'BytesAvailableFcn' R2022b true
property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'configureCallback'
method of 'tcpclient'
class instead.
TCBBR Warning 'binblockread' R2022b true
method of 'tcpclient'
class will be removed
in a future release.
With appropriate
code changes, use
'readbinblock'
method of 'tcpclient'
class instead.
TCBBW Warning 'binblockwrite' R2022b true
method of 'tcpclient'
class will be removed
in a future release.
With appropriate
code changes, use
'writebinblock'
method of 'tcpclient'
class instead.
TCEFN Warning 'ErrorFcn' property R2022b true
of 'tcpclient' class
will be removed in a
future release. With
appropriate code
changes, use
'ErrorOccurredFcn'
property of
'tcpclient' class
instead.
TCFCS Warning 'fclose' method of R2022b true
'tcpclient' class will
be removed in a
future release. There
is no simple
replacement for this.

7-161
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TCFGL Warning 'fgetl' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'tcpclient' class
instead.
TCFGT Warning 'fgets' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'tcpclient' class
instead.
TCFLI Warning 'flushinput' method R2022b true
of 'tcpclient' class
will be removed in a
future release. With
appropriate code
changes, use 'flush'
method of 'tcpclient'
class instead.
TCFLO Warning 'flushoutput' method R2022b true
of 'tcpclient' class
will be removed in a
future release. With
appropriate code
changes, use 'flush'
method of 'tcpclient'
class instead.
TCFOP Warning 'fopen' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'tcpclient'
constructor instead.

7-162
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TCFPR Warning 'fprintf' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'writeline' method of
'tcpclient' class
instead.
TCFRD Warning 'fread' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use 'read'
method of 'tcpclient'
class instead.
TCFSF Warning 'fscanf' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'tcpclient' class
instead.
TCFWR Warning 'fwrite' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use 'write'
method of 'tcpclient'
class instead.
TCIBS Warning 'InputBufferSize' R2022b true
property of
'tcpclient' class will
be removed in a
future release. There
is no simple
replacement for this.

7-163
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TCNTR Warning 'NetworkRole' R2022b true
property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'tcpclient'
constructor instead.
TCPC Warning 'tcpip' with 'client' as R2020b true “TCP/IP Client
a 'NetworkRole' will Interface: New
be removed in a functions and
future release. With properties with
appropriate code improved
changes, use performance”
'tcpclient' instead. (Instrument Control
Toolbox)
TCPS Warning 'tcpip' with 'server' R2021a true “TCP/IP Server
as a 'NetworkRole' Interface: New
will be removed in a functions and
future release. With properties”
appropriate code (Instrument Control
changes, use Toolbox)
'tcpserver' instead.
TCQRY Warning 'query' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'writeread' method of
'tcpclient' class
instead.
TCRESUL Error 'testconsole.Results' R2019b true
T has been removed.
Use
'comm.ErrorRate' or
BERTool instead.

7-164
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TCRHT Warning 'RemoteHost' R2022b true
property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'Address' property of
'tcpclient' class
instead.
TCRPT Warning 'RemotePort' R2022b true
property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use 'Port'
property of
'tcpclient' class
instead.
TCSTR Warning 'scanstr' method of R2022b true
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'readline' method of
'tcpclient' class
instead.
TCTDY Warning 'TransferDelay' R2022b true
property of
'tcpclient' class will
be removed in a
future release. With
appropriate code
changes, use
'EnableTransferDela
y' property of
'tcpclient' class
instead.

7-165
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TCTMT Warning Manually setting R2022b true
'Terminator' property
of 'tcpclient' class
will be removed in a
future release. With
appropriate code
changes, use
'configureTerminator
' method of
'tcpclient' class to
set value instead.
TMTL Warning 'tmtool' will be R2022b true Test and
removed in a future Measurement Tool
release. Use (Instrument Control
'serialExplorer', Toolbox)
'tcpipExplorer',
'udpExplorer',
'visaExplorer', or
'instrumentExplorer'
instead.
TRACKUI Error 'trackui' has been R2022b true trackui (Mapping
removed. With Toolbox)
appropriate code
changes, use 'trackg'
instead.
TREEDIS Error TREEDISP has been R2015a true
P removed. Use
ClassificationTree or
RegressionTree
VIEW methods
instead.
TREEFIT Error TREEFIT has been R2015a true
removed. Use
fitctree or fitrtree
instead.
TREEPRU Error TREEPRUNE has R2015a true
NE been removed. Use
ClassificationTree or
RegressionTree
PRUNE methods
instead.
TREETES Error 'treetest' has been R2015a true
T removed. Use
ClassificationTree or
RegressionTree
methods instead.

7-166
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TREEVAL Error TREEVAL has been R2015a true
removed. Use
ClassificationTree or
RegressionTree
PREDICT methods
instead.
TRGLN Error 'tgrline' has been R2013b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use functions have been
'readgeotable' removed” (Mapping
instead. Toolbox)
TSBAB Warning 'BytesAvailable' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'NumBytesAvailable'
property of
'tcpserver' class
instead.
TSBAF Warning 'BytesAvailableFcnC R2022b true “Transition Your
ount' property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureCallback'
method of 'tcpserver'
class instead.
TSBAM Warning 'BytesAvailableFcnM R2022b true “Transition Your
ode' property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureCallback'
method of 'tcpserver'
class instead.

7-167
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TSBAN Warning 'BytesAvailableFcn' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureCallback'
method of 'tcpserver'
class instead.
TSBBR Warning 'binblockread' R2022b true “Transition Your
method of 'tcpserver' Code to tcpserver
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'readbinblock'
method of 'tcpserver'
class instead.
TSBBW Warning 'binblockwrite' R2022b true “Transition Your
method of 'tcpserver' Code to tcpserver
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'writebinblock'
method of 'tcpserver'
class instead.
TSEFN Warning 'ErrorFcn' property R2022b true “Transition Your
of 'tcpserver' class Code to tcpserver
will be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'ErrorOccurredFcn'
property of
'tcpserver' class
instead.
TSFCS Warning 'fclose' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. There (Instrument Control
is no simple Toolbox)
replacement for this.

7-168
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TSFGL Warning 'fgetl' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'tcpserver' class
instead.
TSFGT Warning 'fgets' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'tcpserver' class
instead.
TSFLI Warning 'flushinput' method R2022b true “Transition Your
of 'tcpserver' class Code to tcpserver
will be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'tcpserver'
class instead.
TSFLO Warning 'flushoutput' method R2022b true “Transition Your
of 'tcpserver' class Code to tcpserver
will be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'tcpserver'
class instead.
TSFOP Warning 'fopen' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'tcpserver'
constructor instead.

7-169
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TSFPR Warning 'fprintf' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'writeline' method of
'tcpserver' class
instead.
TSFRD Warning 'fread' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'read'
method of 'tcpserver'
class instead.
TSFSF Warning 'fscanf' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'tcpserver' class
instead.
TSFWR Warning 'fwrite' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'write'
method of 'tcpserver'
class instead.
TSIBS Warning 'InputBufferSize' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. There Toolbox)
is no simple
replacement for this.

7-170
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TSLHT Warning 'LocalHost' property R2022b true “Transition Your
of 'tcpserver' class Code to tcpserver
will be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'ServerAddress'
property of
'tcpserver' class
instead.
TSLPM Warning 'LocalPortMode' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'ServerAddress'
property of
'tcpserver' class
instead.
TSLPT Warning 'LocalPort' property R2022b true “Transition Your
of 'tcpserver' class Code to tcpserver
will be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'ServerAddress'
property of
'tcpserver' class
instead.
TSNTR Warning 'NetworkRole' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'tcpserver'
constructor instead.

7-171
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TSRHT Warning 'RemoteHost' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'ClientAddress'
property of
'tcpserver' class
instead.
TSRPT Warning 'RemotePort' R2022b true “Transition Your
property of Code to tcpserver
'tcpserver' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'ServerPort' property
of 'tcpserver' class
instead.
TSSTR Warning 'scanstr' method of R2022b true “Transition Your
'tcpserver' class will Code to tcpserver
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'tcpserver' class
instead.
TSTMT Warning Manually setting R2022b true “Transition Your
'Terminator' property Code to tcpserver
of 'tcpserver' class Interface”
will be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureTerminator
' method of
'tcpserver' class to
set value instead.
TTSMP Error 'SamplingRate' has R2018b true
been removed. Use
'SampleRate'
instead.

7-172
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
UDBAB Warning 'BytesAvailable' R2022b true “Transition Your
property of 'udpport' Code to udpport
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'NumBytesAvailable'
property of 'udpport'
class instead.
UDBAF Warning 'BytesAvailableFcnC R2022b true “Transition Your
ount' property of Code to udpport
'udpport' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureCallback'
method of 'udpport'
class instead.
UDBAM Warning 'BytesAvailableFcnM R2022b true “Transition Your
ode' property of Code to udpport
'udpport' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureCallback'
method of 'udpport'
class instead.
UDBAN Warning 'BytesAvailableFcn' R2022b true “Transition Your
property of 'udpport' Code to udpport
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'configureCallback'
method of 'udpport'
class instead.

7-173
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
UDDRF Warning 'DatagramReceivedF R2022b true “Transition Your
cn' property of Code to udpport
'udpport' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureCallback'
method of 'udpport'
class instead.
UDDTM Warning 'DatagramTerminate R2022b true “Transition Your
Mode' property of Code to udpport
'udpport' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'udpport' constructor
instead.
UDEFN Warning 'ErrorFcn' property R2022b true “Transition Your
of 'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'ErrorOccurredFcn'
property of 'udpport'
class instead.
UDFCS Warning 'fclose' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. There (Instrument Control
is no simple Toolbox)
replacement for this.
UDFGL Warning 'fgetl' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'udpport' class
instead.

7-174
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
UDFGT Warning 'fgets' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'udpport' class
instead.
UDFLI Warning 'flushinput' method R2022b true “Transition Your
of 'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'udpport'
class instead.
UDFLO Warning 'flushoutput' method R2022b true “Transition Your
of 'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'udpport'
class instead.
UDFOP Warning 'fopen' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'udpport' constructor
instead.
UDFPR Warning 'fprintf' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'writeline' method of
'udpport' class
instead.

7-175
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
UDFRD Warning 'fread' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'read'
method of 'udpport'
class instead.
UDFSF Warning 'fscanf' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'udpport' class
instead.
UDFWR Warning 'fwrite' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'write'
method of 'udpport'
class instead.
UDIBS Warning 'InputBufferSize' R2022b true “Transition Your
property of 'udpport' Code to udpport
class will be removed Interface”
in a future release. (Instrument Control
There is no simple Toolbox)
replacement for this.
UDODP Warning 'OutputDatagramPac R2022b true “Transition Your
ketSize' property of Code to udpport
'udpport' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'OutputDatagramSiz
e' property of
'udpport' class
instead.

7-176
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
UDPP Warning 'udp' will be removed R2020b true “UDP Interface: New
in a future release. functions and
With appropriate properties with
code changes, use improved
'udpport' instead. performance”
(Instrument Control
Toolbox)
UDSTR Warning 'scanstr' method of R2022b true “Transition Your
'udpport' class will Code to udpport
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'udpport' class
instead.
UDTMT Warning Manually setting R2022b true “Transition Your
'Terminator' property Code to udpport
of 'udpport' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureTerminator
' method of 'udpport'
class to set value
instead.
USGDM Error 'usgsdem' has been R2020a true “Some raster reading
removed. With functions have been
appropriate code removed” (Mapping
changes, use Toolbox)
'readgeoraster'
instead.
USGKD Error 'usgs24kdem' has R2020a true “Some raster reading
been removed. With functions have been
appropriate code removed” (Mapping
changes, use Toolbox)
'readgeoraster'
instead.
V6ON Warning USEV6PLOTAPI('on') R2008a true
will be removed in a
future release. There
is no simple
replacement for this.

7-177
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VISA Warning 'visa' will be R2021a true “VISA Interface:
removed in a future New functions and
release. With properties”
appropriate code (Instrument Control
changes, use Toolbox)
'visadev' instead.
VLSBC Error 'BackgroundColor' R2022b true Viewer Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'BackgroundColor'
property of the
parent 'Viewer3D'
class instead.
VLSCP Error 'CameraPosition' R2022b true Viewer Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'CameraPosition'
property of the
parent 'Viewer3D'
class instead.
VLSCT Error 'CameraTarget' R2022b true Viewer Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'CameraTarget'
property of the
parent 'Viewer3D'
class instead.
VLSCU Error 'CameraUpVector' R2022b true Viewer Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'CameraUpVector'
property of the
parent 'Viewer3D'
class instead.
VLSCV Error 'CameraViewAngle' R2022b true Viewer Properties
property has been (Image Processing
removed. There is no Toolbox)
simple replacement
for this.

7-178
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VLSIC Error 'IsosurfaceColor' R2022b true Volume Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'Colormap' property
instead.
VLSIE Error 'InteractionsEnabled' R2022b true Viewer Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'Interactions'
property of the
parent 'Viewer3D'
class instead.
VLSIV Error 'Isovalue' property R2022b true Volume Properties
has been removed. (Image Processing
With appropriate Toolbox)
code changes, use
'IsosurfaceValue'
property instead.
VLSLT Error 'Lighting' property R2022b true Viewer Properties
has been removed. (Image Processing
With appropriate Toolbox)
code changes, use
'Lighting' property of
the parent
'Viewer3D' class
instead.
VLSRD Error 'Renderer' property R2022b true Volume Properties
has been removed. (Image Processing
With appropriate Toolbox)
code changes, use
'RenderingStyle'
property instead.
VLSSF Error 'ScaleFactors' R2022b true Volume Properties
property has been (Image Processing
removed. With Toolbox)
appropriate code
changes, use
'Transformation'
property instead.

7-179
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VMAP0UI Error 'vmap0ui' has been R2022b true vmap0ui (Mapping
removed. With Toolbox)
appropriate code
changes, use
'vmap0read' instead.
VSBBR Warning 'binblockread' R2022b true “Transition Your
method of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'readbinblock'
method of 'visadev'
class instead.
VSBBW Warning 'binblockwrite' R2022b true “Transition Your
method of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'writebinblock'
method of 'visadev'
class instead.
VSBYA Warning 'BytesAvailable' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
There is no simple Toolbox)
replacement for this.
VSCRD Warning 'clrdevice' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'visadev'
class instead.
VSDTR Warning 'DataTerminalReady' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'setDTR' method of
'visadev' class
instead.

7-180
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VSECC Warning 'EOSCharCode' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'configureTerminator
' method of 'visadev'
class instead.
VSEFN Warning 'ErrorFcn' property R2022b true “Transition Your
of 'visadev' class will Code to visadev
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'ErrorOccurredFcn'
property of 'visadev'
class instead.
VSEMD Warning 'EOSMode' property R2022b true “Transition Your
of 'visadev' class will Code to visadev
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'configureTerminator
' method and
'EOIMode' property
of 'visadev' class
instead.
VSFCS Warning 'fclose' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. There is no (Instrument Control
simple replacement Toolbox)
for this.
VSFGL Warning 'fgetl' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'visadev' class
instead.

7-181
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VSFGT Warning 'fgets' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'visadev' class
instead.
VSFLI Warning 'flushinput' method R2022b true “Transition Your
of 'visadev' class will Code to visadev
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'visadev'
class instead.
VSFLO Warning 'flushoutput' method R2022b true “Transition Your
of 'visadev' class will Code to visadev
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use 'flush'
method of 'visadev'
class instead.
VSFOP Warning 'fopen' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'visadev' constructor
instead.
VSFPR Warning 'fprintf' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'writeline' method of
'visadev' class
instead.

7-182
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VSFRD Warning 'fread' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'read'
method of 'visadev'
class instead.
VSFSF Warning 'fscanf' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'visadev' class
instead.
VSFWR Warning 'fwrite' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use 'write'
method of 'visadev'
class instead.
VSIBS Warning 'InputBufferSize' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
There is no simple Toolbox)
replacement for this.
VSMID Warning 'ManufacturerID' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'VendorID' property
of 'visadev' class
instead.

7-183
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VSMLC Warning 'ModelCode' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'ProductID' property
of 'visadev' class
instead.
VSPSS Warning 'PinStatus' property R2022b true “Transition Your
of 'visadev' class will Code to visadev
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'getpinstatus'
method of 'visadev'
class instead.
VSQRY Warning 'query' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'writeread' method of
'visadev' class
instead.
VSRSN Warning 'RsrcName' property R2022b true “Transition Your
of 'visadev' class will Code to visadev
be removed in a Interface”
future release. With (Instrument Control
appropriate code Toolbox)
changes, use
'ResourceName'
property of 'visadev'
class instead.
VSRTS Warning 'RequestToSend' R2022b true “Transition Your
property of 'visadev' Code to visadev
class will be removed Interface”
in a future release. (Instrument Control
With appropriate Toolbox)
code changes, use
'setRTS' method of
'visadev' class
instead.

7-184
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
VSSPL Warning 'spoll' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'visastatus' method
of 'visadev' class
instead.
VSSTR Warning 'scanstr' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'readline' method of
'visadev' class
instead.
VSTGR Warning 'trigger' method of R2022b true “Transition Your
'visadev' class will be Code to visadev
removed in a future Interface”
release. With (Instrument Control
appropriate code Toolbox)
changes, use
'visatrigger' method
of 'visadev' class
instead.
VSTMT Warning Manually setting R2022b true “Transition Your
'Terminator' property Code to visadev
of 'visadev' class will Interface”
be removed in a (Instrument Control
future release. With Toolbox)
appropriate code
changes, use
'configureTerminator
' method of 'visadev'
class to set value
instead.

7-185
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
WAVLAZ Error 'waveletAnalyzer' R2022b true
has been removed.
With appropriate
code changes, use
Signal
Multiresolution
Analyzer, Wavelet
Image Analyzer,
Wavelet Signal
Analyzer, Wavelet
Signal Denoiser, or
Wavelet Time-
Frequency Analyzer
instead.
WAVMENU Error 'wavemenu' has been R2016b true
removed. With
appropriate code
changes, use Signal
Multiresolution
Analyzer, Wavelet
Image Analyzer,
Wavelet Signal
Analyzer, Wavelet
Signal Denoiser, or
Wavelet Time-
Frequency Analyzer
instead.
WEBREMO Warning The 'web' function R2020a true “web function does
VE does not return a not return a handle
handle or URL for or URL for pages
pages that open in that open your
the system browser. system browser”
Use 'stat = web(___,
'-browser')' instead.
WEIBCDF Error 'weibcdf' has been R2015a true wblcdf (Statistics
removed. With and Machine
appropriate code Learning Toolbox)
changes, use 'wblcdf'
instead.
WEIBFIT Error 'weibfit' has been R2015a true wblfit (Statistics
removed. With and Machine
appropriate code Learning Toolbox)
changes, use 'wblfit'
instead.

7-186
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
WEIBINV Error 'weibinv' has been R2015a true wblinv (Statistics
removed. With and Machine
appropriate code Learning Toolbox)
changes, use 'wblinv'
instead.
WEIBLIK Error 'weiblike' has been R2015a true wbllike (Statistics
E removed. With and Machine
appropriate code Learning Toolbox)
changes, use
'wbllike' instead.
WEIBPDF Error 'weibpdf' has been R2015a true
removed. With
appropriate code
changes, use 'wblpdf'
instead.
WEIBPLO Error 'weibplot' has been R2015a true wblplot (Statistics
T removed. With and Machine
appropriate code Learning Toolbox)
changes, use
'wblplot' instead.
WEIBRND Error 'weibrnd' has been R2015a true wblrnd (Statistics
removed. With and Machine
appropriate code Learning Toolbox)
changes, use
'wblrnd' instead.
WEIBSTA Error 'weibstat' has been R2015a true wblstat (Statistics
T removed. With and Machine
appropriate code Learning Toolbox)
changes, use
'wblstat' instead.
WESTF Error 'westof' has been R2009b true “Some file import,
removed. With map display, and
appropriate code angle wrapping
changes, use 'mod' functions have been
instead. removed” (Mapping
Toolbox)
WFLRD Error 'worldfileread(world R2021a true worldfileread
FileName)' has been (Mapping Toolbox)
removed. With
appropriate code
changes, use
'worldfileread(world
FileName,
coordinateSystemTy
pe, rasterSize)'
instead.

7-187
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
WFMRM Error 'worldFileMatrixToR R2021a true worldFileMatrixT
efmat' has been oRefmat (Mapping
removed. With Toolbox)
appropriate code
changes, construct a
raster reference
object using
'georasterref' or
'maprasterref'
instead.
WHITEBG Warning 'whitebg' will be R2017a true whitebg
removed in a future
release. There is no
simple replacement
for this.
WINTOOL Warning 'wintool' will be R2016b true
removed in a future
release. Use
'windowDesigner'
instead, which is a
direct replacement.
WLGC Error 'wlanGeneratorConfi R2016a true
g' has been removed.
Use the name-value
pair syntax of
'wlanWaveformGener
ator' instead.
WLRC Error 'wlanRecoveryConfig R2020a true
' has been removed.
Instead,
parameterize the
function that accepts
the
'wlanRecoveryConfig
' object by using the
name-value pair
syntax.
XBARPLO Error 'xbarplot' has been R2015a true
T removed. With
appropriate code
changes, use
'controlchart'
instead.

7-188
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
XCORR Error Positional syntax for R2024a true crosscorr
optional arguments (Econometrics
has been removed Toolbox)
from 'crosscorr'. Use
name-value pairs
instead.
XPCRENA Warning Input argument 'xpc' R2014a true “Toolbox folders
ME will be removed in a renamed: Old names
future release. Use will be removed”
'slrealtime' instead.
YOLOV Error 'yolov2ReorgLayer' R2020b true yolov2ReorgLayer
has been removed. (Computer Vision
With appropriate Toolbox)
code changes, use
'spaceToDepthLayer'
instead.
ZADOF Error 'lteZadoffChuSeq' R2019a true
has been removed.
Use 'zadoffChuSeq'
instead, which is a
direct replacement.
ZEROM Error 'zerom' has been R2015b true zerom (Mapping
removed. With Toolbox)
appropriate code
changes, use 'zeros'
instead.

Forward Compatibility Considerations


Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
FCCPV Error Class property true
validation is not
available before
R2017a.
FCDQS Error Double-quoted true
strings are not
available before
R2017a. Use
character vectors for
scalar strings or cell
arrays of character
vectors for string
arrays.

7-189
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FCFAV Error Function argument true
validation is not
available before
R2019b.
FCHBL Error Hexadecimal and true
binary literals are
not available before
R2019b. Use
'hex2dec' and
'bin2dec' instead.
FCLFS Error Local functions in a true
script are not
available before
R2016b.
FCNVA Error Name=Value syntax true
is not available
before R2021a. Use
comma-separated
syntax instead.

Good Practices
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
ADAPPRE Warning Use app as the first true
F argument for
VAR_NAME.
ADMTHDI Warning Use true
NV VAR_NAME(app, ...)
to call this function.
ADPROP Warning Use app.VAR_NAME true
to refer to this
property.
ADPROPL Warning Use app.VAR_NAME true
C to reference a
property of app.
ALIGN Warning This keyword might true
not be aligned with
its matching END on
line VAR_NUMBER.

7-190
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ATTF Warning The Code Analyzer is true
unable to determine
if the expression
assigned to the
VAR_NAME attribute
evaluates to true or
false.
ATTOF Warning Setting the class true
attribute Abstract to
false is not
recommended.
BDLGI Warning Variable might be set true
by a nonlogical
operator.
BDLOG1 Warning A scalar logical value true
is expected in the
conditional
expression. Use 'any'
or 'all' to reduce the
array to a logical
scalar.
BDLOG2 Warning A scalar logical value true
is expected in the
conditional
expression. Use 'any'
or 'all' to reduce the
array to a logical
scalar, or compare
the scalar value to 0.
BDSCA Warning Unexpected use of true
VAR_OPERATOR in a
scalar context.
BDSCI Warning Variable might be set true
by a nonscalar
operator.

7-191
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CHAIN Warning Expressions like a true
VAR_NAME b
VAR_NAME c are
interpreted as (a
VAR_NAME b)
VAR_NAME c.
Typically, to test a
VAR_NAME b
VAR_NAME c
mathematically, if all
arguments are
numeric scalars, use
(a VAR_NAME b) &
(b VAR_NAME c),
otherwise use (a
VAR_NAME b) & (b
VAR_NAME c).
COMFS Warning This comma makes true
the file a script.
Therefore, all
functions in the file
are local functions.
COMNC Warning Comment with true
percent (%)
following comma
acts as a row
separator. Replace
the comma with a
semicolon to make
the row separation
clearer. Alternatively,
replace the percent
(%) with an ellipsis
(...) to add a
comment inside a
row.
COMPNOP Warning This logical true
comparison
simplifies to
VAR_NAME(...). Did
you mean to use
VAR_NAME to
evaluate function
argument:
VAR_NAME(...VAR_N
AME...)?

7-192
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COMPNOT Warning This logical true
comparison
simplifies to
~VAR_NAME(...). Did
you mean to use
VAR_NAME to
evaluate function
argument:
VAR_NAME(...VAR_N
AME...)?
CTCH Warning Best practice is for true
CATCH to be
followed by an
identifier that gets
the error
information.
CTOINW Warning Use of constructed true
object as input to
constructor is not
necessary.
CTPCT Warning The format might not true
agree with the
argument count.
DISPLAY Warning Overloading true
DISPLAY is not
recommended.
DSPMDA Warning Distributed array true
must be created
outside of an SPMD
block.
DUALC Warning Command might be true
prematurely ended
by comma.
ELARLOG Warning The VAR_NAME true
operator in the
expression
VAR_NAME(A
VAR_NAME B) is
unexpected. Should
this be
VAR_NAME(A)
VAR_NAME B?
ERTAG Warning The first argument of true
ERROR should be a
message identifier.

7-193
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
EVLCS Warning 'eval' is inefficient true
and makes code less
clear. Call the
statement directly.
EVLDOT Warning 'eval' is inefficient true
and makes code less
clear. Use dynamic
field names to access
structure fields or
object properties
instead.
EVLDUAL Warning This use of 'eval' is true
unnecessary and can
be removed. Call the
evaluated function
directly using
parentheses. For
example, use
'load(filename)'
instead of 'eval(['load
' filename])'.
EVLEQ Warning 'eval' is inefficient true
and makes code less
clear. Assign to the
variable directly.
EVLSEQV Warning Using 'eval' to true
AR dynamically assign
variables is not
recommended.
EVLSYS Warning 'eval' is inefficient true
and makes code less
clear. To make calls
to the operating
system use the
system function
instead.
FNCOLND Warning Consider explicitly true
defining the array,
and then using the
END operator to
index into it.
FNDEF Warning Function name true
VAR_NAME is known
to MATLAB by its file
name: VAR_FILE.

7-194
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FVAL Warning Calling functions R2019b true
using 'feval' is
usually not
necessary. Call the
function directly
instead.
FXSET Warning Loop index true
VAR_NAME is
changed inside of a
FOR loop.
FXUP Warning Outer loop index true
VAR_NAME is set
inside a nested
function.
GTARG Warning Function might be true
called with too many
arguments.
GVMIS Warning Global variables are true
inefficient and make
errors difficult to
diagnose. Use a
function with input
variables instead.
ITERS Warning The Code Analyzer true
type analysis may be
incorrect here.
KEYBOAR Warning Consider removing true
DFUN 'keyboard' function
once you have
finished debugging.
This function may
have security
implications.
LNGNM Warning Names longer than true
VAR_NUMBER
characters are not
supported. This
name has been
truncated to
VAR_NUMBER
characters.
LOAD Warning To avoid conflicts true
with functions on the
path, specify
variables to load
from file.

7-195
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
LOGMAX Warning Using 'max' on a true
logical expression is
hard to understand
and might be
incorrect. Consider
using 'any' instead.
LOGMIN Warning Using 'min' on a true
logical expression is
hard to understand
and might be
incorrect. Consider
using 'all' instead.
LOGPROD Warning Using 'prod' on a true
logical expression is
hard to understand
and might be
incorrect. Consider
using 'all' instead.
LOGSUM Info Consider using 'nnz' true
instead of 'sum' for
logical vectors to
improve readability.
LTARG Warning Function might be true
called with too few
arguments.
M3COL Warning Using three colons true
(a:b:c:d) in an
expression is
probably unintended.
MCCPE Warning Attempting to call a true
property or event
VAR_NAME as a
function.
MCCPI Warning Initialize the true
Constant property or
make it an Abstract
Constant property.
MCCSPS Warning Constant property true
VAR_NAME is not
modified.
'VAR_NAME.VAR_NA
ME' creates a struct
named VAR_NAME
with a field named
VAR_NAME.

7-196
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCHDP Warning A property default true
value that is a handle
will cause all
instances to share
the same object data.
To avoid sharing,
create the property
value in the
constructor. For
intentional sharing,
consider using a
Constant property.
MCHDT Warning Declaring the value true
of a property as a
handle might cause
all instances to share
the same default
handle. To avoid
sharing, create the
handle for this
property in the
constructor. To
express that sharing
is intentional, use
the Constant
property attribute.
MCNPN Warning VAR_NAME is true
referenced but is not
a property, method,
or event name
defined in this class.
MCNPR Warning VAR_NAME is not a true
property, but is the
target of an
assignment.
MCPO Warning VAR_NAME property true
has no effect in a
value class.
MCSAC Warning SetAccess cannot be true
set on Constant
properties.
MCSNOV Warning Set function in value true
class must return the
modified object.

7-197
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCSOH Warning Set function in true
handle class does not
need to return the
modified object.
MCSUP Warning The set method for true
the property
VAR_NAME should
not access another
property
(VAR_NAME).
MCVM Warning Value class method true
that modifies the
object must return
the modified object.
MDEPIN Warning Default values R2019b true
should not be
assigned to
dependent
properties because
dependent
properties do not
store the values.
MGMD Warning 'get' method should true
be implemented for
each dependent
property that does
not also have private
'GetAccess' attribute.
MHERM Warning Parenthesize the true
multiplication of
VAR_NAME and its
transpose to ensure
the result is
Hermitian.
MIPC1 Warning Calling the computer true
function with 'arch'
returns 'win64',
'glnxa64', or
'maci64'.

7-198
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MNUML Warning To create a square true
matrix, use
VAR_NAME(numel(...
), numel(...)).
Alternatively, use
VAR_NAME(size(...))
to create an array
with same size as
input array.
MOBSRV Warning Using SetObservable true
or GetObservable on
a Constant property
has no effect.
MTHANS Warning Using ANS as a true
method name is not
recommended as
ANS is frequently
overwritten by
MATLAB.
NBRAK1 Warning If you intend to true
specify expression
precedence, use
parentheses ()
instead of brackets
[].
NOANS Warning Using ANS as a true
variable is not
recommended as
ANS is frequently
overwritten by
MATLAB.
NOIN Warning Method VAR_NAME true
should either be a
static method or
have at least one
input argument.
PFEVB Warning Using true
EVALIN('base') or
ASSIGNIN('base')
inside a PARFOR
loop refers to the
worker machines'
base workspaces.

7-199
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFGP Warning Avoid assigning to true
GLOBAL or
PERSISTENT
variable VAR_NAME
inside a PARFOR
loop.
PFGV Warning Avoid using GLOBAL true
variable VAR_NAME
in a PARFOR loop.
PFIIN Warning The input variable true
VAR_NAME should
be initialized before
the PARFOR loop.
PFOUS Warning The output variable true
VAR_NAME might
not be used after the
PARFOR loop.
PFRIN Warning The reduction true
variable VAR_NAME
might not be set
before the PARFOR
loop.
PFRNI Warning Do not specify the true
increment explicitly.
The parfor loop can
only use an
increment of one.
PFRUS Warning The reduction true
variable VAR_NAME
might not be used
after the PARFOR
loop.
PFTUSW Warning The temporary true
variable VAR_NAME
might be used after
the PARFOR loop on
line VAR_NUMBER.
The value set on this
line is not available
after the loop.

7-200
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PFUIXW Warning The index variable true
VAR_NAME might be
used after the
PARFOR loop on line
VAR_NUMBER. The
value set on this line
is not available after
the loop.
RMFLD Warning RMFIELD output true
must be assigned
back to the
structure.
RMWRN Warning The warning with tag true
VAR_NAME has been
removed from
MATLAB, so this
statement has no
effect.
SEMFS Warning This semicolon true
makes the file a
script. Therefore, all
functions in the file
are local functions.
SHOCIRA Warning Using the true
A VAR_NAME operator
in the expression
VAR_NAME(A
VAR_NAME B) is
probably unintended.
SHVAU Warning Confusing usage of true
name VAR_NAME on
lines VAR_NUMBER
and VAR_NUMBER.
Initialize VAR_NAME
before line
VAR_NUMBER to
make it a shared
variable or rename
VAR_NAME on line
VAR_NUMBER to
disambiguate.

7-201
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SIMPT Warning This import true
statement runs
before any other
code in function
VAR_NAME.
Consider placing it at
the top of the
function body.
SPEVB Warning Using true
EVALIN('base') or
ASSIGNIN('base')
inside an SPMD
block refers to the
worker machines'
base workspaces.
SPGV Warning Using the GLOBAL true
or PERSISTENT
variable VAR_NAME
in an SPMD block
might fail because it
is accessed on a
worker machine.
STCMP Warning Use STRCMP instead true
of == or ~= to
compare character
vectors.
STFLD Warning SETFIELD output true
must be assigned
back to the
structure.
STISA Warning Consider using ISA true
instead of comparing
the class name.
STRNU Warning This variable, true
apparently a
structure, is changed
but the value might
be unused.
STRSZ Warning Use STRCMP to true
compare character
vectors that can have
different sizes.
SUBSIND Warning Do not overload true
EX 'subsindex' for
fundamental data
types.

7-202
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TLEV Warning VAR_NAME could be true
very inefficient
unless it is a top-
level statement in its
function.
TRYNC Warning TRY statement true
should have a
CATCH statement to
check for unexpected
errors.
UNONC Warning Assign the true
onCleanup output
argument to a
variable. Do not use
the tilde operator (~)
in place of a variable.
UNRPWR Warning Consider using true
parentheses to
explicitly specify
operator precedence.
VALST Warning VAR_NAME must be true
the last argument in
the argument list.
VTFIN Warning VAR_NAME should true
be the first input
argument to the
VAR_NAME function.
WLAST Warning WARNING('') does true
not reset the
warning state. Use
LASTWARN('')
instead.
WNTAG Warning The first argument of true
WARNING should be
a message identifier.
Using a message
identifier allows
users better control
over the message.

7-203
7 Editor Preferences

Unset Variables

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NODEF Warning Variable might be true
used before it is
defined.
PSET Warning Persistent variable is true
used, but might be
unset.
STOUT Warning Function return true
value might be
unset.
SUSENS Warning Variable is used, but true
might be unset
(within a script).
SVNODEF Warning Variable might not true
have a value,
because variable
definition may not be
executed.
USENS Warning Explicitly initialize true
this variable to avoid
a potential
uninitialized
variable, or use a
valid syntax for
function call on line
VAR_NUMBER.
USESWNS Error Variable must be true
explicitly defined
before first use.

Unused Constructions

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ASGLU Warning Value assigned to true
variable might be
unused. Consider
replacing the
variable with ~
instead.
CPROP Warning Confusing function true
call. Did you mean to
reference property
VAR_NAME?

7-204
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CPROPLC Warning Confusing function true
call. Maybe this is a
reference to property
VAR_NAME?
DEFNU Warning Function might be true
unused.
EQEFF Warning To assign values to true
variables, use =. The
== operator
compares equality of
values.
INUSA Warning Input argument true
might be unused
after the function
arguments block(s).
INUSD Warning Input argument true
might be unused.
Consider replacing
the argument with ~
instead.
MANU Warning Input argument true
might be unused.
Consider replacing
the argument with ~,
or make this method
Static instead.
MSNE Info No Code Analyzer true
check is found for
this check ID.
MSNU Info A Code Analyzer true
message was once
suppressed here, but
the message is no
longer generated.
NASGU Warning Value assigned to true
variable might be
unused.
NOEFF Warning The operation or true
expression
VAR_OPERATOR has
no evident effect.

7-205
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NUSED Warning Global or persistent true
variable might be
unused or unset in
this function or
script.
PREALL Warning The preallocated true
value assigned to
variable might be
unused.
PROP Warning There is a property true
named VAR_NAME.
Did you mean to
reference it?
PROPLC Warning There is a property true
named VAR_NAME.
Maybe this is a
reference to it?
PUSE Warning Persistent variable true
might be unused.
SETNU Warning Variable is set, but true
might be unused.
UNRCH Warning This statement (and true
possibly following
ones) cannot be
reached.
VANUS Warning Input argument true
'varargin' might be
unused.
VUNUS Warning VAR_OPERATOR true
produces a value
that might be
unused.

Suggested Improvements
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
AGRED Info 'arcgridread' is not R2020a true arcgridread
recommended. With (Mapping Toolbox)
appropriate code
changes, use
'readgeoraster'
instead.

7-206
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CAXIS Info 'caxis' is not R2022a true “The caxis function is
recommended. Use not recommended”
'clim' instead, which
is a direct
replacement.
CDFEPOC Info 'cdfepoch' is not R2024a true cdfread
H recommended. With
appropriate code
changes, use 'cdflib'
low-level functions
instead.
CDFEPOC Info 'ConvertEpochToDat R2024a true cdfread
H2DATE enum' is not
recommended. With
appropriate code
changes, use the
'DatetimeType'
parameter of
'cdfread' instead.
CELLDTS Info 'cell2dataset' is not R2014a true cell2dataset
ET recommended. With (Statistics and
appropriate code Machine Learning
changes, use Toolbox)
'cell2table' instead.
CLOCK Info 'clock' is not R2022b true clock
recommended. With
appropriate code
changes, use
'datetime("now")'
instead.
COMBNK Info 'combnk' is not R2020b true “combnk is not
recommended. With recommended”
appropriate code (Statistics and
changes, use Machine Learning
'nchoosek' instead. Toolbox)
COMMPAM Info 'comm.PAMDemodul R2018b true
D ator' is not
recommended. With
appropriate code
changes, use
'pamdemod' instead.

7-207
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COMMPAM Info 'comm.PAMModulato R2018b true
M r' is not
recommended. With
appropriate code
changes, use
'pammod' instead.
COMMSRC Info 'commsrc.pn' is not R2020b true
recommended. With
appropriate code
changes, use
'comm.PNSequence'
instead.
CRNR Info CORNER is not R2016a true cornermetric
recommended. Use (Image Processing
detectHarrisFeatures Toolbox)
or
detectMinEigenFeat
ures in Computer
Vision Toolbox
instead.
CRNRM Info CORNERMETRIC is R2016a true cornermetric
not recommended. (Image Processing
Use Toolbox)
detectHarrisFeatures
or
detectMinEigenFeat
ures and the
cornerPoints class in
Computer Vision
Toolbox instead.
CSVRD Info 'csvread' is not R2019a true csvread
recommended. With
appropriate code
changes, use
'readtable' or
'readmatrix' instead.
CSVWT Info 'csvwrite' is not R2019a true csvwrite
recommended. With
appropriate code
changes, use
'writematrix' instead.
DAPPLUT Info 'applylut' is not R2012b true applylut (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'bwlookup' instead.

7-208
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DATE Info 'date' is not R2022b true date
recommended. With
appropriate code
changes, use
'datetime("today")'
instead.
DATIC Info 'datetick' is not R2024a true datetick
recommended. With
appropriate code
changes, use
datetime and
duration arrays
directly in charts.
Modify display using
'xtickformat',
'ytickformat', or
'ztickformat'.
DATNM Info 'datenum' is not R2022b true datenum
recommended. With
appropriate code
changes, use
'datetime' instead.
DATOD Info 'addtodate' is not R2022b true addtodate
recommended. With
appropriate code
changes, use
'datetime', 'duration',
and the plus
operator instead.
DATST Info 'datestr' is not R2022b true datestr
recommended. With
appropriate code
changes, use
'datetime' instead.
DBHMNWN Info 'sigwin.bohmanwin' R2013a true
is not recommended.
With appropriate
code changes, use
'bohmanwin' instead.
DBHRRS Info 'sigwin.blackmanhar R2013a true
ris' is not
recommended. With
appropriate code
changes, use
'blackmanharris'
instead.

7-209
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DBLKMN Info 'sigwin.blackman' is R2013a true
not recommended.
With appropriate
code changes, use
'blackman' instead.
DBLKPRC Info 'blkproc' is not R2010b true blockproc (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'blockproc' instead.
DBURG Info 'spectrum.burg' is R2013a true “Autoregressive PSD
not recommended. Object to Function
With appropriate Replacement Syntax”
code changes, use (Signal Processing
'pburg' instead. Toolbox)
DCHBWN Info 'sigwin.chebwin' is R2013a true
not recommended.
With appropriate
code changes, use
'chebwin' instead.
DCOV Info 'spectrum.cov' is not R2013a true “Autoregressive PSD
recommended. With Object to Function
appropriate code Replacement Syntax”
changes, use 'pcov' (Signal Processing
instead. Toolbox)
DCPTF Info 'cp2tform' is not R2013b true cp2tform (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'fitgeotrans' instead.
DDBLQD Info 'dblquad' is not R2013a true dblquad
recommended. With
appropriate code
changes, use
'integral2' instead.
DDBMEX Info 'mexdebug' is not R2006a true
recommended. With
appropriate code
changes, use 'dbmex'
instead.
DDELTRI Info 'DelaunayTri' is not R2013a true DelaunayTri
recommended. With
appropriate code
changes, use
'delaunayTriangulati
on' instead.

7-210
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DEPBART Info 'sigwin.barthannwin' R2013a true
is not recommended.
With appropriate
code changes, use
'barthannwin'
instead.
DEPLETT Info 'sigwin.bartlett' is R2013a true
not recommended.
With appropriate
code changes, use
'bartlett' instead.
DEPNOE Info 'numberofelements' R2014a true
is not recommended.
With appropriate
code changes, use
'numel' instead.
DETIM Info 'etime' is not R2022b true etime
recommended. With
appropriate code
changes, use
'datetime' and the
minus operator
instead.
DEVCTR Info 'spectrum.eigenvecto R2013a true “Subspace
r' is not Pseudospectrum
recommended. With Object to Function
appropriate code Replacement Syntax”
changes, use 'peig' (Signal Processing
instead. Toolbox)
DFIRGAU Info 'firgauss' is not R2006a true
SS recommended. With
appropriate code
changes, use
'gaussdesign'
instead.
DFIRRCO Info 'firrcos' is not R2013b true
S recommended. With
appropriate code
changes, use
'rcosdesign' instead.
DFLIPDI Info 'flipdim' is not R2014a true flipdim
M recommended. With
appropriate code
changes, use 'flip'
instead.

7-211
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DFLTTPW Info 'sigwin.flattopwin' is R2013a true
N not recommended.
With appropriate
code changes, use
'flattopwin' instead.
DFTSMTX Info 'fts2mtx' is not R2006a true
recommended. With
appropriate code
changes, use
'fts2mat' instead.
DGAUSSF Info 'gaussfir' is not R2013b true
IR recommended. With
appropriate code
changes, use
'gaussdesign'
instead.
DGCAT Info 'gcat' is not R2022b true gcat (Parallel
recommended. Use Computing Toolbox)
'spmdCat' instead,
which is a direct
replacement.
DGOP Info 'gop' is not R2022b true gop (Parallel
recommended. Use Computing Toolbox)
'spmdReduce'
instead, which is a
direct replacement.
DGPLUS Info 'gplus' is not R2022b true gplus (Parallel
recommended. Use Computing Toolbox)
'spmdPlus' instead,
which is a direct
replacement.
DGSWIN Info 'sigwin.gausswin' is R2013a true
not recommended.
With appropriate
code changes, use
'gausswin' instead.
DGTORD Info 'degtorad' is not R2018a true
recommended. Use
'deg2rad' instead,
which is a direct
replacement.
DHANN Info 'sigwin.hann' is not R2013a true
recommended. With
appropriate code
changes, use 'hann'
instead.

7-212
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DHMMNG Info 'sigwin.hamming' is R2013a true
not recommended.
With appropriate
code changes, use
'hamming' instead.
DIMTRNS Info 'imtransform' is not R2013b true imtransform
recommended. With (Image Processing
appropriate code Toolbox)
changes, use
'imwarp' instead.
DISEQN Info 'isequalwithequalnan R2012a true isequalwithequal
s' is not nans
recommended. With
appropriate code
changes, use
'isequaln' instead.
DISPLAY Info Programmatic use of R2018a true
PROG DISPLAY is not
recommended. Use
DISP or FPRINTF
instead.
DISSTR Info 'isstr' is not R2010a true isstr
recommended. With
appropriate code
changes, use 'ischar'
instead.
DKSER Info 'sigwin.kaiser' is not R2013a true
recommended. With
appropriate code
changes, use 'kaiser'
instead.
DLABBAR Info 'labBarrier' is not R2022b true labBarrier
RIER recommended. Use (Parallel Computing
'spmdBarrier' Toolbox)
instead, which is a
direct replacement.
DLABBRO Info 'labBroadcast' is not R2022b true labBroadcast
ADCAST recommended. Use (Parallel Computing
'spmdBroadcast' Toolbox)
instead, which is a
direct replacement.
DLABIND Info 'labindex' is not R2022b true labindex (Parallel
EX recommended. Use Computing Toolbox)
'spmdIndex' instead,
which is a direct
replacement.

7-213
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DLABPRO Info 'labProbe' is not R2022b true labProbe (Parallel
BE recommended. Use Computing Toolbox)
'spmdProbe' instead,
which is a direct
replacement.
DLABREC Info 'labReceive' is not R2022b true labReceive
EIVE recommended. Use (Parallel Computing
'spmdReceive' Toolbox)
instead, which is a
direct replacement.
DLABSEN Info 'labSend' is not R2022b true labSendReceive
D recommended. Use (Parallel Computing
'spmdSend' instead, Toolbox)
which is a direct
replacement.
DLABSEN Info 'labSendReceive' is R2022b true labSendReceive
DRECEIV not recommended. (Parallel Computing
E Use Toolbox)
'spmdSendReceive'
instead, which is a
direct replacement.
DLMRD Info 'dlmread' is not R2019a true dlmread
recommended. With
appropriate code
changes, use
'readtable' or
'readmatrix' instead.
DLMWT Info 'dlmwrite' is not R2019a true dlmwrite
recommended. With
appropriate code
changes, use
'writematrix' instead.
DMCOV Info 'spectrum.mcov' is R2013a true “Autoregressive PSD
not recommended. Object to Function
With appropriate Replacement Syntax”
code changes, use (Signal Processing
'pmcov' instead. Toolbox)
DMTM Info 'spectrum.mtm' is R2013a true “Multitaper PSD
not recommended. Object to Function
With appropriate Replacement Syntax”
code changes, use (Signal Processing
'pmtm' instead. Toolbox)

7-214
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DMUSIC Info 'spectrum.music' is R2013a true “Subspace
not recommended. Pseudospectrum
With appropriate Object to Function
code changes, use Replacement Syntax”
'pmusic' instead. (Signal Processing
Toolbox)
DNLWN Info 'sigwin.nuttallwin' is R2013a true
not recommended.
With appropriate
code changes, use
'nuttallwin' instead.
DNUMLAB Info 'numlabs' is not R2022b true numlabs (Parallel
S recommended. Use Computing Toolbox)
'spmdSize' instead,
which is a direct
replacement.
DPNWN Info 'sigwin.parzenwin' is R2013a true
not recommended.
With appropriate
code changes, use
'parzenwin' instead.
DPRDGRM Info 'spectrum.periodogr R2013a true “Periodogram PSD
am' is not Object to Function
recommended. With Replacement Syntax”
appropriate code (Signal Processing
changes, use Toolbox)
'periodogram'
instead.
DQUAD Info 'quad' is not R2013a true quadv
recommended. With
appropriate code
changes, use
'integral' instead.
DQUADL Info 'quadl' is not R2013a true quadl
recommended. With
appropriate code
changes, use
'integral' instead.
DQUADV Info 'quadv' is not R2013a true quadv
recommended. With
appropriate code
changes, use
'integral' instead.

7-215
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DRCTWN Info 'sigwin.rectwin' is R2013a true
not recommended.
With appropriate
code changes, use
'rectwin' instead.
DSTRMT Info 'str2mat' is not R2010a true str2mat
recommended. With
appropriate code
changes, use 'char'
instead.
DSTRRD Info 'strread' is not R2010a true strread
recommended. With
appropriate code
changes, use
'textscan' instead.
DSTRVCT Info 'strvcat' is not R2010a true strvcat
recommended. With
appropriate code
changes, use 'char'
instead.
DSTSTR Info 'setstr' is not R2010a true
recommended. With
appropriate code
changes, use 'char'
instead.
DTKYWN Info 'sigwin.tukeywin' is R2013a true
not recommended.
With appropriate
code changes, use
'tukeywin' instead.
DTRIINT Info 'TriScatteredInterp' R2013a true TriScatteredInte
is not recommended. rp
With appropriate
code changes, use
'scatteredInterpolant
' instead.
DTRIQD Info 'triplequad' is not R2013a true triplequad
recommended. With
appropriate code
changes, use
'integral3' instead.

7-216
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
DTRIREP Info 'TriRep' is not R2013a true TriRep
recommended. With
appropriate code
changes, use
'triangulation'
instead.
DTRNG Info 'sigwin.triang' is not R2013a true
recommended. With
appropriate code
changes, use 'triang'
instead.
DTSET Info 'dataset' is not R2014a true
recommended. With
appropriate code
changes, use 'table'
instead.
DTXTRD Info 'textread' is not R2010a true textread
recommended. With
appropriate code
changes, use
'textscan' instead.
DTYLRWN Info 'sigwin.taylorwin' is R2013a true
not recommended.
With appropriate
code changes, use
'taylorwin' instead.
DWELCH Info 'spectrum.welch' is R2013a true “Welch PSD Object
not recommended. to Function
With appropriate Replacement Syntax”
code changes, use (Signal Processing
'pwelch' instead. Toolbox)
DYULEAR Info 'spectrum.yulear' is R2013a true “Autoregressive PSD
not recommended. Object to Function
With appropriate Replacement Syntax”
code changes, use (Signal Processing
'pyulear' instead. Toolbox)
EMDATE Info 'eomdate' is not R2022a true eomdate
recommended. With
appropriate code
changes, use
'dateshift' with a
'datetime' input
instead.

7-217
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
EMTAG Info The compilation R2011a true
directive (or pragma)
'eml' is not
recommended. Use
'codegen' instead.
EMXTR Info The 'eml' namespace R2011a true
is not recommended.
Use 'codegen'
instead.
EV2IN Info Using 'eval' with two R2021b true
arguments is not
recommended. Use
try/catch statements
instead to make code
more clear and
efficient.
EV3IN Info Using 'evalin' with R2021b true
three arguments is
not recommended.
Use try/catch
statements instead
to make code more
clear and efficient.
EVLC Info Using 'evalc' with R2008a true try
two arguments is not
recommended. Use
try/catch statements
instead to make code
more clear and
efficient.
EZCNTRF Info EZCONTOURF is not R2016a true ezcontourf
recommended. Use
FCONTOUR instead,
and set the 'Fill'
value to 'on'.
EZCONTR Info 'ezcontour' is not R2016a true ezcontour
recommended. With
appropriate code
changes, use
'fcontour' instead.
EZGRPH3 Info EZGRAPH3 is not R2017a true
recommended. Use
FCONTOUR,
FMESH, FPLOT,
FPLOT3 or FSURF
instead.

7-218
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
EZMESH Info 'ezmesh' is not R2016a true ezmesh
recommended. With
appropriate code
changes, use 'fmesh'
instead.
EZMSHC Info EZMESHC is not R2016a true ezmeshc
recommended. Use
FMESH instead, and
set the
'ShowContours'
value to 'on'.
EZPLT Info EZPLOT is not R2016a true ezplot3
recommended. Use
FPLOT or FIMPLICIT
instead.
EZPLT3 Info 'ezplot3' is not R2016a true ezplot3
recommended. With
appropriate code
changes, use 'fplot3'
instead.
EZSRFC Info EZSURFC is not R2016a true ezsurfc
recommended. Use
FSURF instead, and
set the
'ShowContours'
value to 'on'.
EZSURF Info 'ezsurf' is not R2016a true ezsurf
recommended. With
appropriate code
changes, use 'fsurf'
instead.
FISADM Info 'addmf' is not R2018b true
recommended. With
appropriate code
changes, use
'addMF' instead.
FISADR Info 'addrule' is not R2018b true
recommended. Use
'addRule' instead.
FISWRT Info 'writefis' is not R2018b true
recommended. Use
'writeFIS' instead,
which is a direct
replacement.

7-219
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FORMATN Warning 'format' with no R2021b true format
OI input or output
arguments is not
recommended. Use
'format("default")'
instead.
FSTR Info 'findstr' is not R2010b true findstr
recommended. With
appropriate code
changes, use 'strfind'
instead.
GAOPT Info 'gaoptimset' is not R2019a true
recommended. With
appropriate code
changes, use
'optimoptions'
instead.
GETFMT Info Using get for R2021a true “Using get and set to
retrieving values of access or change
numeric display display format is not
format is not recommended”
recommended. With
appropriate code
changes, use
'settings' object
instead.
GETFSP Info Using get for R2021a true “Using get and set to
retrieving values of access or change
line spacing is not display format is not
recommended. With recommended”
appropriate code
changes, use
'settings' object
instead.
GTRED Info 'geotiffread' is not R2020a true geotiffread
recommended, (Mapping Toolbox)
except when reading
a GeoTIFF file from a
URL. With
appropriate code
changes, use
'readgeoraster'
instead.

7-220
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
HDFI Info 'hdf5info' is not R2011a true hdf5info
recommended. With
appropriate code
changes, use 'h5info'
instead.
HDFR Info 'hdf5read' is not R2011a true hdf5read
recommended. With
appropriate code
changes, use
'h5read' instead.
HDFW Info 'hdf5write' is not R2011a true hdf5write
recommended. With
appropriate code
changes, use
'h5write' instead.
HGSTGT Info hgsetget is not R2016b true matlab.mixin.Set
recommended. Use Get
matlab.mixin.SetGet
or
matlab.mixin.SetGet
ExactNames instead.
HIST Info 'hist' is not R2014b true histc
recommended. With
appropriate code
changes, use
'histogram' instead.
HISTC Info 'histc' is not R2014b true histc
recommended. With
appropriate code
changes, use
'histcounts' instead.
HOUGH Info HOUGH(BW,'ThetaR R2009b true hough (Image
esolution',VAL) is not Processing Toolbox)
recommended. Use
HOUGH(BW,'Theta',-
90:VAL:(90-VAL) )
instead.
IM2BW Info 'im2bw' is not R2016a true
recommended. With
appropriate code
changes, use
'imbinarize' instead.

7-221
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
IMELLPS Info 'imellipse' is not R2018b true imellipse (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'drawellipse' or
'drawcircle' instead.
IMFREEH Info 'imfreehand' is not R2018b true imfreehand (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'drawfreehand'
instead.
IMGDT Info Using R2017b true
'DataAugmentation'
in function
'imageInputLayer' is
not recommended.
Use function
'augmentedImageDat
astore' instead.
IMLINE Info 'imline' is not R2018b true imline (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'drawline' instead.
IMPNT Info 'impoint' is not R2018b true impoint (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'drawpoint' instead.
IMPOLY Info 'impoly' is not R2018b true impoly (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'drawpolygon' or
'drawpolyline'
instead.
IMRECT Info 'imrect' is not R2018b true imrect (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'drawrectangle'
instead.

7-222
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
IMSSO Info 'IntMasterSolverOpti R2023b true
ons' is not
recommended. Use
'IntMainSolverOptio
ns' instead, which is
a direct replacement.
INSTHWI Info 'instrhwinfo('ivi')' is R2022b true instrhwinfo
not recommended. (Instrument Control
With appropriate Toolbox)
code changes, use
'ividriverlist' or
'ividevlist' instead.
INTRPP Info 'pp' is not R2013b true interp1
recommended. Use
the
griddedInterpolant
class instead.
INWVX Info 'instrhwinfo('vxipnp') R2022b true instrhwinfo
' is not (Instrument Control
recommended. With Toolbox)
appropriate code
changes, use
'ividriverlist' or
'ividevlist' instead.
ISAUG Info 'augmentedImageSo R2018a true augmentedImageSo
urce' is not urce (Deep Learning
recommended. Use Toolbox)
'augmentedImageDat
astore' instead,
which is a direct
replacement.
ISCLSTR Info To support string in R2018a true
addition to cellstr,
include a call to
'isstring'.
ISDIR Info 'isdir' is not R2017b true
recommended. Use
'isfolder' instead,
which is a direct
replacement.

7-223
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ISDNS Info 'denoisingImageSour R2018a true “denoisingImageSou
ce' is not rce function has
recommended. Use been removed”
'denoisingImageData (Image Processing
store' instead, which Toolbox)
is a direct
replacement.
ISPIX Info 'pixelLabelImageSou R2018a true pixelLabelImageS
rce' is not ource (Computer
recommended. Use Vision Toolbox)
'pixelLabelImageDat
astore' instead,
which is a direct
replacement.
LEGACYM Info Setting LegacyMode R2016b true
D to true is not
recommended. Set
LegacyMode to false
instead.
LEGACYT Info 'DetectorMethod' is R2016b true
RD applicable only when
LegacyMode is set to
true. However,
setting LegacyMode
to true is not
recommended.
LEGACYT Info 'GainOutputPort' is R2016b true
RG applicable only when
LegacyMode is set to
true. However,
setting LegacyMode
to true is not
recommended.
LEGACYT Info 'LoopMethod' is R2016b true
RL applicable only when
LegacyMode is set to
true. However,
setting LegacyMode
to true is not
recommended.
LEGACYT Info 'StepSize' is R2016b true
RS applicable only when
LegacyMode is set to
true. However,
setting LegacyMode
to true is not
recommended.

7-224
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
LEGACYT Info 'UpdatePeriod' is R2016b true
RU applicable only when
LegacyMode is set to
true. However,
setting LegacyMode
to true is not
recommended.
LERR Info LASTERR and R2009b true lasterr
LASTERROR are not
recommended. Use
an identifier on the
CATCH block
instead.
MASSO Info 'MasterSolverOption R2023b true
s' is not
recommended. Use
'MainSolverOptions'
instead, which is a
direct replacement.
MATCH2 Info STRMATCH is not R2010b true strmatch
recommended. Use
STRNCMP or
VALIDATESTRING
instead.
MATCH3 Info STRMATCH is not R2010b true
recommended. Use
STRCMP instead.
MATDTSE Info 'mat2dataset' is not R2014a true mat2dataset
T recommended. With (Statistics and
appropriate code Machine Learning
changes, use Toolbox)
'array2table' instead.
MDFCHL Info 'channelList' method R2024a true
of 'mdf' class is not
recommended. With
appropriate code
changes, use
'mdfChannelInfo'
function instead.
MDFLT1 Info BLKSZ is required R2016a true medfilt1 (Signal
for backward Processing Toolbox)
compatibility and is
ignored. Use []
instead.

7-225
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MDFOBJ Info 'mdf' is not R2024a true
recommended. With
appropriate code
changes, use
'mdfInfo',
'mdfChannelGroupIn
fo' or
'mdfChannelInfo'
instead.
MDFRD Info 'read' method of R2024a true
'mdf' class is not
recommended. With
appropriate code
changes, use
'mdfRead' function
instead.
MDFSVA Info 'saveAttachment' R2024a true
method of 'mdf' class
is not recommended.
With appropriate
code changes, use
'mdfSaveAttachment'
function instead.
MLNT Info 'mlint' is not R2018b true checkcode
recommended. Use
'checkcode' instead,
which is a direct
replacement.
MNRFIT Info 'mnrfit' is not R2023b true mnrfit (Statistics
recommended. With and Machine
appropriate code Learning Toolbox)
changes, use 'fitmnr'
instead.
MNRVAL Info 'mnrval' is not R2023b true
recommended. With
appropriate code
changes, use
'MultinomialRegressi
on.predict' instead.
MNTHS Info 'months' is not R2022a true months
recommended. With
appropriate code
changes, use
'between' with a
'datetime' input
instead.

7-226
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MTFA1 Info MAKETFORM('AFFI R2013b true maketform (Image
NE',A) is not Processing Toolbox)
recommended. Use
AFFINE2D or
AFFINE3D instead.
MTFA2 Info MAKETFORM('AFFI R2013b true maketform (Image
NE',U,X) is not Processing Toolbox)
recommended. Use
FITGEOTRANS
instead.
MTFB Info MAKETFORM('BOX', R2013b true maketform (Image
...) is not Processing Toolbox)
recommended. Use
IMREF2D or
IMREF3D instead.
MTFP1 Info MAKETFORM('PROJ R2013b true maketform (Image
ECTIVE',A) is not Processing Toolbox)
recommended. Use
PROJECTIVE2D
instead.
MTFP2 Info MAKETFORM('PROJ R2013b true maketform (Image
ECTIVE',U,X) is not Processing Toolbox)
recommended. Use
FITGEOTRANS
instead.
MXDATE Info 'm2xdate' is not R2022a true m2xdate
recommended. With
appropriate code
changes, use
'exceltime' with a
'datetime' input
instead.
NANCOV Info 'nancov' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'cov' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)

7-227
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NANMAX Info 'nanmax' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'max' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NANMEAN Info 'nanmean' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'mean' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NANMEDI Info 'nanmedian' is not R2020b true “nancov, nanmax,
AN recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use nanstd, nansum, and
'median' instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NANMIN Info 'nanmin' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'min' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NANSTD Info 'nanstd' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'std' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)

7-228
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NANSUM Info 'nansum' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'sum' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NANVAR Info 'nanvar' is not R2020b true “nancov, nanmax,
recommended. With nanmean,
appropriate code nanmedian, nanmin,
changes, use 'var' nanstd, nansum, and
instead. nanvar functions are
not recommended”
(Statistics and
Machine Learning
Toolbox)
NCHKI Info NARGCHK is not R2011b true
recommended. Use
NARGINCHK
instead.
NCHKM Info NARGCHK is not R2011b true nargoutchk
recommended. Use
NARGOUTCHK
without ERROR
instead.
NCHKN Info NARGCHK is not R2011b true nargoutchk
recommended. Use
NARGINCHK
without ERROR
instead.
NCHKO Info Using NARGCHK R2011b true nargoutchk
with NARGOUT is
not recommended.
Use NARGOUTCHK
instead.
NUMCH Info 'NumberOfChannels' R2018b true
is not recommended.
Use 'NumChannels'
instead.
NVREPLA Info 'addParamValue' is R2014a true addParamValue
not recommended.
Use 'addParameter'
instead.

7-229
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NVREPLM Info 'MidPctRef' is not R2014a true addParamValue
recommended. Use
'MidPercentReferenc
eLevel' instead.
NVREPLP Info 'PctRefLevels' is not R2014a true addParamValue
recommended. Use
'PercentReferenceLe
vels' instead.
OLDSIM Info This syntax of the R2024a true sim (Simulink)
'sim' command which
returns multiple
arguments is not
recommended. With
appropriate code
changes, turn on
'ReturnWorkspaceOu
tputs' and return
simulation results
using the single-
output format
instead.
OOPS Info Defining a class R2024b true classdef
using 'function'
syntax is not
recommended. With
appropriate code
changes, use
'classdef' syntax
instead.
PLBL Info 'polybool' is not R2018a true polybool (Mapping
recommended. With Toolbox)
appropriate code
changes, use
'polyshape' instead.
PLOTYY Info 'plotyy' is not R2016a true plotyy
recommended. With
appropriate code
changes, use 'yyaxis'
instead.
PMTMCON Info When using PMTM R2018a true
F with three output
arguments, the
'ConfidenceLevel'
input argument is
recommended.

7-230
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
POLAR Info 'polar' (MATLAB) is R2016a true polar
not recommended.
Use 'polarplot'
instead.
PRTOG Info '-opengl' is not R2021b true “The print options -
recommended. Use '- opengl and -painters
image' instead, are not
which is a direct recommended”
replacement.
PRTPT Info '-painters' is not R2021b true “The print options -
recommended. Use '- opengl and -painters
vector' instead, are not
which is a direct recommended”
replacement.
PSOPT Info 'psoptimset' is not R2019a true
recommended. With
appropriate code
changes, use
'optimoptions'
instead.
PYVER Info 'pyversion' is not R2019b true “pyversion is not
recommended. With recommended”
appropriate code
changes, use 'pyenv'
instead.
RAND Info RAND or RANDN R2013a true “Replace
with the 'seed', Discouraged
'state', or 'twister' Syntaxes of rand and
inputs is not randn”
recommended. Use
RNG instead.
RDTODG Info 'radtodeg' is not R2015b true
recommended. Use
'rad2deg' instead,
which is a direct
replacement.
RISKEAD Info 'modelAccuracy' R2023b true
MA method of
'risk.credit.ead.EAD
Model' class is not
recommended. Use
'modelCalibration'
method of
'risk.credit.ead.EAD
Model' class instead.

7-231
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
RISKEAD Info 'modelAccuracyPlot' R2023b true
MAP method of
'risk.credit.ead.EAD
Model' class is not
recommended. Use
'modelCalibrationPlo
t' method of
'risk.credit.ead.EAD
Model' class instead.
RISKLGD Info 'modelAccuracy' R2023b true
MA method of
'risk.credit.lgd.LGD
Model' class is not
recommended. Use
'modelCalibration'
method of
'risk.credit.lgd.LGD
Model' class instead.
RISKLGD Info 'modelAccuracyPlot' R2023b true
MAP method of
'risk.credit.lgd.LGD
Model' class is not
recommended. Use
'modelCalibrationPlo
t' method of
'risk.credit.lgd.LGD
Model' class instead.
RISKLMA Info 'modelAccuracy' R2023b true
method of
'risk.credit.pd.Lifeti
mePDModel' class is
not recommended.
Use
'modelCalibration'
method of
'risk.credit.pd.Lifeti
mePDModel' class
instead.

7-232
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
RISKLMA Info 'modelAccuracyPlot' R2023b true
P method of
'risk.credit.pd.Lifeti
mePDModel' class is
not recommended.
Use
'modelCalibrationPlo
t' method of
'risk.credit.pd.Lifeti
mePDModel' class
instead.
RISKLMM Info 'Model' property of R2023b true
'risk.credit.pd.Lifeti
mePDModel' class is
not recommended.
Use
'UnderlyingModel'
property of
'risk.credit.pd.Lifeti
mePDModel' class
instead.
ROIFILL Info 'roifill' is not R2015a true roifill (Image
recommended. With Processing Toolbox)
appropriate code
changes, use
'regionfill' instead.
ROSE Info 'rose' is not R2016b true
recommended. With
appropriate code
changes, use
'polarhistogram'
instead.
SAOPT Info 'saoptimset' is not R2019a true
recommended. With
appropriate code
changes, use
'optimoptions'
instead.
SETFMT Info Using set for R2021a true “Using get and set to
assigning values of access or change
numeric display display format is not
format is not recommended”
recommended. With
appropriate code
changes, use
'settings' object
instead.

7-233
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SETFSP Info Using set for R2021a true “Using get and set to
assigning values of access or change
line spacing is not display format is not
recommended. With recommended”
appropriate code
changes, use
'settings' object
instead.
SIM Info 'sim' in parfor loop is R2018a true
not recommended.
Replace the parfor
loop with 'parsim'.
SIMVARI Info 'Simulink.Variant' is R2024b true Simulink.Variant
ANT not recommended. Expression
Use (Simulink)
'Simulink.VariantExp
ression' instead,
which is a direct
replacement.
STRCLQT Info 'string({'str1', R2017a true
'str2'})' is not
recommended. Use
'["str1", "str2"]'
instead.
STRQUOT Info string('...') is not R2017a true
recommended. Use
"..." instead.
STRUCTD Info 'struct2dataset' is R2014a true struct2dataset
TSET not recommended. (Statistics and
With appropriate Machine Learning
code changes, use Toolbox)
'struct2table'
instead.
SUBIMGN Info 'subimage' is not R2016b true subimage (Image
R recommended. With Processing Toolbox)
appropriate code
changes, use
'imshow' instead.
TDTVEC Info 'datevec' with serial R2022b true datevec
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' instead.

7-234
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
THOUR Info 'hour' with serial R2022a true hour
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.
TMNTH Info 'month' with serial R2022a true month
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.
TMNUT Info 'minute' with serial R2022a true minute
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.
TNDAY Info 'day' with serial date R2022a true day
number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.
TNOW1 Info 'now' is not R2022b true now
recommended. With
appropriate code
changes, use
'datetime("now")'
instead.
TNOW2 Info 'datetime(now, R2022b true
'ConvertFrom',
'datenum')' is not
recommended. Use
'datetime("now")'
instead, which is a
direct replacement.

7-235
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
TODATEN Info 'todatenum' is not R2024a true todatenum
UM recommended. With
appropriate code
changes, use the
'DatetimeType'
parameter of
'cdfread' instead.
TQURT Info 'quarter' with serial R2022a true quarter
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.
TSCND Info 'second' with serial R2022a true second
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.
TTDAY1 Info 'today' is not R2022a true today
recommended. With
appropriate code
changes, use
'datetime("today")'
instead.
TTDAY2 Info 'datetime(today, R2022a true today
'ConvertFrom',
'datenum')' is not
recommended. Use
'datetime("today")'
instead, which is a
direct replacement.
TYEAR Info 'year' with serial R2022a true year
date number or text
inputs is not
recommended. With
appropriate code
changes, use
'datetime' as input
instead.

7-236
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
URLRD Info 'urlread' is not R2014b true
recommended. With
appropriate code
changes, use
'webread' or
'webwrite' instead.
URLWR Info 'urlwrite' is not R2014b true
recommended. With
appropriate code
changes, use
'websave' instead.
VEMAT Info 'vec2mat' is not R2020a true
recommended. With
appropriate code
changes, use
'reshape' instead.
VERLESS Info verLessThan('matlab' R2023b true
MATLAB , ...) is not
recommended. With
appropriate code
changes, use
'isMATLABReleaseOl
derThan' instead.
VERMATL Info ver('matlab') is not R2023b true
AB recommended. With
appropriate code
changes, use
'matlabRelease'
instead.
VIDREAD Info 'NumberOfFrames' is R2014b true
not recommended.
Use 'NumFrames'
instead.
WKNUM Info 'weeknum' is not R2022a true weeknum
recommended. With
appropriate code
changes, use 'week'
with a 'datetime'
input instead.

7-237
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
XFRWSB Info The R2024a true parsim (Simulink)
'TransferBaseWorksp
aceVariables' option
is not recommended
for 'batchsim'. With
appropriate code
changes, consider
using project startup
scripts or the
'SetupFcn' option
instead.
XFRWSP Info The R2024a true
'TransferBaseWorksp
aceVariables' option
is not recommended
for 'parsim'. With
appropriate code
changes, consider
using project startup
scripts or the
'SetupFcn' option
instead.
XLSRD Info 'xlsread' is not R2019a true xlsread
recommended. With
appropriate code
changes, use
'readtable',
'readmatrix' or
'readcell' instead.
XLSWT Info 'xlswrite' is not R2019a true xlswrite
recommended. With
appropriate code
changes, use
'writematrix' or
'writecell' instead.
XMDATE Info 'x2mdate' is not R2022a true x2mdate
recommended. With
appropriate code
changes, use
'datetime(...,
"ConvertFrom",
"excel")' instead.

7-238
Index of Code Analyzer Checks

Readability Improvements
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
ASGSL Info Assignment to true
variable might be
unnecessary.
CHARTEN Info For readability, true
consider using
'newline' instead of
'char(10)'.
COMNL Info Newline following true
comma acts as a row
separator. Replace
the comma with a
semicolon to make
the row separation
clearer. Alternatively,
use an ellipsis (...) to
continue the current
row on the next line.
DSPSP Info 'disp(sprintf(...))' can true
usually be replaced
by 'fprintf(...\n)'.
DSPSY Info 'display(sprintf(...))' true
can usually be
replaced by
'fprintf(...\n)'.
FLUDLR Info For readability, true
consider using
rot90(x,2) instead of
flipud(fliplr(x)) or
fliplr(flipud(x)).
FVINR Info For readability, add true
Input attribute to the
input arguments
block.
IJCL Warning For improved true
robustness, consider
replacing i and j by
1i.
ISCEL Info Use ISCELL instead true
of comparing the
class to 'cell'.
ISCHR Info Use ISCHAR instead true
of comparing the
class to 'char'.

7-239
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
ISCOL Info When checking if a true
variable is a column
vector consider using
ISCOLUMN.
ISLOG Info Use ISLOGICAL true
instead of comparing
the class to 'logical'.
ISMAT Info When checking if a true
variable is a matrix
consider using
ISMATRIX.
ISROW Info When checking if a true
variable is a row
vector consider using
ISROW.
ISSTR Info Use ISSTRUCT true
instead of comparing
the class to 'struct'.
LOGL Info Use 'true' or 'false' true
instead of 'logical(1)'
or 'logical(0)'.
MFAMB Warning Code Analyzer true
cannot determine
whether VAR_NAME
is a variable or a
function, and
assumes it is a
function.
NBRAK2 Info Use of brackets [] is true
unnecessary.
NCHKE Info Use NARGOUTCHK true
without ERROR.
PSIZE Info NUMEL(x) is usually true
faster than
PROD(SIZE(x)).
RPMT0 Info For readability, true
consider using
'zeros(x,y)' instead of
'repmat(0,x,y)'.
RPMT1 Info For readability, true
consider using
'ones(x,y)' instead of
'repmat(1,x,y)'.

7-240
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
RPMTF Info For readability, true
consider using
'false(x,y)' instead of
'repmat(false,x,y)'.
RPMTI Info For readability, true
consider using
'Inf(x,y)' instead of
'repmat(Inf,x,y)'.
RPMTN Info For readability, true
consider using
'NaN(x,y)' instead of
'repmat(NaN,x,y)'.
RPMTT Info For readability, true
consider using
'true(x,y)' instead of
'repmat(true,x,y)'.
SEPEX Warning Consider using true
newline, semicolon,
or comma before this
statement for
readability.
SPERR Info ERROR takes true
SPRINTF-like
arguments directly.
SPRINTF Info For readability, true
N consider using the
'newline' function
instead of
'sprintf('\n')'.
SPWRN Info WARNING takes true
SPRINTF-like
arguments directly.
STLOW Info In this comparison true
the call to UPPER/
LOWER is
unnecessary.
STRCL1 Info For readability, use true
'~contains(str1,
str2)' instead of
'cellfun('isempty',
strfind(str1, str2))'.

7-241
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
STRCLFH Info For readability, use true
'~contains(str1,
str2)' instead of
'cellfun(@isempty,
strfind(str1, str2))'.
STREMP Info For readability, use true
'~contains(str1,
str2)' instead of
'isempty(strfind(str1,
str2))'.
STRIFCN Info For readability, use true
D 'contains(str1, str2)'
instead of
'strfind(str1, str2)'.

Formatting Suggestions
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
NCOMMA Info Best practice is to true
separate output
variables with
commas.
NO4LP Info Parentheses are not true
needed in a FOR
statement.
NOCOMMA Info Extra comma is true
unnecessary.
NOPRT Info Add a semicolon true
after the statement
to hide the output (in
a function).
NOPTS Info Add a semicolon true
after the statement
to hide the output (in
a script).
NOSEMI Info Extra semicolon is true
unnecessary.
PRTCAL Info Add a semicolon true
after the function
call to hide the
output.

7-242
Index of Code Analyzer Checks

Performance Improvements
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
AGROW Info Variable appears to true
change size on every
loop iteration.
Consider
preallocating for
speed.
AND2 Info When both true
arguments are
numeric scalars,
consider replacing &
with & for
performance.
CCAT Info For improved true
performance,
concatenate cell
arrays using []
instead of extracting
cell arrays and
reconstructing them.
CCAT1 Info { A{I} } can usually true
be replaced by A(I)
or A(I)', which can be
much faster.
CLALL Info Using 'clear' with the true
'all' option usually
decreases code
performance and is
often unnecessary.
CLCLS Info Using 'clear' with the true
'classes' option will
decrease code
performance and is
often unnecessary.
CLEAR0A Warning Avoid using 'clear' to true
RGS clear more than
necessary, this
decreases code
performance and is
usually unnecessary.

7-243
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CLFUNC Info Using 'clear' with the true
'functions' option
usually decreases
code performance
and is often
unnecessary.
CLJAVA Info Using 'clear' with the true
'java' option usually
decreases code
performance and is
often unnecessary.
CLMEX Info Using 'clear' with the true
'mex' option usually
decreases code
performance and is
often unnecessary.
EFIND Info To improve true
performance, replace
ISEMPTY(FIND(X))
with
ISEMPTY(FIND( X,
1 )).
EXIST Info EXIST with two input true
arguments is
generally faster and
clearer than with one
input argument.
FLPST Info For better true
performance in some
cases, use SORT with
the 'descend' option.
FNDSB Info For array or cell true
array, performance
can be improved
using logical
indexing instead of
'find'.
FORFLG Info Problems would true
result if this FOR
keyword were
replaced by PARFOR.
FORPF Info This FOR loop might true
be a candidate for
conversion to a
PARFOR loop.

7-244
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FREAD Info FREAD(FID,...,'*char' true
) is more efficient
than
CHAR(FREAD(...)).
GFLD Info Use dynamic true
fieldnames with
structures instead of
GETFIELD.
GRIDD Info Consider replacing true
GRIDDATA with
SCATTEREDINTERP
OLANT for better
performance.
ISCL Info To improve true
performance, use
'isscalar' instead of
length comparison.
ISMT Info Using ISEMPTY is true
usually faster than
comparing LENGTH
to 0.
LAXES Info Calling AXES(h) in a true
loop can be slow.
Consider moving the
call to AXES outside
the loop.
MINV Info INV(A)*b can be true
slower and less
accurate than A\b.
Consider using A\b
for INV(A)*b or b/A
for b*INV(A).
MMTC Info This use of true
MAT2CELL should
probably be replaced
by a simpler, faster
call to NUM2CELL.
MRPBW Info To use less memory, true
replace
BWLABEL(bw) by
LOGICAL(bw) in a
call of
REGIONPROPS.
MXFND Info Use FIND with the true
'first' or 'last' option.

7-245
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
N2UNI Info Instead of using true
'native2unicode' with
'fread', specify the
character encoding
scheme in the call to
'fopen'.
OR2 Info When both true
arguments are
numeric scalars,
consider replacing |
with || for
performance.
PFBNS Info The entire array or true
structure
VAR_NAME is a
broadcast variable.
This might result in
unnecessary
communication
overhead.
RGXP1 Info Using REGEXP(str, true
pattern, 'ONCE') is
faster in this case.
RGXPI Info Using REGEXPI(str, true
pattern, 'ONCE') is
faster in this case.
SAGROW Info Variable appears to true
change size on every
loop iteration (within
a script). Consider
preallocating for
speed.
SFLD Info Use dynamic true
fieldnames with
structures instead of
SETFIELD.
SPRIX Info This sparse indexing true
expression is likely
to be slow.
ST2NM Info If you are operating true
on scalar values,
consider using
'str2double' for
faster performance.

7-246
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
STCCS Info It appears that true
STRCMPI/
STRNCMPI can be
replaced by a faster,
case sensitive
compare.
STCI Warning Use true
STRCMPI(str1,str2)
instead of using
UPPER/LOWER in a
call to STRCMP.
STNCI Info Use true
STRNCMPI(str1,str2
) instead of using
UPPER/LOWER in a
call to STRNCMP.
STTOK Info Use one call to 'split' true
instead of calling
'strtok' in a loop.
TNMLP Info Move the toolbox true
function out of the
loop for better
performance.
TRIM1 Info Use STRTRIM(str) true
instead of nesting
FLIPLR and
DEBLANK calls.
TRIM2 Info Use STRTRIM(str) true
instead of
DEBLANK(STRJUST(
str,'left')).
TRSRT Info Transposing the true
input to 'sort' is often
unnecessary.
UDIM Info Instead of using true
transpose (' or .'),
consider using a
different
DIMENSION input
argument to
VAR_NAME.

7-247
7 Editor Preferences

MATLAB for Code Generation Messages


Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
EMBRK Error HDL code generation true
does not support
break statements.
EMCEL Error Fixed-point true
conversion does not
support cell arrays.
EMCNT Error HDL code generation true
does not support
continue statements.
EMFCN Error This function is not true
supported in code
generation.
EMGRO Error Code generation only true
supports growing the
size of an array
through 'end + 1'
indexing.
EMIMP Error Code generation true
does not support
import statements.
EMLOAD Error The output of a call true
to LOAD is not
assigned to a
variable. For code
generation, assign
the output of LOAD
to a variable without
subscripting.
EMNODEF Error Variable might be true
used before it is
defined, this is not
allowed in code
generation.
EMNST Error Fixed-point true
conversion does not
support nested
functions.
EMPFR Error HDL code generation true
does not support
parfor statements.

7-248
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
EMRIFAV Error Code generation true
does not support
repeating arguments
with validation.
EMRIFAV Error Code generation true
X does not support
multiple repeating
input arguments.
EMRTN Error HDL code generation true
does not support
return statements
inside of loops.
EMS2N Error Code generation true
does not support
'str2num'. Use
'str2double' instead.
EMSCR Error Code generation true
does not support
scripts.
EMTC Error TRY/CATCH is true
unsupported for code
generation.
EMVDF Error Code generation true
requires a variable to
be fully defined
through assignment
before subscripting
it.
EMWHL Error HDL code generation true
does not support
while statements.
LoopPra Error A coder.loop.Control true
gmaWith transform must be
outFor immediately followed
by a for loop.
PRMNOIN Error For code generation, true
specify a
binaryOccupancyMa
p object in the
constructor of the
mobileRobotPRM
object.

7-249
7 Editor Preferences

Fixed-Point Messages

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
FPASE Warning Direct assignment to true
a possible fixed-point
type is not
recommended. Use
the subscripted
assignment syntax
'var(:) =' instead.

MATLAB Compiler (Deployment) Messages

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCABF Warning MCC use of absolute true
file names is likely to
fail.
MCCD Warning MCC use of the CD true
function is
problematic.
MCHLP Error MCC does not permit true
the HELP function.
MCKBD Error MCC does not permit true
the KEYBOARD
function.
MCLL Warning MCC does not allow true
C++ files to be read
directly using
LOADLIBRARY.
MCMFL Warning MCC allows true
writing .m files, but
they cannot be
executed by the
deployed application.
MCMLR Warning MCC use of the true
MATLABROOT
function is
problematic.
MCPRD Error MCC allows only one true
argument in the
PRINTDLG function.
MCSVP Error MCC does not permit true
the SAVEPATH
function.

7-250
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
MCTBX Warning MCC use of toolbox true
folder file names is
likely to fail.

System Objects
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
SODEPPR Warning Dependent true
OP properties are not
supported for
MATLAB System
blocks. VAR_NAME
property is not
included on System
block.
SODFLTV Error Invalid initialization true
AL of DiscreteState
property
VAR_NAME.
Initialize property
within a 'resetImpl'
method.
SOINITP Warning Initialize true
ROP DiscreteState
property VAR_NAME
within a 'resetImpl'
method.
SONUMIN Error If 'stepImpl' accepts true
variable number of
inputs, then you
must define a
'getNumInputsImpl'
method.
SONUMOU Error If 'stepImpl' returns true
T variable number of
outputs, then you
must define a
'getNumOutputsImpl
' method.
SORSRVD Warning VAR_NAME property true
NM is a reserved name.

7-251
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SOTUNPR Warning Logical attribute not true
OP1 supported for
tunable properties
on MATLAB System
blocks. VAR_NAME
property is made
Nontunable on
System block.
SOTUNPR Warning Tunable properties true
OP3 on MATLAB System
blocks must be
numeric. VAR_NAME
property is made
Nontunable on
System block
because it is a char.
SOTUNPR Warning Tunable properties true
OP4 on MATLAB System
blocks must be
numeric. VAR_NAME
property is made
Nontunable on
System block
because it is a string.

Unsupported Features
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
AWTIUD Warning 'awtinvoke' is true javaMethodEDT
unsupported and
might have been
changed without
notice or might be
removed without
notice. With
appropriate code
changes, use
javaMethodEDT
instead.

7-252
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
AXCHUD Warning 'axescheck' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
FEATUD Warning 'feature' and flags true “Unsupported
passed to it are Functionality”
unsupported and
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
FNDPUD Warning 'findpackage' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
HGCNUD Warning 'hgconvertunits' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.

7-253
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
IMPKG Warning Functions in true “Unsupported
internal.matlab Functionality”
namespace are
unsupported and
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
ISMBUD Warning 'ismembc' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
MCADE Warning Using Description as R2019b true “Unsupported
an attribute is Functionality”
unsupported and
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
MIPKG Warning Functions in true “Unsupported
MATLAB's internal Functionality”
namespaces are
unsupported and
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.

7-254
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SEPTUD Warning 'setptr' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
SYDEUD Warning 'system_dependent' true “Unsupported
is unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
UIRSUD Warning 'uirestore' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.
UISUUD Warning 'uisuspend' is true “Unsupported
unsupported and Functionality”
might have been
changed without
notice or might be
removed without
notice. There is no
simple replacement
for this.

7-255
7 Editor Preferences

Behavior Changes
Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
IDISVAR Warning Variable must be R2017b true “Identifiers without
HIGH explicitly defined explicit declarations
before first use. In might not be treated
some cases, the as variables”
definition was not
required in previous
releases, but it is
now required.
INTRPC Warning 'interp1(...,'cubic')' R2018b true “'cubic' method of
changed in R2020b interp1 performs
to perform cubic cubic convolution”
convolution. To
continue using
shape-preserving
piecewise cubic
interpolation, use
'interp1(...,'pchip')'
instead.
LEGPVPA Warning 'legend' has changed R2018b true legend
IR and might interpret
the name of an
argument as a
legend property
instead of a label. To
include a label with
the same name as a
legend property,
specify the labels
using a cell array or
string array. Refer to
the documentation
for a list of affected
property names.
LENEMP Warning Passing in text with R2021a true “Passing an empty
no characters will label to the legend
omit the object from function omits the
appearing in the entry from the
legend. To revert to legend”
the old behavior, use
a whitespace
character instead of
text with no
characters.

7-256
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
SHVAI Warning Explicitly define R2017b true “Variables cannot be
shared variables in implicitly shared
the parent function between parent and
before calling the nested functions”
nested function.
MATLAB does not
share uninitialized
variables between a
nested function and
the parent function.

Behavior Changes with Low Reliability Messages


Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
CLBARY Warning Starting in R2020a, R2020a true
clib.array object is
the default return
value, instead of the
equivalent MATLAB
array for primitive
types. Notify your
user to update code
to use clib arrays. To
revert to the old
behavior, call
'clibgen.generateLibr
aryDefinition' or
'clibgen.buildInterfac
e' with the
'ReturnCArrays'
argument set to
false.

7-257
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
CLBBLD Warning Starting in R2020a, R2020a true
interfaces created by
'clibgen.buildInterfac
e' return clib.array
object instead of the
equivalent MATLAB
array for primitive
types. Notify your
users to update their
code to use clib
arrays. To revert to
the old behavior, call
'clibgen.buildInterfac
e' with the
'ReturnCArrays'
argument set to
false.
CLBGEN Warning Starting in R2020a, R2020a true
interfaces created by
'clibgen.generateLibr
aryDefinition' return
clib.array object
instead of the
equivalent MATLAB
array for primitive
types. Notify your
users to update their
code to use clib
arrays. To revert to
the old behavior, call
'clibgen.generateLibr
aryDefinition' with
the 'ReturnCArrays'
argument set to
false.

7-258
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
COLMP Warning In R2019a and R2019b true “Predefined
previous releases, colormaps have 256
the default colormap colors by default”
size is 64. Starting in
R2019b, colormaps
have 256 colors by
default. If your code
depends on a
colormap having 64
colors, specify the
number of colors
when querying the
colormap. For
example, parula(64)
queries the 64-color
parula colormap.
FDTAG Warning 'findall' with R2018b true
'Exploration.Pan',
'Exploration.ZoomIn'
,
'Exploration.ZoomOu
t',
'Exploration.DataCur
sor',
'Exploration.Brushin
g', or
'Exploration.Rotate'
might return empty
because the data
exploration buttons
have moved from the
figure toolbar to the
axes toolbar. To
customize the axes
interactions, use the
'axtoolbar' and
'axtoolbarbtn'
functions.

7-259
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
GLGRI Warning Starting R2021a, the R2021a true geoloc2grid
second output of (Mapping Toolbox)
'geoloc2grid' is a
geographic raster
reference object
instead of a
referencing vector.
Most Mapping
Toolbox functions
that accept
referencing vectors
as input also accept
geographic raster
reference objects, so
existing code is
unlikely to be
affected.
IDISVAR Warning To avoid a potential R2017b true “Identifiers without
LOW conflict with explicit declarations
functions on the might not be treated
path, explicitly as variables”
define the variable
before indexing into
it.
JAPIEXT Warning 'com.teamdev.jxbrow R2020b true “Java Packages to Be
1 ser' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'org.apache.xmlrpc' R2020b true “Java Packages to Be
10 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-260
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.scripters.js' Java R2020b true “Java Packages to Be
103 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.i18 R2020b true “Java Packages to Be
109 n' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.jboss.netty' Java R2020b true “Java Packages to Be
11 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.op R2020b true “Java Packages to Be
111 erator' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.

7-261
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'schemaorg_apache_ R2020b true “Java Packages to Be
112 xmlbeans.system.sX Removed”
MLSCHEMA' Java
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.chunk R2020b true “Java Packages to Be
114 er' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.jsoup.safety' R2020b true “Java Packages to Be
115 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.cer R2020b true “Java Packages to Be
116 t' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-262
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'thredds.catalog2.xm R2020b true “Java Packages to Be
120 l' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.catalog.dl' R2020b true “Java Packages to Be
121 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'net.jcip.annotations' R2020b true “Java Packages to Be
123 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.format R2020b true “Java Packages to Be
134 s' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-263
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.mchange.v1' R2020b true “Java Packages to Be
135 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.io' Java R2020b true “Java Packages to Be
138 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.actionlib' R2020b true “Java Packages to Be
14 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.jempbox' R2020b true “Java Packages to Be
145 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-264
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.ros.address' Java R2020b true “Java Packages to Be
15 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.concurrent' R2020b true “Java Packages to Be
16 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.net.socks' Java R2020b true “Java Packages to Be
160 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.x5 R2020b true “Java Packages to Be
169 09' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-265
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.ros.exception' R2020b true “Java Packages to Be
17 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.jsoup.examples' R2020b true “Java Packages to Be
170 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.mina' R2020b true “Java Packages to Be
173 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.mchange.util' R2020b true “Java Packages to Be
178 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-266
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.ros.gradle_plugi R2020b true “Java Packages to Be
18 ns' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.catalog2.bui R2020b true “Java Packages to Be
181 lder' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'com.drew.tools' Java R2020b true “Java Packages to Be
187 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.internal' R2020b true “Java Packages to Be
19 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-267
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.util.security' Java R2020b true “Java Packages to Be
192 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.james' R2020b true “Java Packages to Be
195 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.mozilla.universal R2020b true “Java Packages to Be
198 chardet' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.master' Java R2020b true “Java Packages to Be
20 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-268
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'opennlp.tools.coref' R2020b true “Java Packages to Be
206 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.postag R2020b true “Java Packages to Be
207 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.mozilla.javascrip R2020b true “Java Packages to Be
209 t' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.math' Java R2020b true “Java Packages to Be
21 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-269
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.dom.css' Java R2020b true “Java Packages to Be
211 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.mozilla.classfile' R2020b true “Java Packages to Be
212 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.datatype' R2020b true “Java Packages to Be
218 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.util.unit' Java R2020b true “Java Packages to Be
219 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-270
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.ros.message' R2020b true “Java Packages to Be
22 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.namespace' R2020b true “Java Packages to Be
23 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.drew.imaging' R2020b true “Java Packages to Be
230 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.codestrea R2020b true “Java Packages to Be
231 m' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-271
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.apache.tika' Java R2020b true “Java Packages to Be
235 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.node' Java R2020b true “Java Packages to Be
24 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.tokeni R2020b true “Java Packages to Be
240 ze' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'javolution.util.stripp R2020b true “Java Packages to Be
242 ed' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-272
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.ros.rosjava_geo R2020b true “Java Packages to Be
25 metry' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'jj2000.j2k.encoder' R2020b true “Java Packages to Be
259 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.tf2' Java R2020b true “Java Packages to Be
26 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.tsp R2020b true “Java Packages to Be
266 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-273
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.cybozu.labs' R2020b true “Java Packages to Be
267 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ros.time' Java R2020b true “Java Packages to Be
27 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.storm.print' Java R2020b true “Java Packages to Be
274 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.jaxb' Java R2020b true “Java Packages to Be
277 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-274
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.xbill.DNS' Java R2020b true “Java Packages to Be
28 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.ftpserver R2020b true “Java Packages to Be
294 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.catalog2.si R2020b true “Java Packages to Be
301 mpleImpl' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.almworks.sqlite R2020b true “Java Packages to Be
308 4java' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.

7-275
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.bouncycastle.cry R2020b true “Java Packages to Be
309 pto' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'thredds.catalog2.util R2020b true “Java Packages to Be
312 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.rometools.utils' R2020b true “Java Packages to Be
315 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.util.encoding' R2020b true “Java Packages to Be
316 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-276
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.mchange.lang' R2020b true “Java Packages to Be
317 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.notsupport R2020b true “Java Packages to Be
32 ed' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.net.pac' Java R2020b true “Java Packages to Be
320 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'cryptix.util.core' R2020b true “Java Packages to Be
321 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-277
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'schemaorg_apache_ R2020b true “Java Packages to Be
324 xmlbeans.system.sX Removed”
MLLANG' Java
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.catalog.cra R2020b true “Java Packages to Be
326 wl' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.catalog.quer R2020b true “Java Packages to Be
327 y' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.mathml' R2020b true “Java Packages to Be
33 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-278
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.dom.html' Java R2020b true “Java Packages to Be
331 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.applet' R2020b true “Java Packages to Be
336 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.drew.metadata' R2020b true “Java Packages to Be
34 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.wavelet' R2020b true “Java Packages to Be
343 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-279
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.bouncycastle.cm R2020b true “Java Packages to Be
348 s' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.jce R2020b true “Java Packages to Be
352 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.net.mailto' Java R2020b true “Java Packages to Be
353 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.util' Java R2020b true “Java Packages to Be
358 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-280
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jj2000.j2k.quantizati R2020b true “Java Packages to Be
360 on' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.coremedia.iso' R2020b true “Java Packages to Be
364 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.cataloggen. R2020b true “Java Packages to Be
369 catalogrefexpander' Removed”
Java package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.domviewer R2020b true “Java Packages to Be
37 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-281
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.optimaize.langd R2020b true “Java Packages to Be
380 etect' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'net.arnx.jsonic' Java R2020b true “Java Packages to Be
381 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'schemaorg_apache_ R2020b true “Java Packages to Be
390 xmlbeans.system.sF1 Removed”
327CCA741569E70F
9CA8C9AF9B44B2'
Java package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'xjava.security.interfa R2020b true “Java Packages to Be
394 ces' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.

7-282
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.dom4j.util' Java R2020b true “Java Packages to Be
398 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'javax.security.auth' R2020b true “Java Packages to Be
4 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.uti R2020b true “Java Packages to Be
401 l' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.pk R2020b true “Java Packages to Be
403 cs' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-283
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.bouncycastle.dv R2020b true “Java Packages to Be
405 cs' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'se.fishtank.css' Java R2020b true “Java Packages to Be
408 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.net.doc' Java R2020b true “Java Packages to Be
409 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.adobe.xmp' R2020b true “Java Packages to Be
411 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-284
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'opennlp.tools.namefi R2020b true “Java Packages to Be
416 nd' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.doccat R2020b true “Java Packages to Be
420 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.sun.java' Java R2020b true “Java Packages to Be
421 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.cataloggen. R2020b true “Java Packages to Be
426 config' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.

7-285
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.bouncycastle.mo R2020b true “Java Packages to Be
428 zilla' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'opennlp.tools.util' R2020b true “Java Packages to Be
430 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'cryptix.provider.mod R2020b true “Java Packages to Be
44 e' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.roi' Java R2020b true “Java Packages to Be
442 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-286
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.bouncycastle.ma R2020b true “Java Packages to Be
445 th' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.dom' Java R2020b true “Java Packages to Be
447 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.entropy' R2020b true “Java Packages to Be
449 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.ea R2020b true “Java Packages to Be
451 c' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-287
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'thredds.inventory.filt R2020b true “Java Packages to Be
459 er' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.maxent.io' R2020b true “Java Packages to Be
466 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'net.didion.jwnl' Java R2020b true “Java Packages to Be
467 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.pdf' Java R2020b true “Java Packages to Be
47 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-288
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'cryptix.provider.rsa' R2020b true “Java Packages to Be
470 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.image' R2020b true “Java Packages to Be
477 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.fileformat' R2020b true “Java Packages to Be
485 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.ma R2020b true “Java Packages to Be
486 il' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-289
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'opennlp.tools.lang' R2020b true “Java Packages to Be
487 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'cryptix.provider.ciph R2020b true “Java Packages to Be
495 er' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'javax.transaction.xa' R2020b true “Java Packages to Be
5 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.swing' R2020b true “Java Packages to Be
50 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-290
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.util.net' Java R2020b true “Java Packages to Be
502 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.image' R2020b true “Java Packages to Be
503 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.util.io' Java R2020b true “Java Packages to Be
505 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.mchange.v2' R2020b true “Java Packages to Be
510 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-291
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.dom4j.rule' Java R2020b true “Java Packages to Be
511 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.pq R2020b true “Java Packages to Be
513 c' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'be.frma.langguess' R2020b true “Java Packages to Be
517 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'schemaorg_apache_ R2020b true “Java Packages to Be
520 xmlbeans.system.sX Removed”
MLTOOLS' Java
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-292
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'cryptix.provider.key' R2020b true “Java Packages to Be
521 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.crawlableda R2020b true “Java Packages to Be
523 taset.filter' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.cataloggen.i R2020b true “Java Packages to Be
533 nserter' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.decoder' R2020b true “Java Packages to Be
535 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-293
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.dom4j.bean' R2020b true “Java Packages to Be
536 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.diction R2020b true “Java Packages to Be
54 ary' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'org.bouncycastle.op R2020b true “Java Packages to Be
540 enssl' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'ice.net.proxy' Java R2020b true “Java Packages to Be
547 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-294
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.dom4j.tree' Java R2020b true “Java Packages to Be
548 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.util.alg' Java R2020b true “Java Packages to Be
55 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'uk.ac.rdg' Java R2020b true “Java Packages to Be
557 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.sis' Java R2020b true “Java Packages to Be
563 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-295
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.dom4j.xpp' Java R2020b true “Java Packages to Be
564 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.json.zip' Java R2020b true “Java Packages to Be
590 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.jca R2020b true “Java Packages to Be
592 jce' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'org.bouncycastle.as R2020b true “Java Packages to Be
597 n1' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-296
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'opennlp.tools.sentde R2020b true “Java Packages to Be
598 tect' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'com.rometools.rome R2020b true “Java Packages to Be
601 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.drew.lang' Java R2020b true “Java Packages to Be
603 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.crawlableda R2020b true “Java Packages to Be
604 taset.sorter' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-297
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.util.image' Java R2020b true “Java Packages to Be
605 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.catalog.util' R2020b true “Java Packages to Be
611 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.vo R2020b true “Java Packages to Be
614 ms' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'org.jsoup.helper' R2020b true “Java Packages to Be
618 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-298
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.util.swing' Java R2020b true “Java Packages to Be
627 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.util.awt' Java R2020b true “Java Packages to Be
63 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.cometd.client' R2020b true “Java Packages to Be
635 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.pdfgo' Java R2020b true “Java Packages to Be
637 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-299
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.json.simple' Java R2020b true “Java Packages to Be
638 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.jsoup.nodes' R2020b true “Java Packages to Be
639 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'schemaorg_apache_ R2020b true “Java Packages to Be
64 xmlbeans.system.s8C Removed”
3F193EE11A2F798A
CF65489B9E6078'
Java package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.svg' Java R2020b true “Java Packages to Be
643 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-300
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'thredds.catalog.pars R2020b true “Java Packages to Be
644 er' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.ccil.cowan' Java R2020b true “Java Packages to Be
647 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.stemm R2020b true “Java Packages to Be
65 er' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'jj2000.j2k.io' Java R2020b true “Java Packages to Be
655 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-301
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'opennlp.tools.ngram R2020b true “Java Packages to Be
66 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.dtd' Java R2020b true “Java Packages to Be
661 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.jsoup.select' R2020b true “Java Packages to Be
67 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'cryptix.provider.md' R2020b true “Java Packages to Be
670 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-302
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'opennlp.tools.parser R2020b true “Java Packages to Be
671 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.html4' Java R2020b true “Java Packages to Be
683 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'schemaorg_apache_ R2020b true “Java Packages to Be
685 xmlbeans.system.sX Removed”
MLCONFIG' Java
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.maxent.qua R2020b true “Java Packages to Be
686 sinewton' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-303
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jsoup.parser' R2020b true “Java Packages to Be
688 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.itadaki.bzip2' R2020b true “Java Packages to Be
697 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.codahale.metric R2020b true “Java Packages to Be
699 s' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.el' Java R2020b true “Java Packages to Be
7 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-304
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.datastax.driver' R2020b true “Java Packages to Be
700 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'com.terracotta.entit R2020b true “Java Packages to Be
713 y' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'io.netty.bootstrap' R2020b true “Java Packages to Be
716 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'io.netty.buffer' Java R2020b true “Java Packages to Be
717 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-305
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'io.netty.channel' R2020b true “Java Packages to Be
718 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'io.netty.handler' Java R2020b true “Java Packages to Be
719 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'io.netty.util' Java R2020b true “Java Packages to Be
720 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'net.sf.ehcache' Java R2020b true “Java Packages to Be
735 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-306
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.apache.directory R2020b true “Java Packages to Be
736 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.drizzle.jdbc' Java R2020b true “Java Packages to Be
74 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.joda.time' Java R2020b true “Java Packages to Be
745 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
781 k.jms' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.

7-307
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
787 k.messaging' Java Removed”
package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
791 k.oxm' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'org.apache.juli' Java R2020b true “Java Packages to Be
8 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.pilots.jmf' Java R2020b true “Java Packages to Be
80 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-308
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.terracotta.conte R2020b true “Java Packages to Be
809 xt' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.terracotta.modul R2020b true “Java Packages to Be
810 es' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.terracotta.statist R2020b true “Java Packages to Be
811 ics' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.xerial.snappy' R2020b true “Java Packages to Be
813 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-309
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.help.event' R2021a true “Java Packages to Be
814 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'javax.help.plaf' Java R2021a true “Java Packages to Be
815 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'javax.help.resources R2021a true “Java Packages to Be
816 ' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'javax.help.search' R2021a true “Java Packages to Be
817 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-310
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.help.tagext' R2021a true “Java Packages to Be
818 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.inventory.pa R2020b true “Java Packages to Be
82 rtition' Java package Removed”
and subpackages are
not available in
MATLAB. To
continue using this
package, install its
JAR file and add the
JAR file to the static
path in MATLAB.
JAPIEXT Warning 'schemaorg_apache_ R2021b true “Java Packages to Be
824 xmlbeans.system.sD0 Removed”
23D6490046BA0250
A839A9AD24C443'
Java package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'de.l3s.boilerpipe' R2020b true “Java Packages to Be
84 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-311
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.pilots.es' Java R2020b true “Java Packages to Be
85 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.bouncycastle.pki R2020b true “Java Packages to Be
88 x' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.apache.tomcat' R2020b true “Java Packages to Be
9 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'org.dom4j.xpath' R2020b true “Java Packages to Be
90 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-312
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ice.pilots.text' Java R2020b true “Java Packages to Be
91 package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'thredds.cataloggen. R2020b true “Java Packages to Be
92 datasetenhancer' Removed”
Java package and
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'ice.util.memory' R2020b true “Java Packages to Be
96 Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.
JAPIEXT Warning 'opennlp.tools.cmdlin R2020b true “Java Packages to Be
98 e' Java package and Removed”
subpackages are not
available in MATLAB.
To continue using
this package, install
its JAR file and add
the JAR file to the
static path in
MATLAB.

7-313
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
NSTIMP Warning Nested functions R2017b true “Nested functions
now inherit import inherit import
statements from this statements from
parent function. If parent functions”
the nested functions
intend to call
functions on the
path, ensure that the
imported
namespaces do not
contain functions
with the same name.
PTCLO Warning Changing the axes R2019b true
LineStyleOrder or
ColorOrder
properties of an
existing chart now
affects the chart
immediately. To
revert to the old
behavior, set either
the axes
LineStyleOrderIndex
or ColorOrderIndex
to any value (such as
its current value)
before changing
LineStyleOrder or
ColorOrder.

7-314
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
PTDLO Warning Specifying multiple R2019b true “Indexing scheme for
line styles in the axes ColorOrder and
LineStyleOrder LineStyleOrder
might result in might change plot
charts that render colors and line
differently than in styles”
the previous
releases. MATLAB
uses a new indexing
scheme to select
colors and line
styles. To revert to
the old behavior, set
either the axes
LineStyleOrderIndex
or ColorOrderIndex
to any value (such as
its current value)
and call 'hold on'
before creating your
chart.
V2MTX Warning Starting R2021a, the R2021a true vec2mtx (Mapping
second output of Toolbox)
'vec2mtx' is a
geographic raster
reference object
instead of a
referencing vector.
'[Z,R] =
vec2mtx(LAT,LON,Z1
,R1,...)' is an
exception, where R1
is a referencing
vector or matrix.
Most Mapping
Toolbox functions
that accept
referencing vectors
as input also accept
geographic raster
reference objects, so
existing code is
unlikely to be
affected.

7-315
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
WEBBEHA Warning The 'web' function R2019b true “web Function”
VE now opens external
sites in your system
browser by default.
In a future release,
'web' will open all
pages using the
system browser.
Consider specifying
the '-browser' option
to open all pages in
your system browser.

Upcoming Behavior Changes


Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
ROSDFOB Warning For improved R2024a true
JECT performance and
code generation
workflows, specify
'DataFormat' name-
value argument as
'struct'. In a future
release, the default
format will change to
'struct'.
ROSSCFU Warning Add the service type R2024a true
N as the second input
argument to
'rossvcclient'. In a
future release, the
service type will be a
required input
argument.
ROSSCPK Warning Add the service type R2024a true
G as the third input
argument to
'ros.ServiceClient'.
In a future release,
the service type will
be a required input
argument.

7-316
Index of Code Analyzer Checks

Upcoming Behavior Changes with Low Reliability Messages


Check ID Severity Message Message Can Be Disabled? Related
Release Documentation
JAPIEXT Warning 'javax.mail.search' R2020b true “Java Packages to Be
100 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.sf.cglib' Java R2020b true “Java Packages to Be
101 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.core R2020b true “Java Packages to Be
102 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.resourc R2020b true “Java Packages to Be
104 es' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-317
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.openxml4j.sampl R2020b true “Java Packages to Be
105 es' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.w3c.css' Java R2020b true “Java Packages to Be
106 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cef.handler' Java R2020b true “Java Packages to Be
107 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.jetty' R2020b true “Java Packages to Be
108 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-318
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.nativewindo R2020b true “Java Packages to Be
110 w.awt' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.popup' R2020b true “Java Packages to Be
113 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.batik' R2020b true “Java Packages to Be
117 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.shapespeci R2020b true “Java Packages to Be
118 al' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-319
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.jpountz.xxhash' R2020b true “Java Packages to Be
119 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdesktop.layout' R2020b true “Java Packages to Be
12 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.axis2' R2020b true “Java Packages to Be
122 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jogamp.opengl' R2020b true “Java Packages to Be
124 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-320
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.reuters.sdist' R2020b true “Java Packages to Be
125 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.adapter' R2020b true “Java Packages to Be
126 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jaxen.dom' Java R2020b true “Java Packages to Be
127 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.aopalliance.inter R2020b true “Java Packages to Be
128 cept' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-321
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jaxen.util' Java R2020b true “Java Packages to Be
129 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdesktop.swingx' R2020b true “Java Packages to Be
13 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.gl4' R2020b true “Java Packages to Be
130 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.thaiopensource. R2020b true “Java Packages to Be
131 datatype' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-322
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.awt' R2020b true “Java Packages to Be
132 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.graphbuilder.cu R2020b true “Java Packages to Be
133 rve' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.lowagie.tools' R2020b true “Java Packages to Be
136 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jacoco.ant' Java R2020b true “Java Packages to Be
137 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-323
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.objenesis.instant R2020b true “Java Packages to Be
139 iator' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.event' Java R2020b true “Java Packages to Be
140 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'edu.uci.ics' Java R2020b true “Java Packages to Be
141 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.parame R2020b true “Java Packages to Be
142 ter' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-324
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.googlecode.java R2020b true “Java Packages to Be
143 ewah32' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jaxen.function' R2020b true “Java Packages to Be
144 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.spinner' R2020b true “Java Packages to Be
146 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.exceptio R2020b true “Java Packages to Be
147 ns' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-325
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.objectweb.asm' R2020b true “Java Packages to Be
148 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.located' R2020b true “Java Packages to Be
149 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.xml' R2020b true “Java Packages to Be
150 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'antlr.debug.misc' R2020b true “Java Packages to Be
151 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-326
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.servlet.annotat R2020b true “Java Packages to Be
152 ion' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.space' Java R2020b true “Java Packages to Be
153 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.http' R2020b true “Java Packages to Be
154 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.util' Java R2020b true “Java Packages to Be
155 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-327
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.antlr.stringtempl R2020b true “Java Packages to Be
156 ate' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.graphbuilder.ge R2020b true “Java Packages to Be
157 om' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'antlr.actions.python' R2020b true “Java Packages to Be
158 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.core' R2020b true “Java Packages to Be
159 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-328
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.w3c.dom' Java R2020b true “Java Packages to Be
161 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.tools.reflec R2020b true “Java Packages to Be
162 t' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.range' R2020b true “Java Packages to Be
163 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom.transform' R2020b true “Java Packages to Be
164 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-329
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mockito.stubbin R2020b true “Java Packages to Be
165 g' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.iso_relax.ant' R2020b true “Java Packages to Be
166 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.xtend2' R2020b true “Java Packages to Be
167 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.newt.event' R2020b true “Java Packages to Be
168 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-330
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.graph.font' R2020b true “Java Packages to Be
171 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.xpath' R2020b true “Java Packages to Be
172 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jaxen.xom' Java R2020b true “Java Packages to Be
174 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.factory' R2020b true “Java Packages to Be
175 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-331
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.xml.datatype' R2020b true “Java Packages to Be
176 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.lookup' Java R2020b true “Java Packages to Be
177 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.osgi' R2020b true “Java Packages to Be
179 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'abbot.editor.recorde R2020b true “Java Packages to Be
180 r' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-332
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.h2.mvstore' Java R2020b true “Java Packages to Be
182 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.resourc R2020b true “Java Packages to Be
183 e' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.awt' R2020b true “Java Packages to Be
184 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.x11' R2020b true “Java Packages to Be
185 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-333
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.tanukisoftware. R2020b true “Java Packages to Be
186 wrapper' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.map' R2020b true “Java Packages to Be
188 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cyberneko.html' R2020b true “Java Packages to Be
189 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.openxmlformats. R2020b true “Java Packages to Be
190 schemas' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-334
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.reuters.rmtes' R2020b true “Java Packages to Be
191 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.utility R2020b true “Java Packages to Be
193 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.jsp' R2020b true “Java Packages to Be
194 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.export' Java R2020b true “Java Packages to Be
196 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-335
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.symmetry' R2020b true “Java Packages to Be
197 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.plugins' R2020b true “Java Packages to Be
199 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.annotation.sec R2020b true “Java Packages to Be
2 urity' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.verificat R2020b true “Java Packages to Be
200 ion' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-336
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.sun.common' R2020b true “Java Packages to Be
201 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.common.jvm R2020b true “Java Packages to Be
202 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.gml' R2020b true “Java Packages to Be
203 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.hamcrest.intern R2020b true “Java Packages to Be
204 al' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-337
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'freemarker.ext.util' R2020b true “Java Packages to Be
205 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.discovery' R2020b true “Java Packages to Be
208 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.jmx' Java R2020b true “Java Packages to Be
210 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.io' Java R2020b true “Java Packages to Be
213 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-338
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'antlr.actions.csharp' R2020b true “Java Packages to Be
214 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.bytecode.a R2020b true “Java Packages to Be
215 nalysis' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.xml.transform' R2020b true “Java Packages to Be
216 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'abbot.editor.actions' R2020b true “Java Packages to Be
217 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-339
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jacoco.report' R2020b true “Java Packages to Be
220 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.refle R2020b true “Java Packages to Be
221 ct' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.maco R2020b true “Java Packages to Be
222 sx' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.xmlcom R2020b true “Java Packages to Be
223 mons' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-340
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jaxen.javabean' R2020b true “Java Packages to Be
224 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.sf.xslthl' Java R2020b true “Java Packages to Be
225 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.codegen R2020b true “Java Packages to Be
226 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.activation' R2020b true “Java Packages to Be
227 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-341
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.bytebuddy.match R2020b true “Java Packages to Be
228 er' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.dyna R2020b true “Java Packages to Be
229 mic' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.popup' Java R2020b true “Java Packages to Be
232 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.invocati R2020b true “Java Packages to Be
233 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-342
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.hamcrest.numbe R2020b true “Java Packages to Be
234 r' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.openxml4j.docu R2020b true “Java Packages to Be
236 ment' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.jdom' R2020b true “Java Packages to Be
237 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.feature' R2020b true “Java Packages to Be
238 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-343
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.eclipse.jgit' Java R2020b true “Java Packages to Be
239 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.server' Java R2020b true “Java Packages to Be
241 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.security' R2020b true “Java Packages to Be
243 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.csv' R2020b true “Java Packages to Be
244 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-344
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.tmatesoft.svn' R2020b true “Java Packages to Be
245 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.xml' R2020b true “Java Packages to Be
246 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.grammar' R2020b true “Java Packages to Be
247 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.field' R2020b true “Java Packages to Be
248 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-345
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.nativewindo R2020b true “Java Packages to Be
249 w.windows' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.nativewindo R2020b true “Java Packages to Be
250 w.macosx' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.coverag R2020b true “Java Packages to Be
251 e' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.bnf' Java R2020b true “Java Packages to Be
252 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-346
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.h2.jdbcx' Java R2020b true “Java Packages to Be
253 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.session' R2020b true “Java Packages to Be
254 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.moc R2020b true “Java Packages to Be
255 kpolicies' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.common.os' R2020b true “Java Packages to Be
256 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-347
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.apache.fontbox' R2020b true “Java Packages to Be
257 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.core' Java R2020b true “Java Packages to Be
258 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.taglibs' R2020b true “Java Packages to Be
260 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jacoco.agent' R2020b true “Java Packages to Be
261 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-348
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'freemarker.ext.servl R2020b true “Java Packages to Be
262 et' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.gl2' R2020b true “Java Packages to Be
263 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.thaiopensource. R2020b true “Java Packages to Be
264 relaxng' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.security' Java R2020b true “Java Packages to Be
265 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-349
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.geotools.measur R2020b true “Java Packages to Be
268 e' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.smiles' Java R2020b true “Java Packages to Be
269 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cometd.websock R2020b true “Java Packages to Be
270 et' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.input' R2020b true “Java Packages to Be
271 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-350
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.sparshui.inputd R2020b true “Java Packages to Be
272 evice' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'abbot.editor.editors' R2020b true “Java Packages to Be
273 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.api' Java R2020b true “Java Packages to Be
275 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.xtext' R2020b true “Java Packages to Be
276 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-351
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.etsi.uri' Java R2020b true “Java Packages to Be
278 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.spatials R2020b true “Java Packages to Be
279 chema' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.feature' R2020b true “Java Packages to Be
280 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.console' R2020b true “Java Packages to Be
281 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-352
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.vividsolutions.jt R2020b true “Java Packages to Be
282 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.ws' Java R2020b true “Java Packages to Be
283 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.intel.bluetooth' R2020b true “Java Packages to Be
284 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.alert' R2020b true “Java Packages to Be
285 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-353
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.iso_relax.dispatc R2020b true “Java Packages to Be
286 her' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.gunit' Java R2020b true “Java Packages to Be
287 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.newt.swt' R2020b true “Java Packages to Be
288 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.margin' R2020b true “Java Packages to Be
289 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-354
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.quantum' R2020b true “Java Packages to Be
29 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.data' R2020b true “Java Packages to Be
290 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cef.browser' R2020b true “Java Packages to Be
291 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jogamp.graph' R2020b true “Java Packages to Be
292 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-355
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.geotools.io' Java R2020b true “Java Packages to Be
293 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.jasper' R2020b true “Java Packages to Be
295 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.thoughtworks.x R2020b true “Java Packages to Be
296 stream' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.common R2020b true “Java Packages to Be
297 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-356
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.h2.command' R2020b true “Java Packages to Be
298 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.geomet R2020b true “Java Packages to Be
299 ry' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.annotation.sql' R2020b true “Java Packages to Be
3 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.icons' R2020b true “Java Packages to Be
30 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-357
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.vladium.jcd' R2020b true “Java Packages to Be
300 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.junit.internal' R2020b true “Java Packages to Be
302 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.api' R2020b true “Java Packages to Be
303 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.sf.saxon' Java R2020b true “Java Packages to Be
304 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-358
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.atomdata' R2020b true “Java Packages to Be
305 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.bloomberglp.bl R2020b true “Java Packages to Be
306 papi' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.io' Java R2020b true “Java Packages to Be
307 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.jini' Java R2020b true “Java Packages to Be
31 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-359
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'freemarker.debug.im R2020b true “Java Packages to Be
310 pl' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.servlet.descrip R2020b true “Java Packages to Be
311 tor' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.midp' Java R2020b true “Java Packages to Be
313 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.utils' R2020b true “Java Packages to Be
314 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-360
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.mail.internet' R2020b true “Java Packages to Be
318 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'abbot.script.parsers' R2020b true “Java Packages to Be
319 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.vladium.logging R2020b true “Java Packages to Be
322 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.ant' R2020b true “Java Packages to Be
323 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-361
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.aopalliance.aop' R2020b true “Java Packages to Be
325 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.message' R2020b true “Java Packages to Be
328 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jogamp.commo R2020b true “Java Packages to Be
329 n' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.openscience.jmo R2020b true “Java Packages to Be
330 l' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-362
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.xml.validation' R2020b true “Java Packages to Be
332 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.jdt' Java R2020b true “Java Packages to Be
333 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.start' R2020b true “Java Packages to Be
334 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.wsdl.extension R2020b true “Java Packages to Be
335 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-363
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.opengis.metadat R2020b true “Java Packages to Be
337 a' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.slf4j.impl' Java R2020b true “Java Packages to Be
338 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.index' Java R2020b true “Java Packages to Be
339 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.modelkit' R2020b true “Java Packages to Be
340 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-364
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.jdk' R2020b true “Java Packages to Be
341 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.navigati R2020b true “Java Packages to Be
342 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.bean R2020b true “Java Packages to Be
344 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.e4' Java R2020b true “Java Packages to Be
345 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-365
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.junit.runner' R2020b true “Java Packages to Be
346 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.xmlgrap R2020b true “Java Packages to Be
347 hics' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.pane' R2020b true “Java Packages to Be
349 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.xml.namespac R2020b true “Java Packages to Be
35 e' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-366
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.hamcrest.genera R2020b true “Java Packages to Be
350 tor' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.iso_relax.verifier R2020b true “Java Packages to Be
351 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.coverag R2020b true “Java Packages to Be
354 e' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.tool' Java R2020b true “Java Packages to Be
355 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-367
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mortbay.thread' R2020b true “Java Packages to Be
356 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.naming' R2020b true “Java Packages to Be
357 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.grouper R2020b true “Java Packages to Be
359 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.xml.stream' R2020b true “Java Packages to Be
36 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-368
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.opengl.wind R2020b true “Java Packages to Be
361 ows' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.tmatesoft.sqljet' R2020b true “Java Packages to Be
362 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.xml' R2020b true “Java Packages to Be
363 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cef.network' R2020b true “Java Packages to Be
365 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-369
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'antlr.actions.cpp' R2020b true “Java Packages to Be
366 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.w3.x2000' Java R2020b true “Java Packages to Be
367 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.descri R2020b true “Java Packages to Be
368 ption' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cometd.server' R2020b true “Java Packages to Be
370 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-370
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.h2.value' Java R2020b true “Java Packages to Be
371 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.referenc R2020b true “Java Packages to Be
372 ing' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.analysis' R2020b true “Java Packages to Be
373 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.openxml4j.util' R2020b true “Java Packages to Be
374 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-371
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.vladium.util' R2020b true “Java Packages to Be
375 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.loader' Java R2020b true “Java Packages to Be
376 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.axiom' R2020b true “Java Packages to Be
377 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.script' Java R2020b true “Java Packages to Be
378 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-372
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.hamcrest.integr R2020b true “Java Packages to Be
379 ation' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.internal' R2020b true “Java Packages to Be
38 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jogamp.gluegen R2020b true “Java Packages to Be
382 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.sticapi' R2020b true “Java Packages to Be
383 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-373
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.reuters.ansi' R2020b true “Java Packages to Be
384 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.layer' R2020b true “Java Packages to Be
385 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom.input' Java R2020b true “Java Packages to Be
386 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.wizard' R2020b true “Java Packages to Be
387 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-374
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.easymock.cglib' R2020b true “Java Packages to Be
388 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.microedition.io R2020b true “Java Packages to Be
389 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.hamcrest.collect R2020b true “Java Packages to Be
39 ion' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.jeri' Java R2020b true “Java Packages to Be
391 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-375
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.graphbuilder.str R2020b true “Java Packages to Be
392 uc' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.id' Java R2020b true “Java Packages to Be
393 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.enterprise' R2020b true “Java Packages to Be
395 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.tools.web' R2020b true “Java Packages to Be
396 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-376
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.cometd.bayeux' R2020b true “Java Packages to Be
397 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.newt.driver' R2020b true “Java Packages to Be
399 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.openxml4j.opc' R2020b true “Java Packages to Be
40 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.xml.xquery' R2020b true “Java Packages to Be
400 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-377
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jdom.xpath' Java R2020b true “Java Packages to Be
402 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.xml.sax' Java R2020b true “Java Packages to Be
404 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'junit.extensions.abb R2020b true “Java Packages to Be
406 ot' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.junit.matchers' R2020b true “Java Packages to Be
407 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-378
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.jini.entry' Java R2020b true “Java Packages to Be
41 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.osgi.service' R2020b true “Java Packages to Be
410 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.configur R2020b true “Java Packages to Be
412 ation' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.ui' Java R2020b true “Java Packages to Be
413 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-379
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.opengis.go' Java R2020b true “Java Packages to Be
414 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.sld' Java R2020b true “Java Packages to Be
415 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.wsdl.factory' R2020b true “Java Packages to Be
417 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.es3' R2020b true “Java Packages to Be
418 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-380
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.apache.wml' R2020b true “Java Packages to Be
419 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.html' R2020b true “Java Packages to Be
42 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.catalog' R2020b true “Java Packages to Be
422 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.runners' R2020b true “Java Packages to Be
423 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-381
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.ibm.oti' Java R2020b true “Java Packages to Be
424 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'antlr.collections.impl R2020b true “Java Packages to Be
425 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.slf4j.helpers' R2020b true “Java Packages to Be
427 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.osgi.framework' R2020b true “Java Packages to Be
429 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-382
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.eclipse.paho' R2020b true “Java Packages to Be
43 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.xerces' R2020b true “Java Packages to Be
431 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.appserv' R2020b true “Java Packages to Be
432 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.internal' R2020b true “Java Packages to Be
433 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-383
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.tartarus.snowbal R2020b true “Java Packages to Be
434 l' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cometd.common R2020b true “Java Packages to Be
435 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.trilead.ssh2' R2020b true “Java Packages to Be
436 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.hamcrest.beans' R2020b true “Java Packages to Be
437 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-384
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'de.regnis.q' Java R2020b true “Java Packages to Be
438 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.fulltext' Java R2020b true “Java Packages to Be
439 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.upgrade' Java R2020b true “Java Packages to Be
440 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.easymock.asm' R2020b true “Java Packages to Be
441 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-385
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'ca.odell.glazedlists' R2020b true “Java Packages to Be
443 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.xml.xpath' R2020b true “Java Packages to Be
444 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.lucene' R2020b true “Java Packages to Be
446 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.compiler.as R2020b true “Java Packages to Be
448 t' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-386
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'info.clearthought.lay R2020b true “Java Packages to Be
45 out' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.hints' R2020b true “Java Packages to Be
450 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.schema' Java R2020b true “Java Packages to Be
452 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.adapters' R2020b true “Java Packages to Be
453 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-387
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mortbay.util' R2020b true “Java Packages to Be
454 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.i18n' Java R2020b true “Java Packages to Be
455 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.graph.curve' R2020b true “Java Packages to Be
456 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.chart' R2020b true “Java Packages to Be
457 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-388
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.grid' R2020b true “Java Packages to Be
458 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.misc' Java R2020b true “Java Packages to Be
46 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jaxen.saxpath' R2020b true “Java Packages to Be
460 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.slf4j.spi' Java R2020b true “Java Packages to Be
461 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-389
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.opengl.util' R2020b true “Java Packages to Be
462 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.gauge' R2020b true “Java Packages to Be
463 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jgoodies.forms' R2020b true “Java Packages to Be
464 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.shortcu R2020b true “Java Packages to Be
465 t' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-390
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.icl.saxon' Java R2020b true “Java Packages to Be
468 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.tools.rmi' R2020b true “Java Packages to Be
469 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.referen R2020b true “Java Packages to Be
471 cing' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.tempora R2020b true “Java Packages to Be
472 l' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-391
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javassist.util.proxy' R2020b true “Java Packages to Be
473 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.shapebio' R2020b true “Java Packages to Be
474 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.log' R2020b true “Java Packages to Be
475 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.google.gson' R2020b true “Java Packages to Be
476 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-392
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.iso_relax.catalog R2020b true “Java Packages to Be
478 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.combob R2020b true “Java Packages to Be
479 ox' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.conf R2020b true “Java Packages to Be
48 iguration' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.paramet R2020b true “Java Packages to Be
480 er' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-393
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.geotools.metada R2020b true “Java Packages to Be
481 ta' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.common.util' R2020b true “Java Packages to Be
482 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.googlecode.java R2020b true “Java Packages to Be
483 ewah' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.creation R2020b true “Java Packages to Be
484 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-394
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.jini.config' Java R2020b true “Java Packages to Be
488 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.imple R2020b true “Java Packages to Be
489 mentation' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.mail.util' Java R2020b true “Java Packages to Be
49 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.intellij.lang' Java R2020b true “Java Packages to Be
490 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-395
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.g3d' Java R2020b true “Java Packages to Be
491 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.objenesis.strate R2020b true “Java Packages to Be
492 gy' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.emf' Java R2020b true “Java Packages to Be
493 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cef.callback' R2020b true “Java Packages to Be
494 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-396
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'abbot.editor.widgets' R2020b true “Java Packages to Be
496 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.jar' R2020b true “Java Packages to Be
497 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.elk' Java R2020b true “Java Packages to Be
498 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.util' R2020b true “Java Packages to Be
499 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-397
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jdom.filter' Java R2020b true “Java Packages to Be
500 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.export' Java R2020b true “Java Packages to Be
501 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.util' R2020b true “Java Packages to Be
504 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.expression' R2020b true “Java Packages to Be
506 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-398
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mortbay.servlet' R2020b true “Java Packages to Be
507 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.modelset' R2020b true “Java Packages to Be
508 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.log4j' R2020b true “Java Packages to Be
509 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.thaiopensource. R2020b true “Java Packages to Be
51 validate' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-399
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'freemarker.ext.rhino R2020b true “Java Packages to Be
512 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.newt.awt' R2020b true “Java Packages to Be
514 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.google.inject' R2020b true “Java Packages to Be
515 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.modelsetbi R2020b true “Java Packages to Be
516 o' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-400
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.dialog' R2020b true “Java Packages to Be
518 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.build' R2020b true “Java Packages to Be
519 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.webserv R2020b true “Java Packages to Be
52 ice' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.xml' Java R2020b true “Java Packages to Be
522 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-401
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.antlr.runtime' R2020b true “Java Packages to Be
524 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.egl' R2020b true “Java Packages to Be
525 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.nature' R2020b true “Java Packages to Be
526 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.junit.runners' R2020b true “Java Packages to Be
527 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-402
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.microsoft.sche R2020b true “Java Packages to Be
528 mas' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mortbay.compon R2020b true “Java Packages to Be
529 ent' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.google.common R2020b true “Java Packages to Be
53 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.neethi' R2020b true “Java Packages to Be
530 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-403
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.apache.tools' R2020b true “Java Packages to Be
531 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.rfa' Java R2020b true “Java Packages to Be
532 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.codehaus.stax2' R2020b true “Java Packages to Be
534 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.xmpbox' R2020b true “Java Packages to Be
537 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-404
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jdom.adapters' R2020b true “Java Packages to Be
538 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.admin' Java R2020b true “Java Packages to Be
539 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.jna' Java R2020b true “Java Packages to Be
541 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.url' Java R2020b true “Java Packages to Be
542 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-405
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mortbay.io' Java R2020b true “Java Packages to Be
543 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.filter' R2020b true “Java Packages to Be
544 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jaxen.jdom' Java R2020b true “Java Packages to Be
545 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.graphbuilder.or R2020b true “Java Packages to Be
546 g' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-406
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.h2.engine' Java R2020b true “Java Packages to Be
549 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.xmlbean R2020b true “Java Packages to Be
550 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.tree' R2020b true “Java Packages to Be
551 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jp.gr.xml' Java R2020b true “Java Packages to Be
552 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-407
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.lowagie.bc' Java R2020b true “Java Packages to Be
553 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.table' Java R2020b true “Java Packages to Be
554 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.styling' R2020b true “Java Packages to Be
555 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.filter' R2020b true “Java Packages to Be
556 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-408
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.google.thirdpar R2020b true “Java Packages to Be
558 ty' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.marker' R2020b true “Java Packages to Be
559 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.multitouch' R2020b true “Java Packages to Be
56 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.junit.experiment R2020b true “Java Packages to Be
560 al' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-409
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.sun.el' Java R2020b true “Java Packages to Be
561 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.output' R2020b true “Java Packages to Be
562 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.image' R2020b true “Java Packages to Be
565 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom.output' R2020b true “Java Packages to Be
566 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-410
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.hamcrest.core' R2020b true “Java Packages to Be
567 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.bytecode.st R2020b true “Java Packages to Be
568 ackmap' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.wsdl.xml' Java R2020b true “Java Packages to Be
569 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.jytho R2020b true “Java Packages to Be
57 n' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-411
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.graph.geom' R2020b true “Java Packages to Be
570 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sparshui.comm R2020b true “Java Packages to Be
571 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.thaiopensource. R2020b true “Java Packages to Be
572 xml' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.openxml4j.excep R2020b true “Java Packages to Be
573 tions' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-412
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'jogamp.nativewindo R2020b true “Java Packages to Be
574 w.jawt' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.compress' R2020b true “Java Packages to Be
575 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.constraint' R2020b true “Java Packages to Be
576 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.w3c.xsl' Java R2020b true “Java Packages to Be
577 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-413
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.jini.iiop' Java R2020b true “Java Packages to Be
578 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.ibm.wsdl' Java R2020b true “Java Packages to Be
579 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.store' Java R2020b true “Java Packages to Be
58 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jetbrains.annota R2020b true “Java Packages to Be
580 tions' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-414
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.geotools.math' R2020b true “Java Packages to Be
581 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.status' R2020b true “Java Packages to Be
582 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.easymock.intern R2020b true “Java Packages to Be
583 al' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.swing' R2020b true “Java Packages to Be
584 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-415
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.silveregg.wrapp R2020b true “Java Packages to Be
585 er' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jacoco.asm' Java R2020b true “Java Packages to Be
586 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.pdfbox' R2020b true “Java Packages to Be
587 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.glu' R2020b true “Java Packages to Be
588 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-416
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'Acme.JPM.Encoders' R2020b true “Java Packages to Be
589 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.google.protobuf R2020b true “Java Packages to Be
59 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.action' R2020b true “Java Packages to Be
591 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.ts1' R2020b true “Java Packages to Be
593 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-417
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jaxen.pattern' R2020b true “Java Packages to Be
594 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sparshui.server' R2020b true “Java Packages to Be
595 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.shapesurfa R2020b true “Java Packages to Be
596 ce' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jaxen.dom4j' R2020b true “Java Packages to Be
599 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-418
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.websocket.ser R2020b true “Java Packages to Be
6 ver' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.util' Java R2020b true “Java Packages to Be
60 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jpountz.lz4' Java R2020b true “Java Packages to Be
600 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.jetty' R2020b true “Java Packages to Be
602 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-419
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.bytebuddy.asm' R2020b true “Java Packages to Be
606 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jacoco.core' Java R2020b true “Java Packages to Be
607 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jcraft.jsch' Java R2020b true “Java Packages to Be
608 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.tooltip' R2020b true “Java Packages to Be
609 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-420
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jaxen.expr' Java R2020b true “Java Packages to Be
61 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sparshui.client' R2020b true “Java Packages to Be
610 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.clas R2020b true “Java Packages to Be
612 sloading' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.hamcrest.text' R2020b true “Java Packages to Be
613 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-421
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.validati R2020b true “Java Packages to Be
615 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.lowagie.text' R2020b true “Java Packages to Be
616 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jpountz.util' Java R2020b true “Java Packages to Be
617 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.hamcrest.xml' R2020b true “Java Packages to Be
619 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-422
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.minimize' R2020b true “Java Packages to Be
62 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.hamcrest.object' R2020b true “Java Packages to Be
620 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.osgi.util' Java R2020b true “Java Packages to Be
621 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.shape' Java R2020b true “Java Packages to Be
622 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-423
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.introsp R2020b true “Java Packages to Be
623 ector' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.junit' R2020b true “Java Packages to Be
624 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.ipc' R2020b true “Java Packages to Be
625 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.lucene' R2020b true “Java Packages to Be
626 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-424
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.jvxl' Java R2020b true “Java Packages to Be
628 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.xml.parsers' R2020b true “Java Packages to Be
629 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.relaxng.datatype R2020b true “Java Packages to Be
630 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.fasterxml.jacks R2020b true “Java Packages to Be
631 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-425
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.filter' R2020b true “Java Packages to Be
632 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.cef.misc' Java R2020b true “Java Packages to Be
633 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.docking R2020b true “Java Packages to Be
634 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.org' Java R2020b true “Java Packages to Be
636 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-426
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.bytebuddy.agent' R2020b true “Java Packages to Be
640 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.tibmsg' R2020b true “Java Packages to Be
641 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdesktop.animati R2020b true “Java Packages to Be
642 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.plaf' R2020b true “Java Packages to Be
645 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-427
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.sun.mail' Java R2020b true “Java Packages to Be
646 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.poi' Java R2020b true “Java Packages to Be
648 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.servlet.jsp' R2020b true “Java Packages to Be
649 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.jrmp' Java R2020b true “Java Packages to Be
650 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-428
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'abbot.finder.matcher R2020b true “Java Packages to Be
651 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.animati R2020b true “Java Packages to Be
652 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.geodesic' R2020b true “Java Packages to Be
653 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.tipofthe R2020b true “Java Packages to Be
654 day' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-429
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.reuters.sass3j' R2020b true “Java Packages to Be
656 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.mainloo R2020b true “Java Packages to Be
657 p' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.reuters.ssl' Java R2020b true “Java Packages to Be
658 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.utils R2020b true “Java Packages to Be
659 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-430
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.reuters.util' R2020b true “Java Packages to Be
660 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.nativewindo R2020b true “Java Packages to Be
662 w.x11' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.vladium.emma' R2020b true “Java Packages to Be
663 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.junit.rules' Java R2020b true “Java Packages to Be
664 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-431
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.compar R2020b true “Java Packages to Be
665 ator' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.docume R2020b true “Java Packages to Be
666 nt' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.api' Java R2020b true “Java Packages to Be
667 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jdom2.transform R2020b true “Java Packages to Be
668 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-432
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'antlr.actions.java' R2020b true “Java Packages to Be
669 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sparshui.gestur R2020b true “Java Packages to Be
672 es' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.list' R2020b true “Java Packages to Be
673 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.fop' Java R2020b true “Java Packages to Be
674 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-433
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'freemarker.template R2020b true “Java Packages to Be
675 .utility' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jogamp.opengl.es1' R2020b true “Java Packages to Be
676 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.junit.validator' R2020b true “Java Packages to Be
677 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.jini.lease' Java R2020b true “Java Packages to Be
678 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-434
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.jidesoft.convert R2020b true “Java Packages to Be
679 er' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.codegen' R2020b true “Java Packages to Be
68 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.viewer' R2020b true “Java Packages to Be
680 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'freemarker.ext.dom' R2020b true “Java Packages to Be
681 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-435
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.iso_relax.jaxp' R2020b true “Java Packages to Be
682 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jogamp.nativew R2020b true “Java Packages to Be
684 indow' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.thaiopensource. R2020b true “Java Packages to Be
687 util' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.ctc.wstx' Java R2020b true “Java Packages to Be
689 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-436
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mockito.listener R2020b true “Java Packages to Be
69 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.mod R2020b true “Java Packages to Be
690 ules' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.ows' R2020b true “Java Packages to Be
691 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.bytebuddy.pool' R2020b true “Java Packages to Be
692 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-437
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.vladium.app' R2020b true “Java Packages to Be
693 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jidesoft.hssf' R2020b true “Java Packages to Be
694 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.cdc' Java R2020b true “Java Packages to Be
695 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.util' Java R2020b true “Java Packages to Be
696 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-438
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.sun.activation' R2020b true “Java Packages to Be
698 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.result' Java R2020b true “Java Packages to Be
70 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.googlecode.con R2020b true “Java Packages to Be
701 currentlinkedhashma Removed”
p' Java package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.hp.hpl' Java R2020b true “Java Packages to Be
702 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-439
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.ibm.icu' Java R2020b true “Java Packages to Be
703 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.microsoft.sqlser R2020b true “Java Packages to Be
704 ver' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'commonj.sdo.impl' R2020b true “Java Packages to Be
705 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.mysql.cj' Java R2020b true “Java Packages to Be
706 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-440
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.mysql.jdbc' Java R2020b true “Java Packages to Be
707 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.orientechnologi R2020b true “Java Packages to Be
708 es.common' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.orientechnologi R2020b true “Java Packages to Be
709 es.nio' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jogamp.newt' R2020b true “Java Packages to Be
71 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-441
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.orientechnologi R2020b true “Java Packages to Be
710 es.orient' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.istack' Java R2020b true “Java Packages to Be
711 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.sun.xml' Java R2020b true “Java Packages to Be
712 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'io.jsonwebtoken.imp R2020b true “Java Packages to Be
714 l' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-442
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'io.jsonwebtoken.lan R2020b true “Java Packages to Be
715 g' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.mock' R2020b true “Java Packages to Be
72 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.json.spi' Java R2020b true “Java Packages to Be
721 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.json.stream' R2020b true “Java Packages to Be
722 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-443
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.persistence.cri R2020b true “Java Packages to Be
723 teria' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.persistence.me R2020b true “Java Packages to Be
724 tamodel' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.persistence.spi R2020b true “Java Packages to Be
725 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.ws.rs' Java R2020b true “Java Packages to Be
726 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-444
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.xml.bind' Java R2020b true “Java Packages to Be
727 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'junit.extensions.jfcu R2020b true “Java Packages to Be
728 nit' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'junit.extensions.xml' R2020b true “Java Packages to Be
729 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.opengis.filter' R2020b true “Java Packages to Be
73 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-445
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'mssql.googlecode.cit R2020b true “Java Packages to Be
730 yhash' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'mssql.googlecode.co R2020b true “Java Packages to Be
731 ncurrentlinkedhashm Removed”
ap' Java package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.oauth.client' R2020b true “Java Packages to Be
732 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'net.oauth.http' Java R2020b true “Java Packages to Be
733 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-446
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'net.oauth.signature' R2020b true “Java Packages to Be
734 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.geronim R2020b true “Java Packages to Be
737 o' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.jena' R2020b true “Java Packages to Be
738 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.regexp' R2020b true “Java Packages to Be
739 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-447
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.apache.wink' R2020b true “Java Packages to Be
740 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.custommonkey.x R2020b true “Java Packages to Be
741 mlunit' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.lyo' Java R2020b true “Java Packages to Be
742 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.persisten R2020b true “Java Packages to Be
743 ce' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-448
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jdesktop.jxlayer' R2020b true “Java Packages to Be
744 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.neo4j.driver' R2020b true “Java Packages to Be
746 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.netbeans.jemmy' R2020b true “Java Packages to Be
747 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.copy' R2020b true “Java Packages to Be
748 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-449
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.postgresql.core' R2020b true “Java Packages to Be
749 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.jmol.bspt' Java R2020b true “Java Packages to Be
75 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.ds' R2020b true “Java Packages to Be
750 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.fastp R2020b true “Java Packages to Be
751 ath' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-450
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.postgresql.geom R2020b true “Java Packages to Be
752 etric' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.gss' R2020b true “Java Packages to Be
753 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.hostc R2020b true “Java Packages to Be
754 hooser' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.jdbc' R2020b true “Java Packages to Be
755 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-451
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.postgresql.jdbc2 R2020b true “Java Packages to Be
756 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.jdbc3 R2020b true “Java Packages to Be
757 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.large R2020b true “Java Packages to Be
758 object' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.osgi' R2020b true “Java Packages to Be
759 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-452
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.h2.constraint' R2020b true “Java Packages to Be
76 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.ssl' R2020b true “Java Packages to Be
760 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.sspi' R2020b true “Java Packages to Be
761 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.transl R2020b true “Java Packages to Be
762 ation' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-453
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.postgresql.util' R2020b true “Java Packages to Be
763 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.postgresql.xa' R2020b true “Java Packages to Be
764 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
765 k.aop' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
766 k.asm' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-454
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
767 k.beans' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
768 k.boot' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
769 k.cache' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.powermock.tests R2020b true “Java Packages to Be
77 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-455
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
770 k.cglib' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
771 k.context' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
772 k.core' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
773 k.dao' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-456
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
774 k.ejb' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
775 k.expression' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
776 k.format' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
777 k.http' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-457
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
778 k.instrument' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
779 k.jca' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.tools' Java R2020b true “Java Packages to Be
78 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
780 k.jdbc' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-458
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
782 k.jmx' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
783 k.jndi' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
784 k.lang' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
785 k.ldap' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-459
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
786 k.mail' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
788 k.mock' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
789 k.objenesis' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javassist.bytecode.a R2020b true “Java Packages to Be
79 nnotation' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-460
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
790 k.orm' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
792 k.remoting' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
793 k.scheduling' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
794 k.scripting' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-461
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
795 k.security' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
796 k.stereotype' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
797 k.test' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
798 k.transaction' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-462
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
799 k.ui' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
800 k.util' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
801 k.validation' Java Removed”
package and
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.springframewor R2020b true “Java Packages to Be
802 k.web' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-463
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.sqlite.core' Java R2020b true “Java Packages to Be
803 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.sqlite.date' Java R2020b true “Java Packages to Be
804 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.sqlite.javax' Java R2020b true “Java Packages to Be
805 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.sqlite.jdbc3' R2020b true “Java Packages to Be
806 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-464
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.sqlite.jdbc4' R2020b true “Java Packages to Be
807 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.sqlite.util' Java R2020b true “Java Packages to Be
808 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.jdbc' Java R2020b true “Java Packages to Be
81 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.tukaani.xz' Java R2020b true “Java Packages to Be
812 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-465
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.eclipse.cdt' Java R2021a true “Java Packages to Be
819 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.jface' R2021a true “Java Packages to Be
820 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.swt' Java R2021a true “Java Packages to Be
821 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.eclipse.text' Java R2021a true “Java Packages to Be
822 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-466
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'com.zaxxer.sparsebit R2021b true “Java Packages to Be
823 s' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.abego.treelayout R2022a true “Java Packages to Be
825 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.antlr.v4' Java R2022a true “Java Packages to Be
826 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.glassfish.json' R2022a true “Java Packages to Be
827 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-467
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.stringtemplate.v R2022a true “Java Packages to Be
828 4' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.mockito.quality' R2020b true “Java Packages to Be
83 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.logging' R2022b true “Java Packages to Be
830 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.aspectj.internal' R2022b true “Java Packages to Be
831 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-468
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.aspectj.lang' R2022b true “Java Packages to Be
832 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.h2.mode' Java R2022b true “Java Packages to Be
833 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.slf4j.event' Java R2022b true “Java Packages to Be
834 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.apache.felix' R2023b true “Java Packages to Be
835 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-469
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.eclipse.equinox' R2023b true “Java Packages to Be
836 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.osgi.dto' Java R2023b true “Java Packages to Be
837 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.osgi.resource' R2023b true “Java Packages to Be
838 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'jakarta.xml.ws' Java R2024a true “Java Packages to Be
839 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-470
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.core.lmx' Java R2024a true “Java Packages to Be
840 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.core.lvf' Java R2024a true “Java Packages to Be
841 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.aq' Java R2024a true “Java Packages to Be
842 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.babelfish R2024a true “Java Packages to Be
843 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-471
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.jdbc.clio' Java R2024a true “Java Packages to Be
844 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.connecto R2024a true “Java Packages to Be
845 r' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.datasour R2024a true “Java Packages to Be
846 ce' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.dcn' Java R2024a true “Java Packages to Be
847 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-472
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.jdbc.diagnosti R2024a true “Java Packages to Be
848 cs' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.driver' R2024a true “Java Packages to Be
849 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.internal' R2024a true “Java Packages to Be
850 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.logging' R2024a true “Java Packages to Be
851 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-473
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.jdbc.oci' Java R2024a true “Java Packages to Be
852 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.oracore' R2024a true “Java Packages to Be
853 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.pool' R2024a true “Java Packages to Be
854 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.proxy' R2024a true “Java Packages to Be
855 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-474
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.jdbc.replay' R2024a true “Java Packages to Be
856 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.spi' Java R2024a true “Java Packages to Be
857 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.util' Java R2024a true “Java Packages to Be
858 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jdbc.xa' Java R2024a true “Java Packages to Be
859 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-475
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'javax.servlet.http' R2020b true “Java Packages to Be
86 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.jpub.runtime' R2024a true “Java Packages to Be
860 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.net.ano' Java R2024a true “Java Packages to Be
861 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.net.aso' Java R2024a true “Java Packages to Be
862 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-476
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.net.jdbc' Java R2024a true “Java Packages to Be
863 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.net.jndi' Java R2024a true “Java Packages to Be
864 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.net.mesg' R2024a true “Java Packages to Be
865 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.net.ns' Java R2024a true “Java Packages to Be
866 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-477
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.net.nt' Java R2024a true “Java Packages to Be
867 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.net.resolver' R2024a true “Java Packages to Be
868 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.security.o3log R2024a true “Java Packages to Be
869 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'org.geotools.event' R2020b true “Java Packages to Be
87 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-478
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'oracle.security.o5log R2024a true “Java Packages to Be
870 on' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.sql.converter' R2024a true “Java Packages to Be
871 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'oracle.sql.json' Java R2024a true “Java Packages to Be
872 package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'io.prometheus.client R2024b true “Java Packages to Be
873 ' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-479
7 Editor Preferences

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.mockito.hamcre R2020b true “Java Packages to Be
89 st' Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'javax.mail.event' R2020b true “Java Packages to Be
93 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.jgoodies.looks' R2020b true “Java Packages to Be
94 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'com.graphbuilder.m R2020b true “Java Packages to Be
95 ath' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.

7-480
Index of Code Analyzer Checks

Check ID Severity Message Message Can Be Disabled? Related


Release Documentation
JAPIEXT Warning 'org.jmol.translation' R2020b true “Java Packages to Be
97 Java package and Removed”
subpackages will not
be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
JAPIEXT Warning 'mwhtmlguitest.org.a R2020b true “Java Packages to Be
99 pache' Java package Removed”
and subpackages will
not be available in
MATLAB in a future
release. To continue
using this package,
install its JAR file
and add the JAR file
to the static path in
MATLAB.
ROSDFMI Warning Use name-value R2024a true
SSING argument
'DataFormat' to
specify the message
format as the default
message format will
change to 'struct' in
a future release.

See Also
Code Analyzer | codeIssues | fix | checkcode

Related Examples
• “Configure Code Analyzer” on page 7-21

7-481
8

Add-Ons

• “Get and Manage Add-Ons” on page 8-2


• “Configure Add-Ons After Installation” on page 8-7
8 Add-Ons

Get and Manage Add-Ons


In this section...
“Get Add-Ons” on page 8-2
“Install Add-Ons from File” on page 8-3
“Default Add-On Installation Folder” on page 8-3
“Manage Add-Ons” on page 8-4
“Update Add-Ons” on page 8-4
“Run Apps” on page 8-4
“Get and Manage Add-Ons Using the Add-Ons Panel in MATLAB Online” on page 8-4

Add-ons encompass a wide variety of resources, including products, apps, support packages, and
toolboxes. They extend the capabilities of MATLAB with functionality for additional tasks and
applications.

Get Add-Ons

To find and install add-ons, go to the Home tab, and in the Environment section, click the Add-
Ons icon. The Add-On Explorer opens and displays the list of available add-ons.

You must have an active internet connection to get add-ons using the Add-On Explorer.

8-2
Get and Manage Add-Ons

To find add-ons, use the search bar, or browse through the available categories on the left side of the
Add-On Explorer window. Select an add-on from the list to view additional information about it, such
as what files it includes and what documentation is available.

To install an add-on, select it from the list. Then, select from the available install actions. After you
install an add-on, MATLAB manages the MATLAB path for you. So, you can start using it without
adjusting your desktop environment.

For some add-ons, you also can download the files from the Add-on Explorer without installing them.
This is useful if you want to install the add-on on a system without an internet connection. To
download the add-on without installing, select Install > Download Only.

Install Add-Ons from File


You can install some add-ons manually using an installation file. This is useful in several situations:

• The add-on is not available for installation through the Add-On Explorer, for example, if you create
a custom add-on yourself or receive one from someone else.
• You downloaded the add-on from the Add-On Explorer without installing it.
• You downloaded the add-on from the File Exchange at MATLAB Central™.

Valid add-on installation files include .mltbx files (for toolboxes), .mlappinstall files (for apps),
and .mlpkginstall files (for hardware support packages). To install an add-on from one of these
files, in the MATLAB Current Folder browser, double-click the file. An installer opens to guide you
through the installation process.

Note Make sure to double-click the installation file in the MATLAB Current Folder browser. Double-
clicking to install the add-on from the system file browser is not supported on all operating systems.

You also can install some add-ons programmatically. For more information, see
matlab.addons.install.

Default Add-On Installation Folder

The install location of an add-on depends on its type. MATLAB installs MathWorks products in the
matlabroot folder and hardware support packages in the folder returned by
matlabshared.supportpkg.getSupportPackageRoot. For more information about a specific
support package install location, see the documentation for the package.

MATLAB installs all other add-ons in a default installation folder specific to the platform.

• Windows— C:\Users\username\AppData\Roaming\MathWorks\MATLAB Add-Ons


• Linux — ~/MATLAB Add-Ons
• macOS — ~/Library/Application Support/MathWorks/MATLAB Add-Ons
• MATLAB Online — /MATLAB Add-Ons

To change the default installation folder, on the Home tab, in the Environment section, select
Preferences > MATLAB > Add-Ons. Then, in the Installation Folder field, specify a folder name
to which you have write access.

8-3
8 Add-Ons

If you change the default installation folder, add-ons installed in the previously selected folder are no
longer accessible from within MATLAB. Changing the default installation folder or customizing
installed add-ons is not supported in MATLAB Online.

Manage Add-Ons

To view and manage installed add-ons, go to the Home tab and select Add-Ons > Manage Add-
Ons. The Add-On Manager displays all add-ons that are installed in the add-ons installation folder, as
well as MATLAB products and hardware support packages.

To manage an individual add-on, click the Options button to the right of the add-on and select from
the available actions.

View Version

To view the currently enabled version of an add-on if it has multiple versions installed, click the
Options button and select Version. MATLAB displays a check mark next to the currently enabled
version. To enable a different version, click it. For more information about installing multiple versions
of an add-on, see matlab.addons.install.

Enable Add-Ons

You can customize your MATLAB environment by enabling or disabling add-ons. You can disable and
enable most add-ons from the MATLAB user community. Disabling and enabling MathWorks products
and support packages is not supported.

To enable or disable an add-on, click the Options button and select or clear the Enabled option. If
an add-on has multiple versions installed, only one version can be enabled. You also can enable or
disable add-ons using the matlab.addons.enableAddon and matlab.addons.disableAddon
functions.

Update Add-Ons
You can update installed add-ons as well as your current installed version of MATLAB using the Add-
On Manager. On the Home tab, select Help > Check for Updates. The Add-On Manager opens with
the Updates tab selected. View and install any available updates.

Run Apps
An app is a self-contained MATLAB program with a user interface. To view and interact with the user
interface after installing the app, run it. Go to the Apps tab and expand the apps gallery by clicking
the down arrow on the far right. Then, navigate to your installed app and click the icon. Custom
apps that you write or receive from someone else appear in the My Apps section. You can run
multiple custom apps concurrently, including multiple instances of the same app.

Get and Manage Add-Ons Using the Add-Ons Panel in MATLAB Online
In MATLAB Online, you can find, install, and manage add-ons using the Add-Ons panel. To open the
Add-Ons panel if it is not open, click the Add-Ons button in the sidebar on the left side of the

8-4
Get and Manage Add-Ons

MATLAB Online desktop. Alternatively, go to the Home tab, and in the Environment section, select
Add-Ons > Add-Ons.

To get add-ons, use the search box at the top of the Add-Ons panel to search for available add-ons or
browse through the list of add-ons in the Recommended for You section. Then, to install an add-on,
select it from the list and click the Install button. You also can browse through the full list of
available add-ons using the Add-On Explorer. To open the Add_on Explorer from the Add-Ons panels,
click the Browse for more link at the bottom of the Recommended for You section.

To manage your add-ons, in the Installed section of the Add-Ons panel, click the Options button to
the right of the add-on that you want to manage. Then, select from the available options. For example,
to view the documentation for an installed add-on, select Open Documentation. To manage your
add-ons using the Add-On Manager, click the Manage Add-Ons link at the bottom of the Installed
section.

To update an installed add-on, click the Update button to the right of the add-on. The Add-Ons panel
displays the Update button next to add-ons with an update available.

8-5
8 Add-Ons

See Also
matlab.addons.install | matlab.addons.installedAddons |
matlab.addons.isAddonEnabled | matlab.addons.enableAddon

Related Examples
• “Package Apps from the MATLAB Toolstrip”
• “Create and Share Toolboxes”

8-6
Configure Add-Ons After Installation

Configure Add-Ons After Installation


After installation, some add-ons require additional configuration steps.

Install Supported Compiler


Some add-ons require a supported compiler. For a list of compilers and the products and workflows
they support, see Supported and Compatible Compilers.

These add-ons require a supported compiler:

• MATLAB Coder™
• Stateflow®
• Simulink Coder
• Embedded Coder®
• Simulink Test

These add-ons require a supported compiler for certain workflows:

• SimBiology — For computation acceleration.


• Fixed-Point Designer™ — For computation acceleration
• Simulink — For simulation acceleration, model reference, and MATLAB Function block
capabilities.
• MATLAB Compiler — For the creation of Excel add-ins (Windows only).
• MATLAB Compiler SDK™ — For the creation of C and C++ shared libraries. In addition, MATLAB
Compiler SDK requires a Java JDK for the creation of Java packages and, on Windows systems,
a .NET framework for the creation of .NET assemblies and deployable archives with Excel
integration. For more information, see the MATLAB Compiler SDK section of the Supported and
Compatible Compilers page.

Additional Configuration Steps


These add-ons require additional configuration steps:

• C2000™ Microcontroller Blockset — See “Hardware Setup for C2000 Microcontroller Blockset”
(C2000 Microcontroller Blockset).

See Also

Related Examples
• “Get and Manage Add-Ons” on page 8-2
• Supported and Compatible Compilers

8-7
9

Internationalization

• “Set Locale and Display Language” on page 9-2


• “Limitations to International Character Support” on page 9-4
• “Unexpected Behavior on macOS Platforms” on page 9-5
• “Characters Incorrectly Displayed on Windows Systems” on page 9-6
• “Numbers Display Period for Decimal Point for All Locales” on page 9-7
• “Script Compatibility” on page 9-8
• “Change the MATLAB Desktop Language” on page 9-9
• “X Servers and International Keyboard Layouts” on page 9-11
9 Internationalization

Set Locale and Display Language


In this section...
“Unsupported Locale Settings” on page 9-3
“Supported Character Sets and Encodings” on page 9-3
“Localized Formats in Current Folder Browser” on page 9-3

The locale of a platform defines the display format for information like time, date, and currency. On
macOS and Linux platforms, the locale also defines the language of your user interface. On Windows
platforms, the display language defines the language of your user interface.

Each platform uses different settings to specify locale and display language. MATLAB uses these
platform-specific settings to determine the desktop display language and the display format for
information like time, date, and currency values within the desktop. This table describes which
settings to set for each platform. For supported operating systems, see System Requirements.

Platform Settings
Windows MATLAB uses multiple settings on Windows platforms.

• Windows display language setting — MATLAB uses this setting to


determine the MATLAB desktop display language. If the language that
you want to select does not appear in the Windows display language
list, you might first need to install its language pack. After changing
your display language, log out and then log back into your system for
the changes to take effect.
• Windows user locale and system locale settings — MATLAB uses these
settings to determine the display format within the MATLAB desktop.
After changing these settings, restart your system for the changes to
take effect.

The Windows display language, user locale, and system locale settings
must all have the same value. Otherwise, you might see garbled text or
incorrectly displayed characters. For instructions on how to change these
settings or install a language pack, refer to your Windows operating
system documentation.

MATLAB uses UTF-8 as its default character encoding and its process-
specific system encoding. You can also set the machine-wide system
encoding to UTF-8 using the Beta: Use Unicode UTF-8 for worldwide
language support option. This option must be used on Windows Server
2019 to avoid garbled text. For all other supported versions of Windows,
this option is optional.

9-2
Set Locale and Display Language

Platform Settings
macOS MATLAB uses the user locale setting on your macOS system to determine
the display language and the display format within the MATLAB desktop.
For instructions on how to change the user locale setting, refer to your
macOS operating system documentation. If the locale that you want to
select is not available, you might first need to install its language pack.

MATLAB automatically chooses a codeset for each combination of language


and region in the locale setting. If you customize the locale setting on your
system, MATLAB ignores the customized portion. MATLAB also ignores the
LANG environment variable and the Terminal application locale setting.
Linux MATLAB uses the LANG environment variable on your Linux system to
determine the display language and the display format within the MATLAB
desktop.

For instructions on how to change the LANG environment variable, refer to


your Linux operating system documentation. If you see garbled text or
incorrectly displayed characters, you might need to install fonts for your
selected locale as well.

Unsupported Locale Settings


MATLAB does not support every locale setting. If the user-specified locale is unsupported, MATLAB
uses the default locale en_US_POSIX.US-ASCII, also known as the C locale.

Supported Character Sets and Encodings


MATLAB uses Unicode® as its internal character set so that it can represent all letters and symbols,
regardless of platform, language, or locale. MATLAB uses UTF-8 as its default character encoding so
that it can represent all Unicode code points in files and byte streams. MATLAB also supports other
character encodings for backward compatibility and interoperability.

Localized Formats in Current Folder Browser


In the Current Folder browser, MATLAB usually uses platform-neutral localized formats and rules.
You can, however, use the operating system short date format to control the format for displaying file
date and time data.

See Also

Related Examples
• “Change the MATLAB Desktop Language” on page 9-9
• “Numbers Display Period for Decimal Point for All Locales” on page 9-7
• “Script Compatibility” on page 9-8
• “Limitations to International Character Support” on page 9-4

9-3
9 Internationalization

Limitations to International Character Support


MATLAB does not support non 7-bit ASCII characters in the following features:

• MATLAB C/C++ and Fortran engine library functions and the loadlibrary function cannot find
files located in folder names that contain non 7-bit ASCII characters.
• MATLAB C/C++ and Fortran engine library functions and the calllib function used to call C
library functions cannot convert Unicode-compatible input arguments of type char* to MATLAB
character arrays.
• The matlab.wsdl.createWSDLClient function cannot read non 7-bit ASCII characters in Web
Services Description Language (WSDL) documents.

When you have a file containing text that has characters in a different encoding than that of your
platform, when you save or publish your file, MATLAB displays those characters as garbled text.

See Also

Related Examples
• “Script Compatibility” on page 9-8
• “Set Locale and Display Language” on page 9-2

9-4
Unexpected Behavior on macOS Platforms

Unexpected Behavior on macOS Platforms


If you customize the locale setting, MATLAB ignores the customized portion.

MATLAB ignores the LANG environment variable and the Terminal application locale setting.

See Also

Related Examples
• “Set Locale and Display Language” on page 9-2

9-5
9 Internationalization

Characters Incorrectly Displayed on Windows Systems


The Windows display language, user locale, and system locale settings must all have the same value
on Microsoft Windows platforms. If these values are not the same, you might see garbled text or
incorrect characters. For instructions on how to change the Windows display language, user locale,
and system locale settings, refer to your Windows operating system documentation. After changing
these settings, restart your system.

On Windows Server 2019, you must also set the machine-wide system encoding to UTF-8 using the
Beta: Use Unicode UTF-8 for worldwide language support option to avoid garbled text. For all
other supported versions of Windows, this option is optional.

See Also

Related Examples
• “Set Locale and Display Language” on page 9-2

9-6
Numbers Display Period for Decimal Point for All Locales

Numbers Display Period for Decimal Point for All Locales


MATLAB reads the user locale for all categories except for the numeric category (which is equivalent
with LC_NUMERIC). This category controls numeric data formatting and parsing. MATLAB always sets
LC_NUMERIC to the C locale.

MATLAB uses a period for a decimal point, regardless of the format specified by the user locale. For
example, the value of pi can be displayed as 3,1416 or 3.1416, depending on the format used by a
locale. MATLAB always displays 3.1416.

The MATLAB language reserves the use of commas to the cases described in the Symbol Reference
topic.

See Also

More About
• Symbol Reference: Comma
• “Set Locale and Display Language” on page 9-2

9-7
9 Internationalization

Script Compatibility
As of R2020a, plain text files, such as MATLAB scripts or functions, that are encoded using UTF-8
(note that all 7-bit ASCII files are de facto UTF-8 encoded), work seamlessly across all platforms and
all locales. Plain text files created with an earlier version of MATLAB that are not UTF-8 encoded also
work if they were created in the same locale that the current MATLAB is using. Under most
circumstances, MATLAB also operates correctly with plain text files encoded in one of the locale-
specific CJK (Chinese, Japanese, or Korean) encodings.

See Also

Related Examples
• “Set Locale and Display Language” on page 9-2
• “Limitations to International Character Support” on page 9-4

9-8
Change the MATLAB Desktop Language

Change the MATLAB Desktop Language


MathWorks offers MATLAB translated into Japanese, Korean, and Chinese.

If the locale or display language settings on your system are set to Japanese, Korean, or Chinese, you
can choose whether to display text in your system language or in English. MATLAB desktop items
(such as dialog boxes, button names, and menu items) and error and warning messages appear in the
language that you select.

To change the desktop language:

1 On the Home tab, in the Environment section, click Preferences and select MATLAB >
General.
2 Select an option for the Desktop language preference.

If the preference is not visible:

• On Windows systems, check the display language setting. If the language that you want to
select does not appear in the Windows display language list, you might need to install its
language pack. For instructions on how to view the setting or install a language pack, refer to
the documentation for your Windows system.

The Windows display language, user locale, and system locale settings must all have the same
value to avoid garbled text or incorrectly displayed characters. After changing the display
language, log out and then back into your system for the changes to take effect. After
changing the user locale or system locale settings, restart your system for the changes to take
effect.
• On macOS systems, check the user locale setting. If the locale that you want to select is not
available, you might need to install its language pack. For instructions on how to change the
user locale setting or install a language pack, refer to the documentation for your macOS
system.

9-9
9 Internationalization

• On Linux systems, check the LANG environment variable. For instructions, refer to the
documentation for your Linux system. If you see garbled text or incorrectly displayed
characters, you also might need to install fonts for the selected locale.
3 Restart MATLAB for the preference change to take effect.

Most desktop elements and apps use the language specified by the Desktop language preference.
However, system dialog boxes, such as file selectors or color pickers, use the operating system
display language.

See Also

More About
• “Set Locale and Display Language” on page 9-2
• “Translated Documentation” on page 4-10

9-10
X Servers and International Keyboard Layouts

X Servers and International Keyboard Layouts


Simulink requires the XKEYBOARD extension to detect the keyboard layout that is currently active.
Some older X servers do not support this extension. If this extension is absent or disabled, then
Simulink assumes a default layout. When the default layout does not match the keyboard layout, some
keys might not produce the expected characters.

Suppose you are using a Linux based computer with a German keyboard. Without the XKEYBOARD
extension, Simulink uses the default layout, which is English, and can therefore produce incorrect
characters. MATLAB correctly recognizes the keyboard as German.

If you encounter this issue, try enabling the XKEYBOARD extension, or use an X server that supports
this extension.

9-11
10

MATLAB Online

• “Access Files in MATLAB Online” on page 10-2


• “Manage Windows in MATLAB Online” on page 10-5
10 MATLAB Online

Access Files in MATLAB Online


MATLAB Online provides access to MATLAB from a standard web browser. You can access your files
in MATLAB Online by adding them to your MATLAB Drive, connecting to your Microsoft OneDrive™
account from MATLAB Online, or by uploading them to MATLAB Online directly from your system.
You also can download files from MATLAB Online to your system, preview files, and restore previous
versions of your files.

Upload and Download Files


To upload files from your system to MATLAB Online, in your system file browser, select the files that
you want to upload. Then, drag the files anywhere on the MATLAB Online desktop. MATLAB places
the files in the current folder. To upload them to a specific folder, drag them over the desired folder in
the Files panel. Alternatively, to upload files from MATLAB Online, in the Files panel, right-click in
white space and select Upload Files or Upload Folders.

When you upload a file to MATLAB Online, it is added to your MATLAB Drive. If you add files to your
MATLAB Drive outside of MATLAB Online, you can access those files in MATLAB Online. For more
information about adding files to MATLAB Drive, see “Add Files to Your MATLAB Drive” on page 12-
13.

To download a file from MATLAB Online to your local system, in the Files panel, right-click the file
and select Download.

Preview Files
To preview the contents of a file or folder in MATLAB Online without opening it, in the Files panel,
right-click the file and select Preview. You also can click the Preview button

10-2
Access Files in MATLAB Online

to the

10-3
10 MATLAB Online

right of the file or folder name.

See Also

Related Examples
• “Add Files to Your MATLAB Drive” on page 12-13
• “Use MATLAB Online to Access Files in Microsoft OneDrive” on page 11-2
• “Manage Windows in MATLAB Online” on page 10-5
• “MATLAB Online”

10-4
Manage Windows in MATLAB Online

Manage Windows in MATLAB Online

When you open some files, apps, and tools, they open in new windows within the MATLAB Online
environment.

The title bar of a window provides you with the options to pin, collapse, minimize, maximize, and
close a window individually.

• Pin — Prevent a window from being collapsed or minimized.


• Collapse — Reduce the size of a window by displaying only its title bar.

• Minimize — Hide a window. At the bottom right of the MATLAB Online environment, the Switch
Windows button indicates the number of minimized windows.

• Maximize — Fit a window to the full size of the MATLAB Online environment.
• Close — Close a window.

Automatically Collapse and Expand Open Windows


By default, when you click the MATLAB background, open windows in the foreground collapse. To
restore the collapsed windows, click the title bar of one of the previously open windows. To prevent a

window from being collapsed or minimized, click on its title bar.

To disable the automatic collapse, on the Home tab, in the Environment section, click
Preferences. Select MATLAB > General > Collapsible Windows. Then, clear Enable Auto-
Collapse.

Minimize and Restore Open Windows


To manage windows, use the buttons at the bottom right of the MATLAB Online environment.


To toggle whether a window is minimized, click . Then, select the window to minimize or
restore.

10-5
10 MATLAB Online


To minimize all open windows, click . To restore the previously open windows, click .

To display a taskbar that lists the minimized windows, click . From the taskbar, toggle whether
a window is minimized by clicking the window title. The taskbar persists until you click or
start a new MATLAB Online session.

See Also

Related Examples
• “Access Files in MATLAB Online” on page 10-2
• “MATLAB Online”

10-6
11

Cloud Storage

• “Use MATLAB Online to Access Files in Microsoft OneDrive” on page 11-2


• “Open in MATLAB Online from GitHub” on page 11-5
11 Cloud Storage

Use MATLAB Online to Access Files in Microsoft OneDrive


You can use MATLAB Online to connect to your Microsoft OneDrive account and access its contents.
When you connect to your OneDrive account, you can view and edit your stored files and save new
files to your account directly from the MATLAB Online desktop environment.

Connect to OneDrive Account and Access Files


To access your OneDriveOneDrive files in MATLAB Online, connect to your OneDrive account using
the Connections panel:

1 To open the Connections panel, in the sidebar on the left side of the MATLAB Online desktop,
click the Open more panels button ( ) and select Connections.
2 In the Available Connections section, click the Add button next to OneDrive.
3 Sign in using your Microsoft account credentials.
4 If prompted, grant permission for MATLAB to access the files in your OneDrive account on your
behalf.

Under certain circumstances, an administrator might need to grant permission to connect to your
OneDrive account in MATLAB Online.

You can add only one OneDrive account at any given time. To use different accounts, remove the
existing OneDrive connection and then add a OneDrive connection using the new account.

Once you connect to your OneDrive account, your OneDrive My files folder becomes the current
folder in MATLAB Online and the Files panel displays the list of files and folders stored in that folder.

To open the Files panel if it is not visible, click the Files icon in the sidebar.

Note

11-2
Use MATLAB Online to Access Files in Microsoft OneDrive

• Large files (> 1 GB), can take several seconds to open in MATLAB Online.
• MATLAB Online does not show shared OneDrive folders or shortcuts to files and folders stored in
Sharepoint®.

To view the files and folders for a different connection, in the My Connections section of the
Connections panel, right-click the connection and select Navigate to Connection Name. For
example, to view the files and folders in your MATLAB Drive folder, right-click MATLAB Drive and
select Navigate to MATLAB Drive.

Alternatively, in the Current Folder toolbar, click the drop-down arrow to the left of the current folder
name and select from the available connections.

Disconnect OneDrive Account from MATLAB Online


To disconnect your OneDrive account from MATLAB Online, in the My Connections section of the
Connections panel, right-click OneDrive and select Remove.

When you disconnect your OneDrive account, you can no longer access your OneDrive files from
MATLAB Online. Additionally, you might need to manually revoke the permissions that you previously
granted through MATLAB Online. To manually revoke the permissions, use one of these methods:

• OneDrive — Go to https://account.live.com/consent/Manage. Under the MATLAB app,


click the Edit link. Then, click the Remove these permissions button.
• OneDrive for work or school — Go to https://myapps.microsoft.com. On the MATLAB app
block, click the More button and select Manage your application. Then, click the Revoke
consent button.

11-3
11 Cloud Storage

Granting MATLAB Permission to Your OneDrive Account


When you connect to OneDrive from MATLAB Online, you are granting MATLAB permission to access
the files in your OneDrive account on your behalf. The permissions MATLAB requests are delegated
permissions, which allow MATLAB to act on behalf of the user currently signed in to MATLAB Online.
For more information about the requested delegated permissions, see https://
learn.microsoft.com/graph/permissions-reference#files-permissions.

Note Security Considerations: You can choose to restrict user consent for the OneDrive accounts
in your organization. To learn more about managing consent to applications and evaluating consent
requests, see https://learn.microsoft.com/azure/active-directory/manage-apps/
manage-consent-requests.

See Also

Related Examples
• “Access Files in MATLAB Online” on page 10-2
• “MATLAB Online”

11-4
Open in MATLAB Online from GitHub

Open in MATLAB Online from GitHub


You can open Git repositories directly in MATLAB Online by creating specially formatted links. You
can create a link to a Git repository, or to a project or file within a Git repository. Clicking the link
creates a clone of the Git repository in MATLAB Online. If a project is specified, MATLAB opens and
runs the project. If a file is specified, MATLAB opens the file.

After creating the links, share them by distributing them to others directly, or by creating Open in
MATLAB Online buttons and including them in a Git README file.

Create Links
You can create links interactively or manually.

Interactively

To create the link interactively, go to Create Links for MATLAB Online.

Manually

To create the link manually, copy the link template below. Then, replace the template parameters with
the information for the repository, as described in the table below.
matlab.mathworks.com/open/github/v1?repo=<authorname>/<reponame>&file=<filename>&project=<projectname>&line=<linenumber>

To omit optional parameters, omit the parameter name and value, as well as the & character that
precedes them. For example, this link template omits the project parameter.
matlab.mathworks.com/open/github/v1?repo=<authorname>/<reponame>&file=<filename>&line=<linenumber>

Parameter Required? Summary Example


repo Yes Author and name of the Git repo=myname/myrepo
repository
file No File to be opened after the Git file=filename.mlx
repository is cloned
project No Project to be opened after the project=MyProject.prj
Git repository is cloned
line No Line to navigate to when line=88
specified file is opened

Note Concurrent access of a Git repository in cloud storage might corrupt the repository.

Share Links
After you create a link, you can distribute it to others, for example, by including it in an email. You
also can share the link by creating an Open in MATLAB Online button and including it in a Git
README file. To create the button, copy the markdown template below, replacing the link parameter
with the link that you created to open the repository in MATLAB Online.
[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](<link>)

When you add the markdown to a Git README file, the file shows an Open in MATLAB Online
button, as shown below.

11-5
11 Cloud Storage

See Also

Related Examples
• Create Links for MATLAB Online
• “MATLAB Online”
• “Use Git in MATLAB”
• “Clone Remote Git Repository into New Project”
• “Set Source Control Preferences”

11-6
12

MATLAB Drive

• “Install MATLAB Connector for MATLAB Drive” on page 12-2


• “Use MATLAB Connector to Manage Your Files” on page 12-4
• “MATLAB Drive Preferences and Account Information” on page 12-8
• “Access Files in Your MATLAB Drive” on page 12-10
• “Add Files to Your MATLAB Drive” on page 12-13
• “Share Folders Using MATLAB Drive” on page 12-15
• “Restore Deleted Files in MATLAB Drive Online” on page 12-25
12 MATLAB Drive

Install MATLAB Connector for MATLAB Drive


MATLAB Connector provides an easy way to manage your MATLAB Drive files on your local
computer. With the Connector, files synchronize automatically between MATLAB Drive online and
your local MATLAB Drive when the Connector is running.

Install Instructions
To install MATLAB Connector, follow these steps:

1 Start the installer using one of these methods:

• From the web — Go to the Connector download page and select an install option. Installing
from the web does not require you to have MATLAB installed.
• From within MATLAB — Click the MATLAB Drive button in the Current Folder toolbar.

If the MATLAB Drive button is not on the Current Folder toolbar, you can add it by right-
clicking the toolbar and selecting Customize. Then, in the MATLAB Toolbar Preferences
Controls section, select Access MATLAB Drive files on this computer and click OK.
MATLAB adds the button to the toolbar.
2 Specify a location for your MATLAB Drive folder and other MATLAB Drive preferences. For more
information, see “MATLAB Drive Preferences and Account Information” on page 12-8.

When configuring the location of your MATLAB Drive folder, these locations are not supported:

• Folders on a network drive.


• Read-only or otherwise restricted folders.
• Folders that are already being synced by another application. If you set the location of your
MATLAB Drive folder to a folder that is already being synced, the files in your MATLAB Drive
folder might not correctly sync with the files on the cloud.
3 Click Finish to complete setup and start synchronizing your MATLAB Drive files between your
computer and online accounts. To change any of your selections, click Back.

When the installer finishes, MATLAB Drive is ready for use. To get started, see “Use MATLAB
Connector to Manage Your Files” on page 12-4.

Uninstall Instructions
Operating Instructions
System
Windows 1 Exit MATLAB Connector.
2 Go to the Control Panel, and select Programs > Uninstall a program.
3 (Optional) If you are on a shared computer, clear your cached account information by
deleting the ServiceHost folder. The default location for this folder is C:\Users
\username\AppData\Local\MathWorks\ServiceHost.

12-2
Install MATLAB Connector for MATLAB Drive

Operating Instructions
System
macOS 1 Exit MATLAB Connector.
2 Open a Terminal window.
3 Navigate to the MATLAB Connector installation folder:

cd ~/Library/Application Support/MathWorks/ServiceHost
4 Run the uninstaller:
./v<VERSION>/mci/InstallMathWorksServiceHost.app/Contents/bin/maci64/UninstallMathWorksServiceHost

VERSION is the MATLAB Connector version, which you can find under Settings in the
Connector; for example, 1.8.0.8.
5 (Optional) If you are on a shared computer, clear your cached account information by
deleting the ServiceHost folder. The default location for this folder is ~/Library/
Application Support/MathWorks/ServiceHost.
Linux 1 Exit MATLAB Connector.
2 Open a Terminal window.
3 Navigate to the MATLAB Connector installation folder:

cd ~/.MathWorks/ServiceHost/<HOSTNAME>

HOSTNAME is the computer host name.


4 Run the uninstaller:

./v<VERSION>/mci/bin/glnxa64/UninstallMathWorksServiceHost.sh

VERSION is the MATLAB Connector version, which you can find under Settings in the
Connector; for example, 1.8.0.8.
5 (Optional) If you are on a shared computer, clear your cached account information by
deleting the ~/.MathWorks/ServiceHost/<HOSTNAME> folder.

See Also

Related Examples
• “Use MATLAB Connector to Manage Your Files” on page 12-4
• “MATLAB Drive Preferences and Account Information” on page 12-8

12-3
12 MATLAB Drive

Use MATLAB Connector to Manage Your Files


You can use MATLAB Connector to manage your MATLAB Drive files on your local computer. To get
started, start the Connector if it is not running and then open the Connector window. In the
Connector window, you can view Connector status and recent file activity, resolve file conflicts, and
manage file syncing.

To install the Connector if it is not already installed on your system, see “Install MATLAB Connector
for MATLAB Drive” on page 12-2.

Start MATLAB Connector


If MATLAB Connector is not running, you can start it from within MATLAB or from your operating
system. When you start the Connector, it starts syncing your MATLAB Drive files.

To start the Connector from within MATLAB, in the Current Folder toolbar, click the MATLAB Drive
button . If you do not see the MATLAB Drive button in the Current Folder toolbar, right-click the
toolbar and select Customize. Then, in the MATLAB Toolbars Preferences Controls section, select
the check box for the MATLAB Drive control and select OK. MATLAB adds the button to the toolbar.

To start the Connector from your operating system:

• Windows — In the Start menu, select MATLAB Connector. If you see a security alert when you
start MATLAB Connector, select Allow access to continue.
• macOS — Navigate to ~/Applications in Finder, and double-click MATLAB Connector.
• Linux — Execute ~/bin/MATLABConnector start in a terminal window.

Open MATLAB Connector


To open MATLAB Connector, follow these steps:


Windows — Go to your system notification area, and click the MATLAB Connector icon .

macOS — Go to your menu bar and in the status area, click the MATLAB Connector icon .
• Linux — Execute MATLABConnector toggle in a terminal window.

View Status and Notifications


MATLAB Connector shows the status of your MATLAB Drive files and of your network connection at
the top of the Connector window. If you enable notifications, MATLAB Connector also displays its
status in the Windows system notification area or the macOS menu bar.

This table describes the possible Connector statuses.

Status Icon Description


Files are up to date.

12-4
Use MATLAB Connector to Manage Your Files

Status Icon Description


File updates completed with a condition that could require action.

File updates failed. Your files are not up to date.

File syncing is paused. Resume syncing to ensure files remain up to date.

MATLAB Connector could not connect to the network. File syncing is paused.

To manage notifications, in the bottom-left corner of the window, click the Settings button . Then,
in the MATLAB Drive tab of the MATLAB Connector Preferences window, you can choose to show
all, recommended, or no notifications.

View Recent File Activity


You can view a list of recently synced files in the Activity section of the Connector window. To view
the status of an individual file, select the file in the list to expand its details. To open a file, click the
actions button to the right of the file and select Open.

Manage File Conflicts and Sync Issues


File conflicts can occur if you access your MATLAB Drive data from either multiple machines or a
combination of MATLAB Connector and another access method; for example, MATLAB Drive online,
MATLAB Mobile™, or MATLAB Online.

When you restart the Connector, MATLAB Drive compares an edited file with the same file in cloud
storage. If the content is different, MATLAB Drive renames the local version of the file. The name of
the copied file has the following text appended to the file name:

conflict_copy_machinename_date

12-5
12 MATLAB Drive

To resolve the conflict, compare the two versions, and decide which one you want to keep. You can
merge the changes manually, or delete the version of the file you do not want. If you decide to keep
both versions of the file, you can remove the alert icon by clicking the actions button to the right of
the conflicting file and selecting Dismiss alert.

File Sync Issues

These conditions can affect file syncing:

Issue Description
A file is larger than 5 GB. Smaller files continue to sync.
You exceed your MATLAB Drive Syncing stops. Remove files from your MATLAB Drive to free up
quota. space.
Connection to MATLAB Drive is Syncing stops until the connection is restored.
interrupted.
Filename contains unsupported Other files continue to sync. Rename files that have names with
characters. unsupported characters. Follow the requirements for your
operating system when naming files.
You do not have permission to Syncing does not occur. You are logged in to the computer as a
access files in the MATLAB Drive user who does not have permission to access the local MATLAB
folder. Drive folder. Log in as a user who has permissions to access the
folder, or change the permission on the folder.

Manage File Syncing


When MATLAB Connector is running, it automatically syncs the files in your MATLAB Drive folder
with files on the cloud. You can pause and resume file syncing from the Connector window.

To temporarily stop the syncing of your MATLAB Drive files (for example, if you are on a metered or
slow internet connection), you can pause syncing. When syncing is paused, you can continue to
access and edit the local copies of your files in the MATLAB Drive folder on your computer. When you
resume syncing, MATLAB Drive automatically syncs your changes.

To pause syncing, click the Pause syncing button to the right of the status. To resume syncing,
click Resume syncing under the status or the Resume syncing button to the right of the status.

12-6
Use MATLAB Connector to Manage Your Files

Stop MATLAB Connector


To stop syncing your MATLAB Drive files for an extended period of time, stop MATLAB Connector.
After stopping MATLAB Connector, you can continue to access and edit the local copies of your files
in the MATLAB Drive folder on your computer. When you restart MATLAB Connector, your files sync
automatically.

To stop MATLAB Connector, click the Exit button in the bottom-left corner of the window. On
Windows, you also can right-click the MATLAB Connector icon in the Windows system notification
area and select Exit. On Linux, you also can execute ~/bin/MATLABConnector stop in a terminal
window.

See Also

Related Examples
• “Access Files in Your MATLAB Drive” on page 12-10
• “MATLAB Drive Preferences and Account Information” on page 12-8
• “Install MATLAB Connector for MATLAB Drive” on page 12-2

12-7
12 MATLAB Drive

MATLAB Drive Preferences and Account Information

Preferences
To set preferences for MATLAB Connector, open the Connector and in the bottom-left corner of the
window, click the Settings button .

Select a tab and adjust the options as described in the following table.

Tab Preference
General Select Start MATLAB Connector at system startup to have MATLAB Connector
Settings start whenever you restart your computer.
Select Help improve MATLAB Connector to send your experience information to
MathWorks.
MathWorks Your Name and E-mail address.
Account
Changing your name and email address is not supported in the MATLAB Connector
preferences. To change your name and email address, edit your MathWorks Account
profile on mathworks.com.
MATLAB Folder Location for MATLAB Drive. This location is specified during the installation
Drive of MATLAB Connector and cannot be changed once it is set.

These locations are not supported:

• Folders on a network drive.


• Read-only or otherwise restricted folders.
• Folders that are already being synced by another application. If you set the
location of your MATLAB Drive folder to a folder that is already being synced, the
files in your MATLAB Drive folder might not correctly sync with the files on the
cloud.
Select a Show notifications option to specify what notifications MATLAB Connector
should display. Options include:

• All — Display all notifications in the Windows system tray or on the macOS menu
bar. For less interruption to your work, notifications are aggregated and shown
less often.
• Recommended — Display notifications for errors and conflicts only.
• Off — Display no notifications for any sync activity.

Storage Quota
The amount of space you have on MATLAB Drive is limited by the storage quota. Anyone with a
MathWorks Account has a 5 GB storage quota. If you have an eligible MATLAB license that is current
on Software Maintenance Service, your storage quota increases to 20 GB. For more information, see
How much storage do I have in MATLAB Drive?.

For all accounts, when you exceed your storage quota, you cannot perform the following tasks on
MATLAB Drive:

12-8
MATLAB Drive Preferences and Account Information

• Save files
• Upload folders and files
• Move files or folders
• Rename files or folders
• Create folders

If you run out of storage space, delete files to create space. Items in Deleted Files do not count
toward this quota. If you want to restore an item from Deleted Files, you must have the available
storage space.

Deleted Files has its own quota that is equal in size to your MATLAB Drive quota. If your Deleted
Files exceeds this quota, the oldest items are deleted automatically to reduce the storage amount.
This deletion is permanent.

Note If your Software Maintenance Service has lapsed and you remain over storage quota for 12
months, MathWorks reserves the right to delete some files. Additionally, if your account has been
inactive for 24 months and you are not under Software Maintenance Service, MathWorks reserves the
right to delete all your files. MathWorks may also delete files if you are in violation of the SLA or
federal or local laws. In any case, the deletion affects only the files stored in MathWorks cloud.

Your account is considered inactive if you have not signed into any MathWorks applications that use
MATLAB Drive. These applications include, but are not limited to: MATLAB Online, MATLAB Mobile,
MATLAB Connector, and MATLAB Drive online.

See Also

Related Examples
• “Use MATLAB Connector to Manage Your Files” on page 12-4
• “Access Files in Your MATLAB Drive” on page 12-10

12-9
12 MATLAB Drive

Access Files in Your MATLAB Drive


You can access your MATLAB Drive files and folders in MATLAB Drive online. If MATLAB Connector
is installed, you also can access your MATLAB Drive files and folders on your system.

MATLAB Drive operates like any other folder, with the significant advantage that files can be synced
with any other MATLAB Drive folder, such as in MATLAB Drive online or on another computer that
uses MATLAB Connector.

Access Files in MATLAB Drive Online


You can access your files and folders in MATLAB Drive online.

To open MATLAB Drive online, from your web browser, navigate to MATLAB Drive and sign in with
your MathWorks credentials. Alternatively, if you have MATLAB Connector installed and running,
open the Connector and click the MATLAB Drive online button in the top-right corner of the
window.

This table describes several actions that you can take on your files and folders in MATLAB Drive
online.

Action Instructions
Preview a file or folder You can preview files including MATLAB code files, text files,
image files, and audio files.

To preview a file, double-click it or select the file and then click


View. To preview a file in a new tab, click View in New tab.

If the file you want to preview is too large or has a file type that is
not supported for previewing online, MATLAB Drive online
prompts you to download the file.
Open a file You can open and edit files in MATLAB Online.

To open a file, select it and then click Open in MATLAB Online.

12-10
Access Files in Your MATLAB Drive

Action Instructions
Download a file or folder To download a file or folder from MATLAB Drive online to your
desktop, select the file or folder and then click Download.
MATLAB Drive online saves the file or folder in your system's
default downloads folder. To download multiple files at once, select
the files that you want to download and then click Download.
Downloading multiple folders or a combination of files and folders
at once is not supported.

When you download a folder, MATLAB Drive online saves it as a zip


file. If you attempt to download a large folder and the download
fails, reduce the size of the folder and then try again.

Changes made to downloaded files are not synced to your MATLAB


Drive.
Rename a file or folder To rename a file or folder, select it and then click Rename.
Move a file or folder To move a file or folder, select it and then click Move To. A dialog
box opens and prompts you to select an existing folder or create a
new folder to move the file or folder to. If no selection is made, the
file or folder is moved to the current folder.
Copy a file or folder To copy a file or folder, select it and then click Copy To. A dialog
box opens and prompts you to select an existing folder or create a
new folder to copy the file or folder to. If no selection is made, the
file or folder is copied to the current folder.
Delete a file or folder To delete a file or folder, select it and then click Delete. Deleting a
file or folder moves it to the Deleted Files folder. For more
information, see “Restore Deleted Files in MATLAB Drive Online”
on page 12-25.

Access Files on Your System


If you have MATLAB Connector installed, you can access your MATLAB Drive files and folders from
your system file browser and from MATLAB.

Access Your Files From Your System Browser

In your system file browser, select the MATLAB Drive folder.

Alternatively, if MATLAB Connector is running, click the MATLAB Drive folder button from within
the Connector.

12-11
12 MATLAB Drive

Access Your Files From MATLAB

In the Current Folder browser, select the MATLAB Drive folder. You also can click the MATLAB
Drive button on the Current Folder toolbar.

Clicking the MATLAB Drive button in the Current Folder toolbar also starts MATLAB Connector if it is
installed but not running. If the MATLAB Drive button is not on the Current Folder toolbar, you can
add it by right-clicking the toolbar and selecting Customize. Then, in the MATLAB Toolbar
Preferences Controls section, select Access MATLAB Drive files on this computer and click OK.
MATLAB adds the button to the toolbar.

To open your MATLAB Drive folder programmatically, use the matlabdrive function.

Sync Files with MATLAB Drive

When you edit a file in the MATLAB Drive folder, you are editing a local copy of the file. MATLAB
Drive updates the files in the cloud with the changes you make locally. Because MATLAB Drive stores
a local copy of files on each computer that has MATLAB Connector installed, you can access these
files when offline or when syncing is paused. File syncing resumes when MATLAB Connector is
running and an internet connection is available, or when syncing is resumed.

See Also

Related Examples
• “Add Files to Your MATLAB Drive” on page 12-13
• “Share Folders Using MATLAB Drive” on page 12-15
• “Restore Deleted Files in MATLAB Drive Online” on page 12-25
• “Use MATLAB Connector to Manage Your Files” on page 12-4

12-12
Add Files to Your MATLAB Drive

Add Files to Your MATLAB Drive


You can add files to your MATLAB Drive as you would add files to any other folder. In addition, you
can upload images and videos from mobile devices with the Share button through the device OS or
any mobile application that supports uploading images and videos.

When using MathWorks products:

• You can add files created or updated while you are working in MATLAB by setting the Current
Folder browser to your MATLAB Drive.
• You can add files created or updated while you are working in MATLAB Online or MATLAB Mobile
to your MATLAB Drive.

If you have MATLAB Connector installed, files on your local MATLAB Drive and MATLAB Drive online
are automatically synced when the Connector is running. The Connector displays the files that have
been synced under Activity. Updates of files greater than 250 MB can take longer to update.

If you do not have MATLAB Connector installed, you can add folders and files to your MATLAB Drive
using MATLAB Drive online with the Upload button (select Files or Folder) or by dragging and
dropping folders and files from the operating system file browser. For either method, empty folders
are not uploaded.

Note

• File sync requires an internet connection.


• Using source control tools with your local MATLAB Drive folder is not recommended and can
cause unexpected behavior.

Sync Exclusions
Some small system files, temporary files, and folders created by applications are excluded from
syncing. This exclusion includes the following files:

• desktop.ini
• thumbs.db
• .DS_Store
• Icon\r

Also excluded from syncing are items named in any of the following ways:

• File name begins with ~$ (a tilde and a dollar sign), .~ (a dot and a tilde), or ._ (a dot and an
underscore)
• File names that end with ~ (a tilde)
• File names starting with ~ (a tilde) and ending with the extension .tmp.
• Files with the extension .asv, .autosave, or .mlx.bak
• Folders called slproj

12-13
12 MATLAB Drive

See Also

Related Examples
• “Access Files in Your MATLAB Drive” on page 12-10
• “Restore Deleted Files in MATLAB Drive Online” on page 12-25
• “Use MATLAB Connector to Manage Your Files” on page 12-4

12-14
Share Folders Using MATLAB Drive

Share Folders Using MATLAB Drive


You can collaborate with others and allow them to view and edit your files by sharing folders from
MATLAB and MATLAB Drive online. You can share a folder by inviting individual members to have
access to the folder or by sharing a link to the folder.

When you send someone a personal invitation to a shared folder, they can preview it and add it to
their files. They can also edit its contents if you grant them permission to do so. When you send
someone a view-only link, they can preview it and add it to their files, but not edit it. Previewing and
adding shared folders to your files can only be done in MATLAB Drive online and requires a
MathWorks Account.

To share a folder from MATLAB, you must be running MATLAB R2019b or later, MATLAB Connector
must be running, and the folder you choose to share must be in your MATLAB Drive. If you are
working in MATLAB Online, you do not need MATLAB Connector to share folders since sharing is
always enabled.

Note Security Considerations: If a folder contains symbolic links to other folders on your system,
sharing that folder may grant recipients of the shared folder access to other locations on your system.
MATLAB Drive does not create symbolic links, but it does follow existing symbolic links.

Share Folder by Personal Invitation


You can share a folder from MATLAB and MATLAB Drive online by sending a personal invitation.
Sharing a folder by personal invitation allows you to give others both view and edit permission to
your files. To send an invitation:

1 Right-click the folder and select Share > Invite Members. If you have already shared the folder
by personal invitation, select Manage Members instead. In MATLAB Drive online, you also can
click the Share button and select from the available options.

In MATLAB Online, you also can select the Preview button to the right of the folder, and in the
Share section, select from the available options.

2 In the Invite section of the invitation, enter the email addresses of the people that you want to
share this folder with. To share the folder with multiple people, enter multiple email addresses
separated by semicolons or commas.

If you have previously shared a folder with others, you also can select from the list of people that
you have recently and frequently shared with. Only people who have previously accepted an
invitation from you are included in the list. To filter the list of suggestions, enter the first name,
last name, or email address of the person you want to share with.

12-15
12 MATLAB Drive

3 Select Can View to share the folder as a read-only folder or Can Edit to allow invited members
to edit its contents. If you want to share the folder with multiple people using different
permissions, send each invitation separately.
4 Optionally, enter a message to include with the invitation.
5 Click Send. MATLAB Drive sends an email to the people you have invited.

Change Member Permission

Once you personally invite someone to share a folder, you can change their folder permissions from
MATLAB and MATLAB Drive online. For example, if you invite someone to share a folder as a read-
only folder, you can change their permissions to allow them to edit its contents.

To change the folder permissions for an invited member, right-click the shared folder and select
Share > Manage Members. In the Shared With section, next to the address of the invited member,
select a different folder permission. Then, click Save to update the permissions.

In MATLAB Drive online, you also can click the Share button and select Manage Members. In
MATLAB Online, you also can select the Preview button to the right of the folder, and in the Share
section, select Manage Members.

12-16
Share Folders Using MATLAB Drive

Revoke Personal Invitations

Once you personally invite someone to share a folder, you can revoke their access.

To revoke access, right-click the shared folder and select Share > Manage Members. Click the X
next to the name of the member to revoke shared access.

In MATLAB Drive online, you also can click the Share button and select Manage Members. In
MATLAB Online, you also can select the Preview button to the right of the folder, and in the Share
section, select Manage Members.

Share Folder With View-Only Link


You also can share a folder from MATLAB and MATLAB Drive online by creating and distributing a
view-only link to the folder. Sharing a folder using a view-only link gives others view permissions to
your files. To create and distribute a view-only link to a folder:
1 Right-click the folder and select Share > Create Link. Click Create a view-only link to create
the link. If you have already created a view-only link for the folder, select Manage Link instead.
In MATLAB Drive online, you also can click the Share button and select from the available
options.

In MATLAB Online, you also can select the Preview button to the right of the folder, and in the
Share section, select from the available options.

12-17
12 MATLAB Drive

2 Click Copy Link to copy the link to the clipboard.


3 Distribute the link to others, for example, by including it in an email.

Remove Shared Link

To remove access to a shared folder from a view-only link, right-click the shared folder and select
Share > Manage Link. Click Delete Link and confirm the deletion by clicking Delete.

In MATLAB Drive online, you also can click the Share button and select Manage Link. In MATLAB
Online, you also can select the Preview button to the right of the folder, and in the Share section,
select Manage Link.

Members who gained access to the folder using the link will no longer have access to it, and anyone
who tries to use the link in the future gets an error. Deleting the link does not cause any change in
access to those who received a personal invitation to the shared folder. To change their access, see
“Change Member Permission” on page 12-16.

Access Folders Shared with You


You can get access to a shared folder by receiving either a personal invitation or a view-only link.
When you receive an invitation or a link, you can preview the contents of the shared folder. Then, to
view and open the contents of the folder, and to edit them if permitted, add the folder to your files.

12-18
Share Folders Using MATLAB Drive

Preview Folder Shared by Personal Invitation

When you are personally invited to a shared folder, you receive an email with a link to the invitation.
Click View Folder in the invitation to open the pending invitation in MATLAB Drive online.

To view all of your pending invitations in MATLAB Drive online, click Shared Content on the left side
of the page.

When the invitation opens, MATLAB Drive online displays a preview of the shared folder. You can
navigate the structure of the shared folder and preview individual files. You must be logged in with
your MathWorks account to preview the folder. To view and open the contents of the folder, and to
edit them if permitted, add the folder to your files.

Preview Folder Shared by View-Only Link

When you receive a view-only link to a shared folder, open the link to preview it in MATLAB Drive
online. When the preview opens, you can navigate the structure of the folder and preview individual
files. Previewing a folder shared by link does not require a MathWorks account. To view and open the
contents of the folder, add it to your files.

12-19
12 MATLAB Drive

You can also forward the link to others. To get a new copy of the link, click Share Link. In the
Share by Link dialog box, click Copy Link to copy the link to the clipboard.

Add Shared Folder to Your Files

To view and open the contents of a folder shared with you, and to edit them if permitted, add the
folder to your files. You can add a folder to your files either by creating a shortcut to the shared
folder, or by creating a copy of the shared folder that is only visible and accessible to you.

To create a shortcut to the shared folder, in the MATLAB Drive online folder preview, click the
Add to my Files button and select Add
Shortcut. To create a copy of the shared folder that is only visible and accessible to you, click the
Add to my Files button and select
Copy Folder. MATLAB Drive adds the folder to your files and opens the Files view. You must be
logged in with your MathWorks account to add a shared folder to your files.

If you have MATLAB Connector installed, the Connector syncs the contents of the added shared
folder to your local drive.

Manage Shared Folder


If you have edit permissions to a shared folder, you can edit its contents, as well as move, rename,
and delete the folder itself.

12-20
Share Folders Using MATLAB Drive

MATLAB Online and MATLAB Drive online indicate shared folders using the shared folder icon . If
you have MATLAB Connector installed, the Connector indicates shared files in the Activity section by
displaying SHARED below the file name. If you do not have edit permissions for the shared file, the
Connector displays a padlock icon .

Edit Shared Folder

If you have edit permissions to a shared folder, you can edit the contents of the files and folders
within that folder. You can edit the files in MATLAB Online, or, if you have MATLAB Connector
installed, you can edit the files on your local drive. As you and other members of the folder make
changes, the Connector keeps the shared folder on your local drive up-to-date.

Warning It is possible that other participants with edit permissions are also editing the same files as
you are. If this occurs, the most recently saved copy overwrites any other saved copies.

You cannot edit a shared file if you do not have edit permissions for the shared folder. If you do not
have edit permissions for a shared file, MATLAB Connector displays a padlock icon below the file
name in the Activity section.

Move or Rename Shared Folder

You can move a shared folder to a new location within your MATLAB Drive. If you have edit
permissions to a shared folder, you also can move or rename its contents. You can move or rename
the folder in MATLAB Drive online and, if you have edit permissions to the folder, from MATLAB.

If you move or rename a shared folder:

• The folder is moved or renamed only for you.


• Others with access to the shared folder do not see the changes. This is true even if you are the
owner of the shared folder.

If you have edit permissions for a shared folder, you can move or rename content inside it. When you
move or rename content inside a shared folder, the moved or renamed content is moved or renamed
for all members of the folder.

12-21
12 MATLAB Drive

Note If you move one shared folder into another, the one that you move takes on the permissions of
its new parent. For example, if a member can edit the parent folder, they can now edit the folder that
you move into it.

Delete Shared Folder

You can delete a shared folder in your MATLAB Drive. If you have edit permissions to a shared folder,
you can also can delete its contents. You can delete the folder from MATLAB Drive online and, if you
have edit permissions to the folder, from MATLAB.

If you delete a shared folder:

• MATLAB Drive deletes the folder and its contents only from your MATLAB Drive.
• All others with access to the folder, whether by personal invitation or view-only link, continue to
have access to it.
• The folder no longer counts towards your storage quota.

If you have edit permissions for a shared folder, you can delete content inside it. When you delete
content inside a shared folder:

• MATLAB Drive deletes the content from your MATLAB Drive and for all other members of the
folder.
• The content no longer counts towards your storage quota.

Permanently Delete Shared Folder

When you delete a shared folder or its contents, MATLAB Drive moves the deleted items to your
Deleted Files folder. You then can choose to permanently delete those items from your MATLAB
Drive.

Note MATLAB Drive permanently deletes content (including shared folders) in your Deleted Files
folder after 30 days or if your Deleted Files folder is over the deleted files storage quota.

If you permanently delete a shared folder from your Deleted Files folder:

• The folder and its contents are permanently deleted only from your MATLAB Drive.
• All others with access to the folder continue to have access to it.
• If you are the owner of the shared folder, then the folder becomes ownerless. When a folder is
ownerless, no new members can gain access to the folder, whether by personal invitation or view-
only link. In addition, MATLAB Drive deletes all pending invitations to access the folder.

If you permanently delete content from a shared folder:

• The content is permanently deleted from your MATLAB Drive and for all members of the folder.

You cannot permanently delete content from a shared folder that has active members with edit
permissions to the folder.

12-22
Share Folders Using MATLAB Drive

Sharing Limitations
There are limits on how many folders you can share, how many people you can share each folder
with, and how much data your MATLAB Drive can hold.

User Sharing Limitations

You can have up to 100 shared folders in your MATLAB Drive. This total includes folders shared by
you (regardless of whether others have accepted your invitation) and folders shared by others that
you have added to your files. Sub-folders in shared folders are not included in this limit.

If you reach the limit of 100 shared folders:

• You cannot share additional folders.


• You cannot add additional shared folders to your files.
• If you receive an invitation to access a shared folder, you can preview the files but you cannot add
a shortcut to the folder to your files. You can, however, create an unshared copy of the folder and
add it to your files. To create an unshared copy of the folder, in MATLAB Drive online, select the
folder, click the Add to my Files
button, and select Copy Folder.

Folder Sharing Limitations

The number of people that you can share a folder with depends on whether you have an eligible
MATLAB license that is current on Software Maintenance Service.

If you have an eligible MATLAB license:

• You can share a folder with 1,000 people using a view-only link and with an additional 100 people
using a personal invitation.

If you do not have an eligible MATLAB license:

• You can share a folder with 10 people using a view-only link and with an additional 10 people
using a personal invitation.

After you have reached your limit for personal invitations you cannot invite others to share that
folder. If a member leaves the shared folder or declines the invitation to access the shared folder,
then you can send additional invitations.

When sharing a folder using a view-only link, when the number of people accessing the link reaches
the folder maximum, others who try to use that link cannot access the folder.

Storage Quota Limitations

When you add a shared folder to your files, the content of that shared folder is included as part of
your total storage allotment, regardless of whether you have edit or read-only permissions to the
folder. If a member of the folder adds or deletes content, your storage allotment updates accordingly.

If you exceed your maximum storage allotment:

• Others with edit permissions can add content to your shared folders, but you cannot.

12-23
12 MATLAB Drive

• You cannot add additional folders to your files or create new invitations or shared links to a folder.

For more information, see “Storage Quota” on page 12-8.

See Also

Related Examples
• “Access Files in Your MATLAB Drive” on page 12-10
• “Add Files to Your MATLAB Drive” on page 12-13
• “Restore Deleted Files in MATLAB Drive Online” on page 12-25
• “Manage Files and Folders” on page 6-35

12-24
Restore Deleted Files in MATLAB Drive Online

Restore Deleted Files in MATLAB Drive Online


The Deleted Files folder on MATLAB Drive online holds content that you have deleted from MATLAB
Drive.

To restore content, select the file or folder in Deleted Files, and click Restore.

You can restore content in the Deleted Files folder under the following conditions:

• The file or folder to restore has been in the Deleted Files folder for less than 30 days. (After 30
days or if your Deleted Files has gone over storage quota, content is permanently deleted.)
• You did not permanently delete the content from the Deleted Files folder.
• You have the available storage space in your MATLAB Drive for the restored content.
• You restore an exact item that you deleted. For example, if you deleted an entire folder, you cannot
restore only a single file from that folder — you must restore the entire folder.

Items restored from the Deleted Files folder are returned to their original folder locations.

See Also

Related Examples
• “Add Files to Your MATLAB Drive” on page 12-13
• “Access Files in Your MATLAB Drive” on page 12-10

12-25
13

Post-Installation Tasks
13 Post-Installation Tasks

Configure the MATLAB Startup Accelerator


When you install MathWorks products on your computer, the installation includes a utility program
that can speed up MATLAB startup, called the MATLAB Startup Accelerator. By default, the installer
configures this utility as a scheduled task on your computer that runs several times each day.

While you are not required to modify this configuration, the startup accelerator works best if you
coordinate when it runs with your particular MATLAB usage patterns. For example, by default, the
startup accelerator runs at 8:00 a.m. and again at 1:00 p.m. every day, or whenever you log on to
your computer. To take full advantage of the startup accelerator, schedule it to run at a time just
before you typically start MATLAB.

To modify this configuration, use the Windows Task Scheduler. In the Windows Task Scheduler, these
start times are called triggers. You can modify these triggers to customize when the startup
accelerator runs. You can also add triggers, delete triggers, or delete the startup accelerator task
completely. The following section shows how to change when the startup accelerator runs using the
Windows Task Scheduler. For more information about the Task Scheduler, see Windows
documentation.

Change When the MATLAB Startup Accelerator Runs


To change when the MATLAB Startup Accelerator runs on your computer, use the Windows Task
Scheduler.

1 Start the Windows Task Scheduler.

On the Windows Start menu, search for the phrase “task scheduler” and press Enter.
2 Click Task Scheduler Library in the Console tree to view scheduled tasks and double-click the
name of the startup accelerator to change the configuration.

13-2
Configure the MATLAB Startup Accelerator

3 To change when the task is scheduled to start, click the Trigger tab in the task properties dialog
box. In the list of triggers displayed, select the trigger you want to change, and click Edit.

13-3
13 Post-Installation Tasks

4 To change the time the task is scheduled to run, enter a new time and click OK.

13-4
Configure the MATLAB Startup Accelerator

13-5
14

New Desktop for MATLAB (Beta)

• “Get Started with the New Desktop for MATLAB (Beta)” on page 14-2
• “Extend MATLAB Using Extension Points (Beta)” on page 14-13
14 New Desktop for MATLAB (Beta)

Get Started with the New Desktop for MATLAB (Beta)


The new desktop for MATLAB includes new and updated features, such as:

• Dark theme support


• An updated layout
• A new figure window experience
• Expanded search capabilities
• A new plain text file format for live scripts
• A new Debugger panel and Source Control panel
• Enhanced workflows for MATLAB projects
• Improved screen reader support
• Extension points

To try these features, download and install the New Desktop for MATLAB (Beta) add-on from File
Exchange.

Note The new desktop for MATLAB is in beta development and should not be used for development
or production activities. Report all feedback and issues directly to the development team by clicking
the Feedback button directly above the MATLAB Toolstrip.

Dark Theme Support


Change the colors of the MATLAB desktop by using themes. For example, to select a dark theme, go
to the Home tab, and in the Environment section, click Preferences. Select MATLAB >
Appearance and set the Theme to Dark.

14-2
Get Started with the New Desktop for MATLAB (Beta)

By default, the colors of figures and apps automatically update to match the selected MATLAB
desktop theme. Starting in R2024a, you can override the desktop theme for an individual figure. To
override the desktop theme of a figure, in the Figures toolstrip, go to the Format tab and select a
theme. You also can change the figure theme programmatically by calling the theme function or
setting the Theme property of the figure to "light" or "dark". For example, this code shows two
ways to set the theme for the figure f to light, regardless of the current desktop theme.

f = figure;
theme(f,"light");
f.Theme = "light";

To override the desktop theme for all figures, in the MATLAB Appearance Preferences page of the
Preferences window, use the Figure Theme option. For example, to display all figures with a light
theme, set the Figure Theme option to Light.

To select the theme for all figures, set the GraphicsTheme setting to "light" or "dark". For
example:

s = settings;
s.matlab.appearance.figure.GraphicsTheme.TemporaryValue = "light";

Updated Desktop Layout


The updated desktop layout includes sidebars on either side and on the bottom of the desktop to
access desktop tools and change the desktop layout. Each sidebar shows the tools, such as the

14-3
14 New Desktop for MATLAB (Beta)

Workspace panel, Files panel, and Command Window, that are docked in that area of the desktop. If
there are no tools docked in an area of the desktop, the sidebar for that area is hidden.

You can use the sidebars to show and hide tools, group tools together, move tools from one location to
another, and open tools that are not in any of the sidebars.

• Show or hide tool — Click the tool icon in the sidebar.


• Group tools together — Drag one tool icon next to another tool icon.
• Move tool to different location on desktop — Drag the tool or tool icon to the new location.
• Open tool — Click the Open more panels button ( ). Then, in the Open Panel dialog box, select
from the available tools.

Enhanced Figure Window Capabilities


Explore data in the figures you create by using an enhanced set of figure tools and capabilities. When
you create a figure by calling the figure function or by creating graphics, the figure appears larger
and wider to better display your data. You can then use figure tools to interact with, customize, and
compare the figures you create.

For example, you can use the enhanced figure capabilities to:

• Format figure content interactively — Edit your figure content by using the new Figures toolstrip.
You can use the toolstrip to change text styles and line styles, as well as add items such as titles,
labels, legends, grid lines, arrows, and shapes. To change styles or add an item, select a figure, go
to its Figure or Format tab, and select from the available options.

14-4
Get Started with the New Desktop for MATLAB (Beta)

• Reproduce figure changes — As you interactively change a figure, MATLAB generates code that
represents the changes. You can use this code to reproduce the modified figure. In the Figure tab
of the toolstrip, select Show Code and in the Generated Code panel under the figure, use the
Copy all code button to copy the generated code.
• View all figures and tools in a single area — Independent figures created with the default size and
window state appear as tabs in a single tabbed figure window. You can use the tabs to quickly find
and navigate to a specific figure. In addition, tools to modify the figure (such as the Figures
toolstrip, the Property Inspector, and the Generated Code panel) appear as part of the same
window.
• Compare and arrange figures — View multiple figures at the same time by tiling figures in the
tabbed figure window. Drag tabs to tile figures interactively.

Expanded Search Capabilities


Use the Search box in the top-right corner of the desktop to easily access toolstrip actions,
preferences, and Help Center resources, such as functions, blocks, examples, and answers.

For example, to create a function, type the word function in the Search box. In the list of results,
select the New - Function toolstrip action. MATLAB creates a file containing a basic function
template and opens it in the Editor.

14-5
14 New Desktop for MATLAB (Beta)

New Plain Text File Format for Live Scripts

Starting in R2024b, you can save live scripts and functions using a plain text file format (.m). Live
scripts saved using the plain text file format behave just like other live scripts. They open in the Live
Editor and can contain code, output, and formatted text. They also can include interactive controls
and tasks.

Note This new file format is available only as part of the new desktop for MATLAB.

14-6
Get Started with the New Desktop for MATLAB (Beta)

The Live Editor uses custom markup to save formatted text, generated output, interactive controls,
and tasks as plain text. The Live Editor saves the custom markup alongside the code and saves any
additional essential data at the bottom of the file.

There are several benefits to saving live scripts using the plain text file format:

• Files open in external code editor — You can open live scripts saved using the plain text file format
in any external text or code editor that supports plain text files.
• Increased transparency — Files saved using the plain text file format do not trigger security
concerns. One exception might be if the live script contains images and plots, which are saved as
Base64 (ASCII-binary) strings in the plain text file.
• Improved integration with source control — You can use external source control tools to compare
and merge live scripts saved using the plain text file format.

To save an existing live script as a new live script using the plain text file format (.m):
1 On the Live Editor tab, in the File section, select Save > Save As.
2 In the dialog box that appears, select MATLAB Code File (*.m) as the Save as type.
3 Enter a filename. To avoid conflicts when running, use a different filename than the original file.
4 Click Save.

To create new live scripts as plain text files by default, go to the Home tab, and in the Environment
section, click Preferences. Select MATLAB > Editor/Debugger and in the Live script format
section, set the Default live script file format to M.

Known Issues and Limitations

• Some external source control tools have limitations around file size that might prevent the
comparison of live scripts saved using the plain text file format. For the best results, try using
GitHub® Desktop or Visual Studio Code. You also can reduce file size by clearing all output before
submitting your files to source control.
• The help and doc functions might display unexpected content for live functions saved using the
plain text file format.
• When comparing two live scripts or functions saved using the plain text file format, the
Comparison Tool compares the files as plain text files instead of live scripts or functions.

14-7
14 New Desktop for MATLAB (Beta)

• Some programmatic functionality might be unavailable for live scripts and functions saved using
the plain text file format.

Debugger Panel
Use the Debugger panel to manage breakpoints and navigate the function call stack while debugging.
By default, the Debugger panel opens automatically when MATLAB enters debug mode. To open the
Debugger panel manually, go to the Editor or Live Editor tab, and in the Analyze section, click
Debugger. Alternatively, you can open the panel using the Open more panels button ( ) in a
sidebar.

The Breakpoints section in the panel lists the breakpoints in all MATLAB code files. The first four
breakpoints in the section (Pause on Errors, Pause on Warnings, Pause on NaN or Inf, and
Pause on Unsuppressed Output) are error breakpoints. When you enable one of these breakpoints,
MATLAB pauses at any line in any file if the specified error condition occurs. The remaining
breakpoints are grouped by file.

The Function call stack section shows the list of functions MATLAB executed before pausing at the
current line. The functions display in order, with the current script or function in which MATLAB is
paused at the top of the list, and the first called script or function at the bottom of the list. For each
function in the function call stack, there is a corresponding workspace. To view the workspace for a
function in the function call stack, select that function in the list.

Source Control Panel


Use the Source Control panel to see all active source control repositories, manage modified files, and
perform source control operations. To open the Source Control panel, use the Open more panels
button ( ) in a sidebar.

14-8
Get Started with the New Desktop for MATLAB (Beta)

For files and folders under Git™ source control, you can use the Branch Manager to manage multiple
local and remote repositories, find and compare commits, and create, delete, and merge branches. To
open the Branch Manager, in the Source Control panel, click the Branch Manager button for the
repository that you want to manage.

You also can view the line-by-line revision history for an entire MATLAB file under Git source control
by using the Blame View option. To show the Blame View, open the file in the Editor. Then, in the gray
area on the left side of the Editor, right-click and select Show Blame View. Alternatively, in the Files
panel, right-click the file and select Source Control > Show Blame View.

14-9
14 New Desktop for MATLAB (Beta)

Enhanced Workflows for MATLAB Projects


MATLAB Projects includes an updated interface that provides access to enhanced workflows and new
capabilities.

In the updated project interface, use the Project Settings window to manage all settings for your
project. For example, you can view and edit project details, manage the project path and folder
settings, manage dependencies to projects and packages, automate startup and shutdown actions,
and create labels and custom tasks in a single interface. Project tools, such as Custom Tasks, Project
Checks, Project Upgrade, and Dependency Analyzer, also have simpler interfaces and new
capabilities.

14-10
Get Started with the New Desktop for MATLAB (Beta)

Screen Reader Support


Use a screen reader and a keyboard to interact with the Command Window, create and edit scripts
and functions in the Editor, and navigate through the different areas of the MATLAB desktop. For
more information, see Accessibility in MATLAB on page 2-23.

Extension Points
Extend various functionalities of the MATLAB desktop using extension points. For example, you can
use extension points to add items to the Files panel context menu or to the quick access toolbar. To
use extension points, create a JSON-formatted file named extensions.json and add a set of JSON
declarations to the file. Then, to enable your customizations, add extensions.json to the path.

For example, this extensions.json file uses the mw.desktop.quickAccess extension point to
add an item to the quick access toolbar and the mw.desktop.fileBrowser.contextMenu
extension point to add an item to the Files panel context menu.
{
"mw.desktop.quickAccess": {
"items": [
{
"name": "openCustomFunction",
"type": "PushButton",
"text": "Open Custom Function",
"description": "Open my custom function",
"icon": "./icons/Open_16.png",
"command": "openMyFunction"
}]

14-11
14 New Desktop for MATLAB (Beta)

},
"mw.desktop.fileBrowser.contextMenu": {
"customSection": {
"items": [
{
"name": "displayAttributes",
"type": "MenuItem",
"text": "Display File Attributes",
"description": "Tooltip hover information",
"icon": "./icons/Display_16.png",
"command": "displayFileAttributes"
}]
}
}
}

For more information, see “Extend MATLAB Using Extension Points (Beta)” on page 14-13.

Return to Original Desktop


To return to the original MATLAB desktop, click the Stop New Desktop button, and follow the
prompts to restart MATLAB. If you return to the original desktop, you can try the new desktop again
by clicking the Try the New Desktop button directly above the toolstrip.

To uninstall the new desktop and remove the buttons above the toolstrip, go to the Home tab, and in
the Environment section, select Add-Ons > Add-Ons to open the Add-Ons panel. Click the Options
button to the right of the New Desktop for MATLAB add-on and select Uninstall.

Known Issues
Software development is ongoing for the new desktop for MATLAB. For the most up-to-date list of
known issues, see New Desktop for MATLAB (Beta) on File Exchange.

14-12
Extend MATLAB Using Extension Points (Beta)

Extend MATLAB Using Extension Points (Beta)


You can extend various functionalities of the MATLAB desktop using extension points. For example,
you can use extension points to add items to the Files panel context menu or to the quick access
toolbar.

You can use these extension points to extend the MATLAB desktop:

• mw.desktop.addressBar.displayedRoots — Customize the list of displayed roots in the


address bar.
• mw.desktop.fileBrowser.contextMenu — Add an item to the Files panel context menu.
• mw.desktop.quickAccess — Add an item to the quick access toolbar.
• mw.fileTypes.icons — Specify the icon that displays for a file type in the Files panel, including
the file preview.
• mw.fileTypes.labels — Specify the label that displays for a file type in the Files panel,
including the Type column and file preview.
• mw.fileTypes.filenameValidation — Add name validation for a file type.
• mw.fileTypes.groups — Create groups of file types to customize.

Note Extension points are available only as part of the new desktop for MATLAB. The new desktop
for MATLAB is in beta development and should not be used for development or production activities.
For more information, see “Get Started with the New Desktop for MATLAB (Beta)” on page 14-2.

Get Started with Using Extension Points


To use extension points, create a JSON-formatted file named extensions.json and add a set of
JSON declarations to the file. Then, to enable your customizations, add extensions.json to the
path.

For example, this extensions.json file uses the mw.desktop.quickAccess extension point to
add an item to the quick access toolbar and the mw.desktop.fileBrowser.contextMenu
extension point to add an item to the Files panel context menu.
{
"mw.desktop.quickAccess": {
"items": [
{
"name": "openCustomFunction",
"type": "PushButton",
"text": "Open Custom Function",
"description": "Open my custom function",
"icon": "./open_16.png",
"command": "openMyFunction"
}]
},
"mw.desktop.fileBrowser.contextMenu": {
"customSection": {
"items": [
{
"name": "displayAttributes",
"type": "MenuItem",

14-13
14 New Desktop for MATLAB (Beta)

"text": "Display File Attributes",


"description": "Tooltip hover information",
"icon": "./icons/Display_16.png",
"command": "displayFileAttributes"
}]
}
}
}

Create extensions.json

To start extending MATLAB, create a JSON-formatted file named extensions.json and place it in a
folder named resources. You can create more than one extensions.json file, as long as they are
in different resources folders.

Add JSON Declarations

For each extension point that you want to use, add a set of JSON declarations to the
extensions.json file.

The extensions.json file should contain a single top-level JSON object. MATLAB extension points
are organized by category in a tree-based hierarchy under the top-level namespace, mw.

JSON uses braces to define objects and refers to objects as collections of name and value pairs.
Because these terms are overloaded in context of MATLAB, this documentation uses the term
"property" instead of "name." JSON uses brackets to define arrays.

Create-User Defined MATLAB Function

Some extension point properties call user-defined MATLAB functions to perform an action. When
creating these functions, specify the required input arguments and no output arguments. Place your
function in a folder on the MATLAB path to make it available.

Enable Your Customizations

After you are done creating the extensions.json file, to enable your customizations, add the folder
containing the resources folder and extensions.json to the MATLAB path. To add the folder to
the path, use the addpath function or right-click the folder in the Files panel and select Add to Path
> Selected Folders and Subfolders.

Add Items to Files Panel Context Menu


You can add your own custom items to the Files panel context menu using the
mw.desktop.fileBrowser.contextMenu extension point.

For each custom item that you want add to the Files panel context menu, define an object within the
items array of the mw.desktop.fileBrowser.contextMenu extension point. When adding
multiple custom items, separate each object with a comma.

For example, this extensions.json file contains a set of JSON declarations that adds an item to the
Files panel context menu.

{
"mw.desktop.fileBrowser.contextMenu": {
"customSection": {

14-14
Extend MATLAB Using Extension Points (Beta)

"items": [
{
"name": "displayAttributes",
"type": "MenuItem",
"text": "Display File Attributes",
"icon": "./icons/Display_16.png",
"command": "displayFileAttributes"
}]
}
}
}

Create-User Defined MATLAB Function

To perform an action when a custom item in the Files panel context menu is selected, create a
function that performs the intended action. Then specify the function name as the value of the
command property. Place the function in a folder on the MATLAB path to make it available.

For example, create the function displayFileAttributes, which is referenced by the command
property in the JSON file. MATLAB calls this function when you select the custom
displayAttributes item in the Files panel context menu. When called, the function displays the
file attributes for each selected file in the Files panel.

function displayFileAttributes(selectedFilePaths)
numfiles = length(selectedFilePaths);
for i = 1:numfiles
disp("File attributes for '" + selectedFilePaths(i) + "'")
fileattrib(selectedFilePaths(i))
end
end

Enable Your Customizations

To enable your customizations, add the folder containing the resources folder and the
extensions.json file to the path. When the folder is added to the path, a new menu item appears
in the Files panel context menu.

14-15
14 New Desktop for MATLAB (Beta)

When you select the new menu item, MATLAB displays the file attributes for the selected files in the
Files panel within the Command Window.

File attributes for 'C:\MyWork\stat.m'

Name: 'C:\MyWork\stat.m'
archive: 1
system: 0
hidden: 0
directory: 0
UserRead: 1
UserWrite: 1
UserExecute: 1
GroupRead: NaN
GroupWrite: NaN
GroupExecute: NaN
OtherRead: NaN
OtherWrite: NaN
OtherExecute: NaN

Add Items to Quick Access Toolbar


You can add your own custom items to the quick access toolbar using the
mw.desktop.quickAccess extension point.

For each custom item that you want add to the quick access toolbar, define an object within the
items array of the mw.desktop.quickAccess extension point. When adding multiple custom items,
separate each object with a comma.

14-16
Extend MATLAB Using Extension Points (Beta)

For example, this extensions.json file uses the mw.desktop.quickAccess extension point to
add a push button to the quick access toolbar.
{
"mw.desktop.quickAccess": {
"items": [
{
"name": "openCustomFunction",
"type": "PushButton",
"text": "Open Custom Function",
"description": "Open my custom function",
"icon": "./icons/Open_16.png",
"command": "openMyFunction"
}]
}
}

Create User-Defined MATLAB Function

To perform an action when a custom item in the quick access toolbar is clicked or selected, create a
function that performs the intended action. Then specify the function name as the value of the
command property. Place the function in a folder on the MATLAB path to make it available.

For example, create the function openMyFunction, which is referenced by the command property in
the JSON file. MATLAB calls this function when you click the custom openCustomFunction button
in the quick access toolbar. When called, the function prints a message in the Command Window and
opens myWorkingFile.m in the Editor.
function openMyFunction
disp("Opening 'myWorkingFile.m' in the Editor...")
edit myWorkingFile.m
end

Enable Your Customizations

To enable your customizations, add the folder containing the resources folder and the
extensions.json file to the path. When the folder is added to the path, a new button appears in the
quick access toolbar.

When you click the button, the openMyFunction function is called .openMyFunction opens the file
myWorkingFile.m in the Editor and prints this text to the Command Window:
Opening 'myWorkingFile.m' in the Editor...

Customize How Files Display in MATLAB


You can customize how to display file types in MATLAB using extension points.

14-17
14 New Desktop for MATLAB (Beta)

Specify Icon and Label

You can customize the icon and label for file types in MATLAB. For each file type that you want to
customize, define an object within the mw.fileTypes.icons and mw.fileTypes.labels
extension points. To specify an icon, specify the object name as the extension of the file type and the
object value as the path to the icon. To specify a label, specify the object name as the extension of the
file type, and the object value as the label text. When adding icons and labels for multiple file types,
separate each object with a comma.

For example, this set of JSON declarations adds a custom icon and label for markdown files (.md) and
SVG files (.svg).
{
"mw.fileTypes.icons": {
"md": "./documentList.svg",
"svg": "./images.svg"
},
"mw.fileTypes.labels": {
"md": "Markdown Documentation File",
"svg": "Support Vector Graphics"
}
}

For more information, see mw.fileTypes.icons and mw.fileTypes.labels.

Specify Filename Validation

You can add filename validation for file types. For each file type, define an object within the
mw.fileTypes.filenameValidation extension point. When adding filename validation for
multiple file types, separate each object with a comma.

Within each file type object, define one or more errorRegexPatterns or warningRegexPatterns
objects, separating each object with a comma. Include an errorRegexPatterns or
warningRegexPatterns object for each pattern that you want to validate for. Then, for each
errorRegexPatterns and warningRegexPatterns object, specify a pattern to valid against, any
validation flags, and the error or warning message to display.

For example, this set of JSON declarations adds filename validation for markdown files (.md) to check
whether the name of a markdown file is not empty or too long when the file is created or renamed.
{
"mw.fileTypes.filenameValidation": {
"md": {
"errorRegexPatterns": [{
"pattern": "/^.+$/;",
"flags": "ig",
"errorLabel": "Filename must not be empty"
}],
"warningRegexPatterns": [{
{
"pattern": "/^.{0,125}$",
"flags": "ig",
"warningLabel": "Filename is too long"
}]
}
}
}

14-18
Extend MATLAB Using Extension Points (Beta)

For more information, see mw.fileTypes.filenameValidation.

Create Groups of File Types

You can create groups of file types in MATLAB using the mw.fileTypes.groups extension point.
Creating groups allows you to customize multiple file types at the same time.

To create a group of file types, define an object within the mw.fileTypes.groups extension point.
Specify the object name as the name of the group that you want to create and the object value as an
array of file type extensions that you want to include in your group. When creating multiple groups,
separate each object with a comma. Then, to use the group to customize multiple file types at the
same time, specify groups.groupname instead of a file type extension.

For example, this set of JSON declarations creates a group for markdown files (.md) and SVG files
(.svg), and then customizes the icon and label for the group.
{
"mw.fileTypes.groups": {
"myfiletype": ["md", "svg"]
},
"mw.fileTypes.icons": {
"groups.myfiletype": "./images.svg"
},
"mw.fileTypes.labels": {
"groups.myfiletype": "My file types"
}
}

For more information, see mw.fileTypes.groups.

Enable Your File Type Customizations

To enable your file type customizations, add the folder containing the resources folder and the
extensions.json file to the path. When the folder is added to the path, files with a .md or .svg
extension appear in the Files panel with the icon and label specified in extensions.json. If the
Type column is not visible in the Files panel, go to the top-right corner of the panel, click the Files
actions button , and select Show > Type.

See Also
mw.desktop.addressBar.displayedRoots Extension Point |
mw.desktop.fileBrowser.contextMenu Extension Point | mw.desktop.quickAccess
Extension Point | mw.fileTypes.icons Extension Point | mw.fileTypes.labels
Extension Point | mw.fileTypes.filenameValidation | mw.fileTypes.groups

14-19
14 New Desktop for MATLAB (Beta)

Related Examples
• “Get Started with the New Desktop for MATLAB (Beta)” on page 14-2

14-20

You might also like