Extract MATLAB code from file published to HTML
grabcode
copies the MATLAB® code from the HTML file filename
filename
and pastes it into
an untitled document in the Editor. Use grabcode
to get
MATLAB code from published files when the source code is not readily
available. filename
is the HTML file created by publishing a
MATLAB code file (*.m
) or exporting a live script
(*.mlx
) to HTML. In both cases, the MATLAB code from the file appears as HTML comments at the end of
filename
.
grabcode
copies MATLAB code from the page or file specified by url
url
and
pastes it into an untitled document in the Editor.
MATLAB
Online™ only supports copying MATLAB code into a character array using the syntax code =
grabcode(filename)
. Copying MATLAB code from an HTML page or file into an untitled document in the
Editor is not supported.