openExample
Open a MathWorks example
Description
openExample(
copies the specified
example into a subfolder of the current running release examplename
)Examples
folder
and then opens it. If a copy of the example exists, openExample
opens
the existing version of the example.
openExample(
copies the specified
supporting file and the example it supports, and then opens the supporting file. If the
specified supporting file name is included in multiple examples,
sfile
)openExample
selects one of the examples to copy. The specified
supporting file must be an executable file with a .m
,
.mlx
, or .slx
extension.
openExample(___,
specifies options using one or more name-value arguments in addition to the input argument
in previous syntaxes. For example, to copy the example to the folder
Name,Value
)C:\Work\myfiles
, set the workDir
argument to
"C:\Work\myfiles"
.
Examples
Input Arguments
Version History
Introduced in R2016a