Editor settings, including language, backup, and display settings
You can customize the visual appearance and behavior of the Editor using
matlab.editor
settings. Access
matlab.editor
settings using the root
SettingsGroup
object returned by the settings
function. For example, set the temporary value for the maximum column width for comments
to 80
.
s = settings; s.matlab.editor.language.matlab.comments.MaxWidth.TemporaryValue = 80
For more information about settings, see Access and Modify Settings.
UseMATLABEditor
— Use the MATLAB® Editor1
(default) | 0
Use the MATLAB Editor, specified as 1
or
0
.
Set to 1
if you want the MATLAB desktop to use the MATLAB Editor when you edit a file.
This setting only applies to plain text files such as files with a
.m
or .txt
extension.
Example: s.matlab.editor.UseMATLABEditor.TemporaryValue =
0
OtherEditor
— Other editor nameOther editor name, specified as a character vector.
If UseMATLABEditor
is set to 0
,
specify the full path for the editor application you want to use, such as
Emacs or vi.
Example: s.matlab.editor.OtherEditor.TemporaryValue =
'c:\Applications\Emacs.exe'
RecentFileListSize
— Number of recent files to display8
(default) | positive integerNumber of recent files to display in the Open menu, specified as a positive integer.
Example: s.matlab.editor.RecentFileListSize.TemporaryValue =
5
ReopenFilesOnRestart
— Reopen files on restart1
(default) | 0
Reopen files on restart, specified as 1
or
0
.
Set to 1
if you want the Editor and the files it
contained during your last MATLAB session to reopen when you restart MATLAB.
Example: s.matlab.editor.AddLineTerminationOnsave.TemporaryValue =
0
OpenFileAtBreakpoint
— Open a file at a breakpoint1
(default) | 0
Open a file at a breakpoint, specified as 1
or
0
.
Set to 1
to open a running program file when
MATLAB encounters a breakpoint in that file.
Example: s.matlab.editor.OpenFileAtBreakpoint.TemporaryValue =
0
SaveFilesOnClickAway
— Save files on click away1
(default) | 0
Save files on click away, specified as 1
or
0
.
Set to 1
if you want the Editor to automatically save
changes to a file in the Editor when you click away from the Editor. For the
changes to be automatically saved upon clicking away from the Editor, you
must have already saved the file at least once.
Example: s.matlab.editor.SaveFilesOnClickAway.TemporaryValue =
0
ReloadFilesOnChange
— Reload files when they change1
(default) | 0
Reload files when they change, specified as 1
or
0
.
Set to 1
if you want the Editor to automatically reload
the new version of a file that you opened and edited outside of MATLAB. MATLAB only reloads the file if it contains no unsaved
changes.
Example: s.matlab.editor.ReloadFilesOnChange.TemporaryValue =
0
AddLineTerminationOnSave
— Add a new empty line on save1
(default) | 0
Add a new empty line on save, specified as 1
or
0
.
Set to 1
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 setting only applies to plain text files such as files with a
.m
or .txt
extension.
Example: s.matlab.editor.AddLineTerminationOnSave.TemporaryValue =
0
OnlyStepInToUserFunctions
— Step only into user-defined functions1
(default) | 0
Step only into user-defined functions and scripts when debugging in the
Live Editor, specified as 1
or
0
.
Set to 1
to only step into user-defined functions and
scripts when debugging in the Live Editor. Set to 0
to
step into MathWorks® functions as well.
Example: s.matlab.editor.OnlyStepInToUserFunctions.TemporaryValue
= 0
AllowFigureAnimation
— Enable animations in Live Editor1
(default) | 0
Enable animations in the Live Editor, specified as 1
or
0
.
Set to 1
to enable for-loop animations in the Live
Editor and show changes in plotted data over time.
Example: s.matlab.editor.AllowFigureAnimation.TemporaryValue =
0
HighlightCurrentLine
— Highlight the current line1
(default) | 0
Highlight the current line, specified as 1
or
0
.
Set to 1
to highlight the current line. The current
line is the line with the cursor (also called the caret). This setting does
not apply in the Live Editor.
Example: s.matlab.editor.displaysettings.HighlightCurrentLine.TemporaryValue
= 0
HighlightCurrentLineColor
— Current line color[222 238 216]
(default) | RGB tripletCurrent line color, specified as an RGB triplet with values in the range [0,255]. The current line is the line with the cursor (also called the caret).
HighlightCurrentLine
must be set to
1
to see the change in the current line color.
Example: s.matlab.editor.displaysettings.HighlightCurrentLineColor.TemporaryValue
= [222 230 200]
ShowLineNumbers
— Show line numbers1
| 0
Show line numbers, specified as 1
or
0
.
Set to 1
to display line numbers along the left edge of
the Editor window.
Example: s.matlab.editor.displaysettings.ShowLineNumbers.TemporaryValue
= 0
DataTipsInEditMode
— Enable data tips when editing1
(default) | 0
Enable data tips when editing, specified as 1
or
0
.
Set to 1
to display data tips when you are editing a
MATLAB code file. (Data tips are always enabled in debug
mode.)
This setting does not apply in the Live Editor.
Example: s.matlab.editor.displaysettings.DataTipsInEditMode.TemporaryValue
= 0
ShowOpenAsLiveScriptBanner
— Show Open as a Live Script banner1
(default) | 0
Show Open as a Live Script banner, specified as 1
or
0
.
Set to 1
to display the Open as a Live Script banner at
the top of documents in the Editor.
Example: s.matlab.editor.displaysettings.ShowOpenAsLiveScriptBanner.TemporaryValue
= 0
ShowWelcomeToLiveEditorBanner
— Show Welcome to the Live Editor banner1
(default) | 0
Show Welcome to the Live Editor banner, specified as 1
or 0
.
Set to 1
to display the Welcome to the Live Editor
banner at the top of documents in the Live Editor.
Example: s.matlab.editor.displaysettings.ShowWelcomeToLiveEditorBanner.TemporaryValue
= 0
ShowLine
— Display the line limit1
(default) | 0
Display the line limit, specified as 1
or
0
.
Set to 1
to display a vertical line at a specified
column in the Editor to denote the right-hand text limit.
LineColumn
specifies the location of the line, and
LineWidth
specifies the width of the line.
Example: s.matlab.editor.displaysettings.linelimit.ShowLine.TemporaryValue
= 0
LineColumn
— Location of the line limit75
(default) | positive integerLocation of the line limit, specified as a positive integer. Specify the location as a column number.
Example: s.matlab.editor.displaysettings.linelimit.LineColumn.TemporaryValue
= 80
LineWidth
— Width of line limit1
(default) | positive integerWidth of the line limit, specified as a positive integer.
s.matlab.editor.displaysettings.linelimit.LineWidth.TemporaryValue
= 2
LineColor
— Color of line limit[204 204 204]
(default) | RGB tripletColor of the line limit, specified as a RGB triplet with values in the range [0,255].
s.matlab.editor.displaysettings.linelimit.LineColor.TemporaryValue
= [173 235 255]
TabSize
— Tab size4
(default) | positive integerTab size (the number of spaces inserted when you press the Tab key), specified as a positive integer.
When you change the TabSize
, it changes the tab size
for existing lines in that file, unless you also set
InsertSpaces
to 1
.
Example: s.matlab.editor.tab.TabSize.TemporaryValue =
5
IndentSize
— Indent size for smart indenting4
(default) | positive integerIndent size for smart indenting, specified as a positive integer. For more information about smart indenting, see Improve Code Readability.
Example: s.matlab.editor.tab.IndentSize.TemporaryValue =
5
InsertSpaces
— Insert spaces1
(default) | 0
Insert spaces when you press the Tab key, specified as a
1
or 0
.
Set to 1
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 TabSize
.
Example: s.matlab.editor.tab.InsertSpaces.TemporaryValue =
0
EmacsStyle
— Use Emacs indenting style1
(default) | 0
Use Emacs indenting style, specified as 1
or
0
.
Set to 1
to use an indenting style similar to the style
that the Emacs editor uses.
Example: s.matlab.editor.tab.IndentSize.TemporaryValue =
5
EnableSyntaxHighlighting
— Enable syntax highlighting1
(default) | 0
Enable syntax highlighting, specified as 1
or
0
.
Set to 1
to have the Editor use different colors for
different language constructs. Then, adjust the colors you want to use for
each language element. For more information, see Syntax Highlighting. Disabling syntax highlighting is
not supported in the Live Editor.
Example: s.matlab.editor.language.matlab.EnableSyntaxHighlighting.TemporaryValue
= 0
EnableVariableAndFunctionRenaming
— Enable variable and function renaming1
(default) | 0
Enable variable and function renaming, specified as 1
or 0
.
Set to 1
to have MATLAB prompt you to rename all instances of a function or variable
in a file when you rename a single instance.
Example: s.matlab.editor.language.matlab.EnableVariableAndFunctionRenaming.TemporaryValue
= 0
SmartIndentWhileTyping
— Apply smart indenting while typingSmartIndent
(default) | NoIndent
Apply smart indenting while typing, specified as
SmartIndent
or NoIndent
.
Specify SmartIndent
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
FunctionIndentingFormat
setting.
Example: s.matlab.editor.language.matlab.SmartIndentWhileTyping.TemporaryValue
= 'NoIndent'
FunctionIndentingFormat
— Function indenting formatMixedFunctionIndent
(default) | AllFunctionIndent
| ClassicFunctionIndent
Function indenting format, specified as one of these values:
ClassicFunctionIndent
— Align function code with the function
declaration.
MixedFunctionIndent
—
Indent function code within a nested function.
AllFunctionIndent
— Indent
function code for both main and nested functions.
Example: s.matlab.editor.language.matlab.FunctionIndentingFormat.TemporaryValue
= 'ClassicFunctionIndent'
MaxWidth
— Maximum number of characters75
(default) | positive integerMaximum number of characters in a comment line, specified as a positive integer.
Specify FromCommentStart
to select where you want
counting to begin.
Example: s.matlab.editor.language.matlab.comments.MaxWidth.TemporaryValue
= 80
FromCommentStart
— Count maximum width from comment start1
(default) | 0
Count maximum width from comment start, specified as 1
or 0
.
Set to 1
to count width from the beginning of a
comment. This is useful when comments are indented, and you want each block
of comments to have the same indent and width.
Set to 0
to count width from the beginning of a line.
This is useful when the absolute width of the comments is important. For
example, set the maximum width to 75 columns and set
FromCommentStart
to 0
to make your
code fit on a printed page when you use the default font for the
Editor.
Example: s.matlab.editor.language.matlab.comments.FromCommentStart.TemporaryValue
= 0
WrapAutomatically
— Wrap comments automatically1
(default) | 0
Wrap comments automatically, specified as 1
or
0
.
Set to 1
to automatically wrap comments after
MaxWidth
columns when you type comments in an Editor
document.
Example: s.matlab.editor.language.matlab.comments.WrapAutomatically.TemporaryValue
= 0
EnableCodeFolding
— Enable code folding1
(default) | 0
Enable code folding, specified as 1
or
0
.
Set to 1
to enable code folding.
Example: s.matlab.editor.codefolding.EnableCodeFolding.TemporaryValue
= 0
FoldArgumentsBlocks
— Fold arguments blocks0
(default) | 1
Fold arguments blocks comments, specified as 1
or
0
.
Set to 1
to enable code folding for arguments blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for arguments blocks is
disabled.
Example: s.matlab.editor.codefolding.FoldArgumentsBlocks.TemporaryValue
= 0
InitiallyFoldArgumentsBlocks
— Initially fold arguments blocks0
(default) | 1
Initially fold arguments blocks, specified as 1
or
0
.
Set to 1
to fold arguments blocks the first time that
you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldArgumentsBlocks.TemporaryValue
= 1
FoldComments
— Fold comments0
(default) | 1
Fold comments, specified as 1
or
0
.
Set to 1
to enable code folding for comments.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for comments is
disabled.
Example: s.matlab.editor.codefolding.FoldComments.TemporaryValue =
0
InitiallyFoldComments
— Initially fold comments0
(default) | 1
Initially fold comments, specified as 1
or
0
.
Set to 1
to fold comments the first time that you open
a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldComments.TemporaryValue
= 1
FoldBlockComments
— Fold block comments1
(default) | 0
Fold block comments, specified as 1
or
0
.
Set to 1
to enable code folding for block comments.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for block comments is
disabled.
Example: s.matlab.editor.codefolding.FoldBlockComments.TemporaryValue
= 0
InitiallyFoldBlockComments
— Initially fold block comments0
(default) | 1
Initially fold block comments, specified as 1
or
0
.
Set to 1
to fold block comments the first time that you
open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldBlockComments.TemporaryValue
= 1
FoldClassCode
— Fold class code1
(default) | 0
Fold class code, specified as 1
or
0
.
Set to 1
to enable code folding for class code.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for class code is
disabled.
Example: s.matlab.editor.codefolding.FoldClassCode.TemporaryValue
= 0
InitiallyFoldClassCode
— Initially fold class code0
(default) | 1
Initially fold class code, specified as 1
or
0
.
Set to 1
to fold class code the first time that you
open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldClassCode.TemporaryValue
= 1
FoldClassEnumerationBlocks
— Fold class enumeration blocks1
(default) | 0
Fold class enumeration blocks, specified as 1
or
0
.
Set to 1
to enable code folding for class enumeration
blocks. EnableCodeFolding
must be set to
1
. Otherwise, code folding for class enumeration
blocks is disabled.
Example: s.matlab.editor.codefolding.FoldClassEnumerationBlocks.TemporaryValue
= 0
InitiallyFoldClassEnumerationBlocks
— Initially fold class enumeration blocks0
(default) | 1
Initially fold class enumeration blocks, specified as 1
or 0
.
Set to 1
to fold class enumeration blocks the first
time that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldClassEnumerationBlocks.TemporaryValue
= 1
FoldClassEventBlocks
— Fold class event blocks1
(default) | 0
Fold class event blocks, specified as 1
or
0
.
Set to 1
to enable code folding for class event blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for class event blocks is
disabled.
Example: s.matlab.editor.codefolding.FoldClassEventBlocks.TemporaryValue
= 0
InitiallyFoldClassEventBlocks
— Initially fold class event blocks0
(default) | 1
Initially fold class event blocks, specified as 1
or
0
.
Set to 1
to fold class event blocks the first time that
you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldClassEventBlocks.TemporaryValue
= 1
FoldClassMethodBlocks
— Fold class method blocks1
(default) | 0
Fold class method blocks, specified as 1
or
0
.
Set to 1
to enable code folding for class method
blocks. EnableCodeFolding
must be set to
1
. Otherwise, code folding for class method blocks is
disabled.
Example: s.matlab.editor.codefolding.FoldClassMethodBlocks.TemporaryValue
= 0
InitiallyFoldClassMethodBlocks
— Initially fold class method blocks0
(default) | 1
Initially fold class method blocks, specified as 1
or
0
.
Set to 1
to fold class method blocks the first time
that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldClassMethodBlocks.TemporaryValue
= 1
FoldClassPropertiesBlocks
— Fold class properties blocks1
(default) | 0
Fold class properties blocks, specified as 1
or
0
.
Set to 1
to enable code folding for class properties
blocks. EnableCodeFolding
must be set to
1
. Otherwise, code folding for class properties
blocks is disabled.
Example: s.matlab.editor.codefolding.FoldClassPropertiesBlocks.TemporaryValue
= 0
InitiallyFoldClassPropertiesBlocks
— Initially fold class properties blocks0
(default) | 1
Initially fold class properties blocks, specified as 1
or 0
.
Set to 1
to fold class properties blocks the first time
that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldClassPropertiesBlocks.TemporaryValue
= 1
FoldForAndParforBlocks
— Fold for
and parfor
blocks1
(default) | 0
Fold for
and parfor
blocks,
specified as 1
or 0
.
Set to 1
to enable code folding for
for
and parfor
blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for for
and
parfor
blocks is disabled.
Example: s.matlab.editor.codefolding.FoldForAndParforBlocks.TemporaryValue
= 0
InitiallyFoldForAndParforBlocks
— Initially fold for
and parfor
blocks0
(default) | 1
Initially fold for
and parfor
blocks, specified as 1
or 0
.
Set to 1
to fold for
and
parfor
blocks the first time that you open a
MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldForAndParforBlocks.TemporaryValue
= 1
FoldFunctionCode
— Fold function code1
(default) | 0
Fold function code, specified as 1
or
0
.
Set to 1
to enable code folding for function code.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for function code is
disabled.
Example: s.matlab.editor.codefolding.FoldFunctionCode.TemporaryValue
= 0
InitiallyFoldFunctionCode
— Initially fold function code0
(default) | 1
Initially fold function code, specified as 1
or
0
.
Set to 1
to fold function code the first time that you
open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldFunctionCode.TemporaryValue
= 1
FoldIfElseBlocks
— Fold if
/else
blocks1
(default) | 0
Fold if
/else
blocks, specified as
1
or 0
.
Set to 1
to enable code folding for
if
/else
blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for
if
/else
blocks is disabled.
Example: s.matlab.editor.codefolding.FoldIfElseBlocks.TemporaryValue
= 0
InitiallyFoldIfElseBlocks
— Initially fold if
/else
blocks0
(default) | 1
Initially fold if
/else
blocks,
specified as 1
or 0
.
Set to 1
to fold
if
/else
blocks the first time that
you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldIfElseBlocks.TemporaryValue
= 1
FoldSections
— Fold sections0
(default) | 1
Fold sections, specified as 1
or
0
.
Set to 1
to enable code folding for sections.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for sections is
disabled.
Example: s.matlab.editor.codefolding.FoldSections.TemporaryValue =
0
InitiallyFoldSections
— Initially fold sections0
(default) | 1
Initially fold sections, specified as 1
or
0
.
Set to 1
to fold sections the first time that you open
a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldSections.TemporaryValue
= 1
FoldSpmdBlocks
— Fold spmd
blocks1
(default) | 0
Fold spmd
blocks, specified as 1
or
0
.
Set to 1
to enable code folding for
spmd
(single program, multiple data) blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for spmd
blocks is disabled.
Example: s.matlab.editor.codefolding.FoldSpmdBlocks.TemporaryValue
= 0
InitiallyFoldSpmdBlocks
— Initially fold spmd
blocks0
(default) | 1
Initially fold spmd
blocks, specified as
1
or 0
.
Set to 1
to fold spmd
(single
program, multiple data) blocks the first time that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldSpmdBlocks.TemporaryValue
= 1
FoldSwitchCaseBlocks
— Fold switch
/case
blocks1
(default) | 0
Fold switch
/case
blocks, specified
as 1
or 0
.
Set to 1
to enable code folding for
switch
/case
blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for
switch
/case
blocks is
disabled.
Example: s.matlab.editor.codefolding.FoldSwitchCaseBlocks.TemporaryValue
= 0
InitiallyFoldSwitchCaseBlocks
— Initially fold switch
/case
blocks0
(default) | 1
Initially fold switch
/case
blocks,
specified as 1
or 0
.
Set to 1
to fold
switch
/case
blocks the first time
that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldSwitchCaseBlocks.TemporaryValue
= 1
FoldTryCatchBlocks
— Fold try
/catch
blocks1
(default) | 0
Fold try
/catch
blocks, specified as
1
or 0
.
Set to 1
to enable code folding for
try
/catch
blocks.
EnableCodeFolding
must be set to
1
. Otherwise, code folding for
try
/catch
blocks is
disabled.
Example: s.matlab.editor.codefolding.FoldTryCatchBlocks.TemporaryValue
= 0
InitiallyFoldTryCatchBlocks
— Initially fold try
/catch
blocks0
(default) | 1
Initially fold try
/catch
blocks,
specified as 1
or 0
.
Set to 1
to fold
try
/catch
blocks the first time
that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldTryCatchBlocks.TemporaryValue
= 1
FoldWhileBlocks
— Fold while
blocks1
(default) | 0
Fold while
blocks, specified as 1
or
0
.
Set to 1
to enable code folding for
while
blocks. EnableCodeFolding
must be set to 1
. Otherwise, code folding for
while
blocks is disabled.
Example: s.matlab.editor.codefolding.FoldWhileBlocks.TemporaryValue
= 0
InitiallyFoldWhileBlocks
— Initially fold while
blocks0
(default) | 1
Initially fold while
blocks, specified as
1
or 0
.
Set to 1
to fold while
blocks the
first time that you open a MATLAB file.
Example: s.matlab.editor.codefolding.InitiallyFoldWhileBlocks.TemporaryValue
= 1
EnableFileBackup
— Enable file backups1
(default) | 0
Enable file backups, specified as 1
or
0
.
Set to 1
to automatically save copies of the files you
are currently editing.
Example: s.matlab.editor.backup.EnableFileBackup.TemporaryValue =
0
Frequency
— How often to create backups of files5
(default) | positive integerHow often to create backups of files you are editing, specified in minutes as a positive integer.
Example: s.matlab.editor.backup.Frequency.TemporaryValue =
6
SaveUntiltled
— Create backups of untitled files1
(default) | 0
Create backups of untitled files, specified as 1
or
0
.
Set to 1
to save a copy of a new, untitled, file to
Untitled.asv
. When there is more than one untitled
file, each additional file is saved to
Untitled
(where
n
.asvn
is an integer value).
Example: s.matlab.editor.backup.SaveUntitled.TemporaryValue =
0
DeleteOnClose
— Delete backup files on close1
(default) | 0
Delete backup files on close, specified as 1
or
0
.
Set to 1
to direct MATLAB to delete the backup file when you close the source file in
the Editor.
Example: s.matlab.editor.backup.DeleteOnClose.TemporaryValue =
0
ReplaceExtension
— Replace file extension of backup file1
(default) | 0
Replace file extension of backup file, specified as 1
or 0
.
Set to 1
to replace the original file name extension
with the extension specified by FileExtensionToReplace
.
Set to 0
to append the original file name extension with
the extension specified by FileExtensionToAppend
.
Example: s.matlab.editor.backup.ReplaceExtension.TemporaryValue =
0
FileExtensionToReplace
— File extension of backup file to replace'asv'
(default) | character vectorFile extension of backup file to replace the original file name extension with, specified as a character vector.
Example: s.matlab.editor.backup.FileExtensionToReplace.TemporaryValue
= 'asv'
FileExtensionToAppend
— File extension of backup file to append'~'
(default) | character vectorFile extension of backup file to append to the original file name, specified as a character vector.
Example: s.matlab.editor.backup.FileExtensionToAppend.TemporaryValue
= '~'
SaveIntoSourceFolder
— Save backup files to the source folder1
(default) | 0
Save backup files to the source folder, specified as 1
or 0
.
Set to 1
to store backup files in the same folder as
the files being edited. Otherwise, MATLAB saves the backup files in the folder specified by
SaveToFolder
.
Example: s.matlab.editor.backup.SaveIntoSourceFolder.TemporaryValue
= 0
SaveToFolder
— Folder name in which to store all backup filesFolder name in which to store all backup files, specified as a character vector.
Specify the full path to that folder and be sure that you have write permissions for it.
SaveIntoSourceFolder
must be set to
0
. Otherwise, MATLAB stores backup files in the same folder as the files being
edited.
Example: s.matlab.editor.backup.SaveToFolder.TemporaryValue =
'C:\backups'
EnableAutoFormatting
— Enable autoformatting1
(default) | 0
Enable autoformatting, specified as 1
or
0
.
Set to 1
to enable autoformatting in the Live Editor.
Once enabled, specific types of formatting can then be enabled or disabled
individually.
Example: s.matlab.editor.autoformat.EnableAutoFormatting.TemporaryValue
= 0
AsteriskForItalicAndBold
— Enable italic and bold formatting using asterisks1
(default) | 0
Enable italic and bold formatting using asterisks, specified as
1
or 0
.
Set to 1
to enable bold and italic formatting using
asterisks (*
).
Example: s.matlab.editor.autoformat.AsteriskForItalicAndBold.TemporaryValue
= 0
UnderscoreForItalicAndBold
— Enable italic and bold formatting using underscores1
(default) | 0
Enable italic and bold formatting using underscores, specified as
1
or 0
.
Set to 1
to enable bold and italic formatting using
underscores (_
).
Example: s.matlab.editor.autoformat.UnderscoreForItalicAndBold.TemporaryValue
= 0
BacktickAndBarForMonospace
— Enable monospace formatting using backticks or bars1
(default) | 0
Enable monospace formatting using backticks or bars, specified as
1
or 0
.
Set to 1
to enable monospace formatting using backticks
(`
) or bars (|
).
Example: s.matlab.editor.autoformat.BacktickAndBarForMonospace.TemporaryValue
= 0
SectionBreak
— Enable autoformatting for section breaks1
(default) | 0
Enable autoformatting for section breaks, specified as
1
or 0
.
Set to 1
to enable inserting section breaks by entering
%%
, ***
, or ---
and then Enter.
Example: s.matlab.editor.autoformat.SectionBreak.TemporaryValue =
0
SectionBreakAndHeading
— Enable autoformatting for section breaks with headings1
(default) | 0
Enable autoformatting for section breaks with headings, specified as
1
or 0
.
Set to 1
to enable inserting section breaks with
headings by entering %%
and then Enter.text
Example: s.matlab.editor.autoformat.SectionBreakAndHeading.TemporaryValue
= 0
DollarSignForLatex
— Enable autoformatting for LaTeX expressions1
(default) | 0
Enable autoformatting for LaTeX expressions, specified as
1
or 0
.
Set to 1
to enable converting LaTeX expressions into
equations using the format
$
.LaTeX
$
Example: s.matlab.editor.autoformat.DollarSignForLatex.TemporaryValue
= 0
URLToHyperlink
— Enable autoformatting for URLs1
(default) | 0
Enable autoformatting for URLs, specified as 1
or
0
.
Set to 1
to enable converting URLs automatically to
hyperlinks.
Example: s.matlab.editor.autoformat.URLToHyperlink.TemporaryValue
= 0
AngleBracketsForHyperlink
— Enable autoformatting for URLs using angle brackets1
(default) | 0
Enable autoformatting for URLs using angle brackets, specified as
1
or 0
.
Set to 1
to enable converting URLs to hyperlinks using
the format <
.URL
>
Example: s.matlab.editor.autoformat.AngleBracketsForHyperlink.TemporaryValue
= 0
LabelURLToHyperlink
— Enable autoformatting for labeled hyperlinks1
(default) | 0
Enable autoformatting for labeled hyperlinks, specified as
1
or 0
.
Set to 1
to enable converting URLs to labeled
hyperlinks using the format
[
.Label
](URL
)
Example: s.matlab.editor.autoformat.LabelURLToHyperlink.TemporaryValue
= 0
TrademarkCopyrightSymbol
— Enable autoformatting for trademark and copyright symbols1
(default) | 0
Enable autoformatting for trademark and copyright symbols, specified as
1
or 0
.
Set to 1
to enable inserting trademark and copyright
symbols (™, ℠, ®, and ©) using the format (TM)
,
(SM)
, (R)
, and
(C)
.
Example: s.matlab.editor.autoformat.TrademarkCopyrightSymbol.TemporaryValue
= 0
HashtagForTitle
— Enable inserting titles using hashtags1
(default) | 0
Enable inserting titles using hashtags, specified as 1
or 0
.
Set to 1
to enable inserting titles using the format
#
.text
Example: s.matlab.editor.autoformat.HashtagForTitle.TemporaryValue
= 0
HashtagsForHeading
— Enable inserting headings using hashtags1
(default) | 0
Enable inserting headings using hashtags, specified as
1
or 0
.
Set to 1
to enable inserting headings using the format
##text
for heading 1, ###text
for
heading 2, or ####text
for heading 3.
Example: s.matlab.editor.autoformat.HashtagsForHeading.TemporaryValue
= 0
AutomaticBulletedList
— Enable creating bulleted lists automatically1
(default) | 0
Enable creating bulleted lists automatically, specified as
1
or 0
.
Set to 1
to enable creating bulleted lists by entering
*
, +
, or -
followed by a space.
Example: s.matlab.editor.displaysettings.AutomaticBulletedList.TemporaryValue
= 0
AutomaticNumberedList
— Enable creating numbered lists automatically1
(default) | 0
Enable creating numbered lists automatically, specified as
1
or 0
.
Set to 1
to enable creating numbered lists by entering
1.
, 2.
, and so on, followed by a space.
Example: s.matlab.editor.displaysettings.AutomaticNumberedList.TemporaryValue
= 0
EnableAutoCoding
— Enable autocoding1
(default) | 0
Enable autocoding, specified as 1
or
0
.
Set to 1
to enable autocoding in the Live Editor and in
App Designer. Once enabled, options can be enabled or disabled
individually.
Example: s.matlab.editor.autocoding.EnableAutoCoding.TemporaryValue
= 0
Parentheses
— Autocomplete parentheses1
(default) | 0
Autocomplete parentheses, specified as 1
or
0
.
Set to 1
to enable autocompletion of
parentheses.
Example: s.matlab.editor.autocoding.Parentheses.TemporaryValue =
0
CurlyBraces
— Autocomplete curly braces1
(default) | 0
Autocomplete curly braces, specified as 1
or
0
.
Set to 1
to enable autocompletion of curly
braces.
Example: s.matlab.editor.autocoding.CurlyBraces.TemporaryValue =
0
SquareBrackets
— Autocomplete square brackets1
(default) | 0
Autocomplete square brackets, specified as 1
or
0
.
Set to 1
to enable autocompletion of square
brackets.
Example: s.matlab.editor.autocoding.SquareBrackets.TemporaryValue
= 0
SingleQuotes
— Autocomplete single quotes1
(default) | 0
Autocomplete single quotes, specified as 1
or
0
.
Set to 1
to enable autocompletion of single
quotes.
Example: s.matlab.editor.autocoding.SingleQuotes.TemporaryValue =
0
DoubleQuotes
— Autocomplete double quotes1
(default) | 0
Autocomplete double quotes, specified as 1
or
0
.
Set to 1
to enable autocompletion of double
quotes.
Example: s.matlab.editor.autocoding.DoubleQuotes.TemporaryValue =
0
Comments
— Autocomplete comments1
(default) | 0
Autocomplete comments, specified as 1
or
0
.
Set to 1
to enable autocompletion of comments when
split across two lines.
Example: s.matlab.editor.autocoding.Comments.TemporaryValue =
0
CharacterVectors
— Autocomplete character vectors1
(default) | 0
Autocomplete character vectors, specified as 1
or
0
.
Set to 1
to enable autocompletion of character vectors
when split across two lines.
Example: s.matlab.editor.autocoding.CharacterVectors.TemporaryValue
= 0
Strings
— Autocomplete strings1
(default) | 0
Autocomplete strings, specified as 1
or
0
. Set to 1
to enable
autocompletion of strings when split across two lines.
Example: s.matlab.editor.autocoding.Strings.TemporaryValue =
0
SplitParentheses
— Autocomplete parentheses when splitting1
(default) | 0
Autocomplete parentheses when splitting, specified as 1
or 0
. Set to 1
to enable
autocompletion of parentheses when split across two lines.
Example: s.matlab.editor.autocoding.Strings.TemporaryValue =
0
ControlFlows
— Autocomplete control flow statements1
(default) | 0
Autocomplete control flow statements, specified as 1
or
0
. Set to 1
to enable
autocompletion of control flow statements such as if
and
for
.
Example: s.matlab.editor.autocoding.ControlFlows.TemporaryValue =
0
Definitions
— Autocomplete function and class definitions1
(default) | 0
Autocomplete function and class definitions, specified as
1
or 0
. Set to
1
to enable autocompletion of function and class
definitions.
Example: s.matlab.editor.autocoding.Definitions.TemporaryValue =
0
FigureFormat
— Figure format'png'
(default) | 'jpeg'
Figure format when exporting from the Live Editor, specified as
'png'
or 'jpeg'
. The value of
FigureFormat
is used when exporting to all document
types except LaTeX. For LaTeX documents, the value of
matlab.editor.export.latex.FigureFormat
is used
instead. To export with the specified figure format, run the live script
before exporting.
Example: s.matlab.editor.export.FigureFormat.TemporaryValue =
'jpeg'
To change the format of exported figures for an individual export document
type, specify a value for that document type's
FigureFormat
setting. For example, the following code
specifies the JPEG figure format when exporting to PDF documents in the Live
Editor, and the PNG figure format when exporting to all other document
types:
s.matlab.editor.export.FigureFormat.TemporaryValue = 'png' s.matlab.editor.export.pdf.FigureFormat.TemporaryValue = 'jpeg'
To return to using the active value of the
matlab.editor.export.FigureFormat
setting for all
document types, clear the temporary and personal values for the individual
export document type setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pdf.FigureFormat) clearPersonalValue(s.matlab.editor.export.pdf.FigureFormat)
FigureResolution
— Figure resolution600
(default) | positive integerFigure resolution when exporting from the Live Editor, specified in DPI as a positive integer between 36 and 2880. To export with the specified figure resolution, run the live script before exporting.
Example: s.matlab.editor.export.FigureResolution.TemporaryValue =
800
To change the resolution of exported figures for an individual export
type, specify a value for that document type's
FigureResolution
setting. For example, the
following code specifies a figure resolution of 800 DPI when exporting to
PDF documents in the Live Editor and a figure resolution of 1000 DPI when
exporting to all other document
types:
s.matlab.editor.export.FigureResolution.TemporaryValue = 1000 s.matlab.editor.export.pdf.FigureResolution.TemporaryValue = 800
To return to using the active value of the
matlab.editor.export.FigureResolution
setting for a
document type, clear the temporary and personal values for that document
type setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pdf.FigureResolution) clearPersonalValue(s.matlab.editor.export.pdf.FigureResolution)
PaperSize
— Paper size'Letter'
| 'Legal'
| 'Tabloid'
| 'A2'
| 'A3'
| 'A4'
| 'A5'
Paper size of documents when exporting from the Live Editor, specified as one of the standard paper type values in this table.
Value | Paper Size (Width x Height) |
---|---|
| 8.5-by-11 in (default in US) |
| 8.5-by-14 in |
| 11-by-17 in |
| 42-by-59.4 cm |
| 29.7-by-42 cm |
| 21-by-29.7 cm (default in Europe and Asia) |
| 14.8-by-21 cm |
Example: s.matlab.editor.export.pagesetup.PaperSize.TemporaryValue
= 'Legal'
To change the paper size for an individual export document type, specify a
value for that document type's PaperSize
setting. For
example, the following code specifies the Legal paper size when exporting to
PDF documents in the Live Editor, and the A4 paper size when exporting to
all other document
types:
s.matlab.editor.export.pagesetup.PaperSize.TemporaryValue = 'A4' s.matlab.editor.export.pagesetup.pdf.PaperSize.TemporaryValue = 'Legal'
To return to using the active value of the
matlab.editor.export.pagesetup.PaperSize
setting for
a document type, clear the temporary and personal values for that document
type setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.pdf.PaperSize) clearPersonalValue(s.matlab.editor.export.pagesetup.pdf.PaperSize)
Orientation
— Page orientation'Portrait'
(default) | 'Landscape'
Page orientation of documents when exporting from the Live Editor,
specified as 'Portrait'
or
'Landscape'
.
Example: s.matlab.editor.export.pagesetup.Orientation.TemporaryValue
= 'Landscape'
To change the page orientation for an individual export document type,
specify a value for that document type's Orientation
setting. For example, the following code specifies a portrait page
orientation when exporting to PDF documents in the Live Editor, and a
landscape page orientation when exporting to all other document
types:
s.matlab.editor.export.pagesetup.Orientation.TemporaryValue = 'Landscape' s.matlab.editor.export.pagesetup.pdf.Orientation.TemporaryValue = 'Portrait'
To return to using the active value of the
matlab.editor.export.pagesetup.Orientation
setting
for a document type, clear the temporary and personal values for that
document type setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.pdf.Orientation) clearPersonalValue(s.matlab.editor.export.pagesetup.pdf.Orientation)
Margins
— Document margins[72 72 72 72]
(default) | 1-by-4 vectorDocument margins when exporting from the Live Editor, specified as a
1-by-4 vector of margin values with the format
[left
top
right
bottom
]. Each margin value is specified in points
as a positive integer between 0 and 255. A value of 72 points is equivalent
to 1 inch or 2.54 cm. The value of Margins
is used when
exporting to all document types except LaTeX. For LaTeX documents, the value
of matlab.editor.export.pagesetup.latex.Margins
is used
instead.
Example: s.matlab.editor.export.pagesetup.Margins.TemporaryValue =
[25 72 72 25]
To change the document margins for an individual export document type,
specify a value for that document type's Margins
setting. For example, the following code specifies 25-point margins when
exporting to PDF documents in the Live Editor, and 90-point margins when
exporting to all other document
types:
s.matlab.editor.export.pagesetup.Margins.TemporaryValue = [90 90 90 90] s.matlab.editor.export.pagesetup.pdf.Margins.TemporaryValue = [25 25 25 25]
To return to using the active value of the
matlab.editor.export.pagesetup.Margins
setting for a
document type, clear the temporary and personal values for that document
type setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.pdf.Margins) clearPersonalValue(s.matlab.editor.export.pagesetup.pdf.Margins)
FigureFormat
— Figure format<no value>
(default) | 'png'
| 'jpeg'
| 'bmp'
| 'svg'
| 'tiff'
Figure format when exporting to PDF documents from the Live Editor,
specified as 'png'
, 'jpeg'
,
'bmp'
, 'svg'
, or
'tiff'
.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.FigureFormat
setting when
exporting to PDF documents. Specify a value for this setting to change the
figure format when exporting to PDF documents only. To export with the
specified figure format, run the live script before exporting.
Example: s.matlab.editor.export.pdf.FigureFormat.TemporaryValue =
'jpeg'
To return to using the active value of the
matlab.editor.export.FigureFormat
setting for PDF
documents, clear the temporary and personal values for this setting using
the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pdf.FigureFormat) clearPersonalValue(s.matlab.editor.export.pdf.FigureFormat)
FigureResolution
— Figure resolution<no value>
(default) | positive integerFigure resolution when exporting to PDF documents from the Live Editor, specified in DPI as a positive integer between 36 and 2880.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.FigureResolution
setting when
exporting to PDF documents. Specify a value for this setting to change the
resolution of figures when exporting to PDF documents only. To export with
the specified figure resolution, run the live script before
exporting.
Example: s.matlab.editor.export.pdf.FigureResolution.TemporaryValue
= 800
To return to using the active value of the
matlab.editor.export.FigureResolution
setting for PDF
documents, clear the temporary and personal values for this setting using
the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pdf.FigureResolution) clearPersonalValue(s.matlab.editor.export.pdf.FigureResolution)
PaperSize
— Paper size<no value>
(default) | 'Letter'
| 'Legal'
| 'Tabloid'
| 'A2'
| 'A3'
| 'A4'
| 'A5'
Paper size of documents when exporting to PDF from the Live Editor, specified as one of the standard paper type values in this table.
Value | Paper Size (Width x Height) |
---|---|
| 8.5-by-11 in |
| 8.5-by-14 in |
| 11-by-17 in |
| 42-by-59.4 cm |
| 29.7-by-42 cm |
| 21-by-29.7 cm |
| 14.8-by-21 cm |
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.PaperSize
setting when
exporting to PDF documents. Specify a value for this setting to change the
paper size of documents when exporting to PDF documents only.
Example: s.matlab.editor.export.pagesetup.pdf.PaperSize.TemporaryValue
= 'Legal'
To return to using the active value of the
matlab.editor.export.pagesetup.PaperSize
setting for
PDF documents, clear the temporary and personal values for this setting
using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.pdf.PaperSize) clearPersonalValue(s.matlab.editor.export.pagesetup.pdf.PaperSize)
Orientation
— Page orientation<no value>
(default) | 'Portrait'
| 'Landscape'
Page orientation of documents when exporting to PDF from the Live Editor,
specified as 'Portrait'
or
'Landscape'
.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.Orientation
setting
when exporting to PDF documents. Specify a value for this setting to change
the page orientation of documents when exporting to PDF documents only.
Example: s.matlab.editor.export.pagesetup.pdf.Orientation.TemporaryValue
= 'Landscape'
To return to using the active value of the
matlab.editor.export.pagesetup.Orientation
setting
for PDF documents, clear the temporary and personal values for this setting
using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.pdf.Orientation) clearPersonalValue(s.matlab.editor.export.pagesetup.pdf.Orientation)
Margins
— Document margins<no value>
(default) | 1-by-4 vectorDocument margins when exporting to PDF from the Live Editor, specified as
a 1-by-4 vector of margin values with the format
[left
top
right
bottom
]. Each margin value is specified in points
as a positive integer between 0 and 255. A value of 72 points is equivalent
to 1 inch or 2.54 cm.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.Margins
setting when
exporting to PDF documents. Specify a value for this setting to change the
margins of documents when exporting to PDF documents only.
Example: s.matlab.editor.export.pagesetup.pdf.Margins.TemporaryValue
= [20 28 28 20]
To return to using the active value of the
matlab.editor.export.pagesetup.Margins
setting for
PDF documents, clear the temporary and personal values for this setting
using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.pdf.Margins) clearPersonalValue(s.matlab.editor.export.pagesetup.pdf.Margins)
FigureFormat
— Figure format'eps'
| 'png'
| 'jpeg'
| 'pdf'
Figure format when exporting to LaTeX documents from the Live Editor,
specified as 'eps'
, 'png'
,
'jpeg'
, or 'pdf'
. By default, the
value of this setting is 'eps'
or
'png'
, depending on whether the live script was run
before exporting or not.
Specify a value for this setting to change the figure format when
exporting to LaTeX documents only. The Live Editor always uses the figure
format value of this setting when exporting to LaTeX instead of the
matlab.editor.export.FigureFormat
setting. To export
with the specified figure format, run the live script before exporting.
Example: s.matlab.editor.export.latex.FigureFormat.TemporaryValue
= 'png'
FigureResolution
— Figure resolution<no value>
(default) | positive integerFigure resolution when exporting to LaTeX documents from the Live Editor, specified in DPI as a positive integer between 36 and 2880.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.FigureResolution
setting when
exporting to LaTeX documents. Specify a value for this setting to change the
resolution of figures when exporting to LaTeX documents only. To export with
the specified figure resolution, run the live script before
exporting.
Example: s.matlab.editor.export.latex.FigureResolution.TemporaryValue
= 800
To return to using the active value of the
matlab.editor.export.FigureResolution
setting for
LaTeX documents, clear the temporary and personal values for this setting
using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.latex.FigureResolution) clearPersonalValue(s.matlab.editor.export.latex.FigureResolution)
PaperSize
— Paper size<no value>
(default) | 'Letter'
| 'Legal'
| 'Tabloid'
| 'A2'
| 'A3'
| 'A4'
| 'A5'
Paper size of documents when exporting to LaTeX from the Live Editor, specified as one of the standard paper type values in this table.
Value | Paper Size (Width x Height) |
---|---|
| 8.5-by-11 in |
| 8.5-by-14 in |
| 11-by-17 in |
| 42-by-59.4 cm |
| 29.7-by-42 cm |
| 21-by-29.7 cm |
| 14.8-by-21 cm |
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.PaperSize
setting when
exporting to LaTeX documents. Specify a value for this setting to change the
paper size of documents when exporting to LaTeX documents only.
Example: s.matlab.editor.export.pagesetup.latex.PaperSize.TemporaryValue
= 'Legal'
To return to using the active value of the
matlab.editor.export.pagesetup.PaperSize
setting for
LaTeX documents, clear the temporary and personal values for this setting
using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.latex.PaperSize) clearPersonalValue(s.matlab.editor.export.pagesetup.latex.PaperSize)
Orientation
— Page orientation<no value>
(default) | 'Portrait'
| 'Landscape'
Page orientation of documents when exporting to LaTeX from the Live
Editor, specified as 'Portrait'
or
'Landscape'
.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.Orientation
setting
when exporting to LaTeX documents. Specify a value for this setting to
change the page orientation of documents when exporting to LaTeX documents
only.
Example: s.matlab.editor.export.pagesetup.latex.Orientation.TemporaryValue
= 'Landscape'
To return to using the active value of the
matlab.editor.export.pagesetup.Orientation
setting
for LaTeX documents, clear the temporary and personal values for this
setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.latex.Orientation) clearPersonalValue(s.matlab.editor.export.pagesetup.latex.Orientation)
Margins
— Document margins[134 125 134
120]
(default) | 1-by-4 vectorDocument margins when exporting to LaTeX from the Live Editor, specified
as a 1-by-4 vector of margin values with the format
[left
top
right
bottom
]. Each margin value is specified in points
as a positive integer between 0 and 255. A value of 72 points is equivalent
to 1 inch or 2.54 cm.
Specify a value for this setting to change the margins of documents when
exporting to LaTeX documents only. The Live Editor always uses the margin
values of this setting when exporting to LaTeX instead of the
matlab.editor.export.pagesetup.Margins
setting.
Example: s.matlab.editor.export.pagesetup.latex.Margins.TemporaryValue
= [25 72 72 25]
PaperSize
— Paper size<no value>
(default) | 'Letter'
| 'Legal'
| 'Tabloid'
| 'A2'
| 'A3'
| 'A4'
| 'A5'
Paper size of documents when exporting to Microsoft® Word from the Live Editor, specified as one of the standard paper type values in this table.
Value | Paper Size (Width x Height) |
---|---|
| 8.5-by-11 in |
| 8.5-by-14 in |
| 11-by-17 in |
| 42-by-59.4 cm |
| 29.7-by-42 cm |
| 21-by-29.7 cm |
| 14.8-by-21 cm |
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.PaperSize
setting when
exporting to Microsoft Word documents. Specify a value for this setting to change the
paper size of documents when exporting to Microsoft Word documents only.
Example: s.matlab.editor.export.pagesetup.docx.PaperSize.TemporaryValue
= 'Legal'
To return to using the active value of the
matlab.editor.export.pagesetup.PaperSize
setting for
Microsoft Word documents, clear the temporary and personal values for this
setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.docx.PaperSize) clearPersonalValue(s.matlab.editor.export.pagesetup.docx.PaperSize)
Orientation
— Page orientation<no value>
(default) | 'Portrait'
| 'Landscape'
Page orientation of documents when exporting to Microsoft Word from the Live Editor, specified as
'Portrait'
or 'Landscape'
.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.Orientation
setting
when exporting to Microsoft Word documents. Specify a value for this setting to change the page
orientation of documents when exporting to Microsoft Word documents only.
Example: s.matlab.editor.export.pagesetup.docx.Orientation.TemporaryValue
= 'Landscape'
To return to using the active value of the
matlab.editor.export.pagesetup.Orientation
setting
for Microsoft Word documents, clear the temporary and personal values for this
setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.docx.Orientation) clearPersonalValue(s.matlab.editor.export.pagesetup.docx.Orientation)
Margins
— Document margins<no value>
(default) | 1-by-4 vectorDocument margins when exporting to Microsoft Word documents from the Live Editor, specified as a 1-by-4 vector
of margin values with the format [left
top
right
bottom
]. Each margin value is specified in points
as a positive integer between 0 and 255. A value of 72 points is equivalent
to 1 inch or 2.54 cm.
By default, the value of this setting is unset and the Live Editor uses
the active value for the
matlab.editor.export.pagesetup.Margins
setting when
exporting to Microsoft Word documents. Specify a value for this setting to change the
margins of documents when exporting to Microsoft Word documents only.
Example: s.matlab.editor.export.pagesetup.docx.Margins.TemporaryValue
= [25 72 72 25]
To return to using the active value of the
matlab.editor.export.pagesetup.Margins
setting for
Microsoft Word documents, clear the temporary and personal values for this
setting using the clearTemporaryValue
and clearPersonalValue
functions. For
example:
clearTemporaryValue(s.matlab.editor.export.pagesetup.docx.Margins) clearPersonalValue(s.matlab.editor.export.pagesetup.docx.Margins)